1 (edited by rgvandenbosch 2017-07-16 15:29:24)

Topic: No IP on second VLAN

Hi.

I have a wr1043ND (TP-LINK) V2 with the following configuration:

network.loopback=interface
network.loopback.ifname='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.ula_prefix='fd92:fd92:0855::/48'
network.lan=interface
network.lan.ifname='eth1.1'
network.lan.force_link='1'
network.lan.type='bridge'
network.lan.proto='static'
network.lan.netmask='255.255.255.0'
network.lan.ip6assign='60'
network.lan.ipaddr='192.168.1.254'
network.wan=interface
network.wan.ifname='eth0'
network.wan.proto='dhcp'
network.wan.type='bridge'
network.wan.peerdns='0'
network.wan.dns='208.67.220.220 208.67.222.222'
network.wan.macaddr='C5:6F:1F:B8:F5:1E'
network.wan6=interface
network.wan6.ifname='eth0'
network.wan6.proto='dhcpv6'
network.@switch[0]=switch
network.@switch[0].name='switch0'
network.@switch[0].reset='1'
network.@switch[0].mirror_source_port='0'
network.@switch[0].mirror_monitor_port='0'
network.@switch[0].enable_vlan='1'
network.@switch_vlan[0]=switch_vlan
network.@switch_vlan[0].device='switch0'
network.@switch_vlan[0].vlan='1'
network.@switch_vlan[0].vid='1'
network.@switch_vlan[0].ports='0t 1 2'
network.@switch_vlan[1]=switch_vlan
network.@switch_vlan[1].device='switch0'
network.@switch_vlan[1].vlan='2'
network.@switch_vlan[1].vid='2'
network.@switch_vlan[1].ports='5 6'
network.@switch_vlan[2]=switch_vlan
network.@switch_vlan[2].device='switch0'
network.@switch_vlan[2].vlan='3'
network.@switch_vlan[2].vid='3'
network.@switch_vlan[2].ports='0t 3 4'
network.GUEST_LAN=interface
network.GUEST_LAN.type='bridge'
network.GUEST_LAN.proto='static'
network.GUEST_LAN.ifname='1.3'
network.GUEST_LAN.ipaddr='10.0.0.1'
network.GUEST_LAN.netmask='255.255.255.0'
network.GUEST_LAN.ip6assign='64'

What i'm trying to achieve is to have 2 vlan's. 1 private (lan 192.168.1.0/24) and 1 for guest (guest_lan 10.0.0.0/24). Both should have wireless. So far i achieved to have 2 WLAN's (private and guest) and 2 vlan's (private and guest).
Both private and guest have working wifi. When connected both get a ip-address and have internet. But....
When i connect a pc with a cable to one of the two lan-ports (nr 3 or 4) which is for the guest_lan, is doesn't get an ip-address. So, wireless it works, but when wired i get no ip-address so no working connection.

If anybody can help that would be great!

Thanks in advance.

Re: No IP on second VLAN

Instead of:

network.GUEST_LAN.ifname='1.3'

I guess you meant:

network.GUEST_LAN.ifname='eth1.3'

Re: No IP on second VLAN

Uhm....Yes. Indeed. I missed that completely. sad And now it is working :S

Thanks very much. I just missed that over and over. big_smile