Hi all,
The GL-B1300 has two physical ethernet ports.
Is it possible to have the 1st ethernet port on LAN and the 2nd ethernet port on Guest Network?
Thank you!
Hi all,
The GL-B1300 has two physical ethernet ports.
Is it possible to have the 1st ethernet port on LAN and the 2nd ethernet port on Guest Network?
Thank you!
The following config /etc/config/network make the middle port the guest network.
root@GL-B1300:/etc/config# cat network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'auto'
config interface 'lan'
option ifname 'eth1'
option force_link '1'
option type 'bridge'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option hostname 'GL-B1300-008-5G'
option ipaddr '192.168.8.1'
option ieee1905managed '1'
config interface 'wan'
option ifname 'eth0'
option proto 'dhcp'
option hostname 'GL-B1300-008-5G'
option metric '10'
config interface 'wan6'
option ifname 'eth0'
option proto 'dhcpv6'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0t 1 2 3'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '0t 5'
config switch_vlan
option device 'switch0'
option vlan '3'
option ports '0t 4'
config switch_ext
option device 'switch0'
option name 'QosPtMode'
option port_id '1'
option mode 'dscp'
option status 'enable'
config switch_ext
option device 'switch0'
option name 'QosPtMode'
option port_id '2'
option mode 'dscp'
option status 'enable'
config switch_ext
option device 'switch0'
option name 'QosPtMode'
option port_id '3'
option mode 'dscp'
option status 'enable'
config switch_ext
option device 'switch0'
option name 'QosPtMode'
option port_id '4'
option mode 'dscp'
option status 'enable'
config switch_ext
option device 'switch0'
option name 'QosPtMode'
option port_id '5'
option mode 'dscp'
option status 'enable'
config interface 'guest'
option ifname 'eth1.3'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.9.1'
option netmask '255.255.255.0'
option ip6assign '60'
Perfect, that worked beautifully. Thank you hansome!
If I want to make the other port (end port) the guest network, what entries would I need to change?
left LAN port as guest network:
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'auto'
config interface 'lan'
option ifname 'eth1'
option force_link '1'
option type 'bridge'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option hostname 'GL-B1300-008-5G'
option ipaddr '192.168.8.1'
option ieee1905managed '1'
config interface 'wan'
option ifname 'eth0'
option proto 'dhcp'
option hostname 'GL-B1300-008-5G'
option metric '10'
config interface 'wan6'
option ifname 'eth0'
option proto 'dhcpv6'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '3'
option ports '0t 1 2 3'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '0t 5'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0t 4'
config switch_ext
option device 'switch0'
option name 'QosPtMode'
option port_id '1'
option mode 'dscp'
option status 'enable'
config switch_ext
option device 'switch0'
option name 'QosPtMode'
option port_id '2'
option mode 'dscp'
option status 'enable'
config switch_ext
option device 'switch0'
option name 'QosPtMode'
option port_id '3'
option mode 'dscp'
option status 'enable'
config switch_ext
option device 'switch0'
option name 'QosPtMode'
option port_id '4'
option mode 'dscp'
option status 'enable'
config switch_ext
option device 'switch0'
option name 'QosPtMode'
option port_id '5'
option mode 'dscp'
option status 'enable'
config interface 'guest'
option ifname 'eth1.3'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.9.1'
option netmask '255.255.255.0'
option ip6assign '60'
Thanks again hansome, that’s brilliant!
I really appreciate your time to help me here