I've got a DIR-825 running Backfire (r24038) and I am trying to isolate one of
the LAN ports to be a second WAN port. I seem to have this concept of
isolating
the port working but in general things just don't seem right. Here's my
/etc/config/network:
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'
option 'type' 'bridge'
option 'proto' 'static'
option 'netmask' '255.255.255.0'
option 'ipaddr' '10.75.22.196'
option 'dns' '10.75.22.3'
option 'gateway' '10.75.22.254'
config 'interface' 'wan0'
option 'ifname' 'eth1'
option 'proto' 'dhcp'
config 'interface' 'wan1'
option 'proto' 'pppoe'
option 'ifname' 'eth0.2'
option 'username' '...'
option 'password' '...'
option 'ppp_redial' 'persist'
option 'peerdns' '0'
option 'defaultroute' '0'
config 'switch'
option 'name' 'rtl8366s'
option 'reset' '1'
option 'enable_vlan' '1'
config 'switch_vlan'
option 'device' 'rtl8366s'
option 'vlan' '1'
option 'ports' '1 2 3 5*'
config 'switch_vlan'
option 'device' 'rtl8366s'
option 'vlan' '2'
option 'ports' '0 5'
Here's the resulting interface configuration:
br-lan Link encap:Ethernet HWaddr 00:18:E7:ED:BF:25
inet addr:10.75.22.196 Bcast:10.75.22.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:756 errors:0 dropped:0 overruns:0 frame:0
TX packets:575 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:63967 (62.4 KiB) TX bytes:62645 (61.1 KiB)
eth0 Link encap:Ethernet HWaddr 00:18:E7:ED:BF:27
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:764 errors:0 dropped:0 overruns:0 frame:0
TX packets:601 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:75099 (73.3 KiB) TX bytes:64588 (63.0 KiB)
Interrupt:4
eth0.2 Link encap:Ethernet HWaddr 00:18:E7:ED:BF:27
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:900 (900.0 B)
eth1 Link encap:Ethernet HWaddr 00:18:E7:ED:BF:28
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:5
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
[ wlan interface configurations deleted for brevity ]
And bridge configuration:
# brctl show
bridge name bridge id STP enabled interfaces
br-lan 8000.0018e7edbf25 no eth0
wlan0
wlan1
The result doesn't seem to match the (intended) configuration though.
First of all, given that I have defined vlans 1 and 2, why do I only get an
eth0.2 and not an eth0.1? Shouldn't there be an eth0.1 representing the three
remaining LAN ports and shouldn't eth0.1 be bridged into br-lan?
Second, physically, the router is only reachable on it's LAN IP on port 4 of
the router (which is port 0 of the switch). Port 4 of the router was supposed
to be the 2nd Internet port, eth0.2 on vlan 2. If I plug the LAN cable into
any of the 3 ports that were supposed to be LAN, I can't reach the router.
Anyone have any ideas what is wrong with my configuration to cause these
anomalies?
Cheers,
b.
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-users