cybergibbons
New Around Here
I currently have my RT-AC66U being used as an AP only on a secure network and a guest network, using VLANs and an external router/firewall.
The VLANs are setup as follows:
The trunked VLANs come in on the WAN port (0). vlan1 is the secure network, vlan2 the guest network.
There are two additional wireless SSIDs for the guest network - wl0.1 and wl1.1. These are bridged to the respective VLANS:
br0 gets it's IP address by DHCP and is assigned it.
However, br1 doesn't get assigned an IP address.
Running udhcpc successfully gets an IP, but the IP address of the interface does not change:
The service-start script that sets this all up is:
How do I get br1 to get an address by DHCP?
The VLANs are setup as follows:
Code:
root# robocfg show
VLANs: BCM53115 enabled mac_check mac_hash
1: vlan1: 0t 1 2 8t
2: vlan2: 8t
4: vlan4: 0t 4 8t
The trunked VLANs come in on the WAN port (0). vlan1 is the secure network, vlan2 the guest network.
There are two additional wireless SSIDs for the guest network - wl0.1 and wl1.1. These are bridged to the respective VLANS:
Code:
root# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.74d02b88acd8 no vlan1
eth1
eth2
br1 8000.74d02b88acd8 no vlan4
wl0.1
wl1.1
br0 gets it's IP address by DHCP and is assigned it.
However, br1 doesn't get assigned an IP address.
Running udhcpc successfully gets an IP, but the IP address of the interface does not change:
Code:
root# udhcpc -i br1
udhcpc (v1.20.2) started
Sending discover...
Sending select for 192.168.0.2...
Lease of 192.168.0.2 obtained, lease time 7200
Code:
oot# ifconfig br1
br1 Link encap:Ethernet HWaddr 74:D0:2B:88:AC:D8
inet addr:192.168.0.253 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:585 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:106085 (103.5 KiB) TX bytes:1368 (1.3 KiB)
The service-start script that sets this all up is:
Code:
#!/bin/sh
robocfg vlan 1 ports "0t 1 2 8t"
robocfg vlan 4 ports "0t 4 8t"
vconfig add eth0 4
ifconfig vlan4 up
brctl addbr br1
brctl delif br0 wl0.1
brctl delif br0 wl1.1
brctl addif br1 vlan4
brctl addif br1 wl0.1
brctl addif br1 wl1.1
ifconfig br1 192.168.0.253 netmask 255.255.255.0
ifconfig br1 up
How do I get br1 to get an address by DHCP?