I posted the command I’m using to build.
Now, for the network, the factory network file looks like this;
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 ‘fd7e:46e5:dd59::/48’
config interface ‘lan’
option ifname ‘eth0.1’
option force_link ‘1’
option macaddr ‘e4:95:6e:40:70:86’
option type ‘bridge’
option proto ‘static’
option netmask ‘255.255.255.0’
option ip6assign ‘60’
option ipaddr ‘192.168.8.1’
config interface ‘wan’
option ifname ‘eth0.2’
option force_link ‘1’
option macaddr ‘e4:95:6e:40:70:87’
option proto ‘dhcp’
option hostname ‘GL-MT300N-086’
config interface ‘wan6’
option ifname ‘eth0.2’
option proto ‘dhcpv6’
config switch
option name ‘switch0’
option reset ‘1’
option enable_vlan ‘1’
config switch_vlan
option device ‘switch0’
option vlan ‘2’
option ports ‘0 6t’
config switch_vlan
option device ‘switch0’
option vlan ‘1’
option ports ‘1 2 3 4 6t’
And I need to make this a dhcp pass-through configuration. Meaning that WAN port will pick up a DHCP IP from the upstream LAN side DHCP server and I should then be able to ssh into the LAN port side of the same DHCP IP.
So, how should my network file look? Should it look like the following?
config interface ‘loopback’
option ifname ‘lo’
option proto ‘static’
option ipaddr ‘127.0.0.1’
option netmask ‘255.0.0.0’
config interface ‘lan’
option ifname ‘eth0.1’
option force_link ‘1’
option type ‘bridge’
option proto ‘dhcp’
config interface ‘wan’
option ifname ‘eth0.2’
option force_link ‘1’
option proto ‘dhcp’
config interface ‘wan6’
option ifname ‘eth0.2’
option proto ‘dhcpv6’
config switch
option name ‘switch0’
option reset ‘1’
option enable_vlan ‘1’
config switch_vlan
option device ‘switch0’
option vlan ‘2’
option ports ‘0 6t’
config switch_vlan
option device ‘switch0’
option vlan ‘1’
option ports ‘1 2 3 4 6t’