# GL-B1300 Physical Ethernet Port Guest LAN

**URL:** <https://forum.gl-inet.com/t/gl-b1300-physical-ethernet-port-guest-lan/8991>\
**Category:** Router\
**Created:** [December 2, 2019, 12:44pm UTC](https://forum.gl-inet.com/t/gl-b1300-physical-ethernet-port-guest-lan/8991 "2019-12-02T12:44:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cvgt6](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/c/bc8723/32.png) [@cvgt6](https://forum.gl-inet.com/u/cvgt6)\
**Post date:** [December 2, 2019, 12:44pm UTC](https://forum.gl-inet.com/t/gl-b1300-physical-ethernet-port-guest-lan/8991/1 "2019-12-02T12:44:23Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![hansome](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/h/b5ac83/32.png) [@hansome](https://forum.gl-inet.com/u/hansome)\
**Post date:** [December 3, 2019, 6:35am UTC](https://forum.gl-inet.com/t/gl-b1300-physical-ethernet-port-guest-lan/8991/2 "2019-12-03T06:35:32Z")

</div>

The following config /etc/config/network make the middle port the guest network.

```bash
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'

```

---

<div class="post-metadata">

**Author:** ![cvgt6](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/c/bc8723/32.png) [@cvgt6](https://forum.gl-inet.com/u/cvgt6)\
**Post date:** [December 3, 2019, 11:51pm UTC](https://forum.gl-inet.com/t/gl-b1300-physical-ethernet-port-guest-lan/8991/3 "2019-12-03T23:51:36Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![hansome](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/h/b5ac83/32.png) [@hansome](https://forum.gl-inet.com/u/hansome)\
**Post date:** [December 4, 2019, 12:35pm UTC](https://forum.gl-inet.com/t/gl-b1300-physical-ethernet-port-guest-lan/8991/4 "2019-12-04T12:35:58Z")

</div>

left LAN port as guest network:

```auto
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'

```

---

<div class="post-metadata">

**Author:** ![cvgt6](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/c/bc8723/32.png) [@cvgt6](https://forum.gl-inet.com/u/cvgt6)\
**Post date:** [December 5, 2019, 12:08pm UTC](https://forum.gl-inet.com/t/gl-b1300-physical-ethernet-port-guest-lan/8991/5 "2019-12-05T12:08:44Z")

</div>

Thanks again hansome, that’s brilliant!  
I really appreciate your time to help me here 🙂

---

<div class="post-metadata">

**Author:** ![bruce](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/bruce/32/35649_2.png) [@bruce](https://forum.gl-inet.com/u/bruce)\
**Post date:** [October 29, 2025, 4:09am UTC](https://forum.gl-inet.com/t/gl-b1300-physical-ethernet-port-guest-lan/8991/6 "2025-10-29T04:09:28Z")

</div>


