Log in

Bekijk de volledige versie : Help With Wan Config



enzo86
11-03-2008, 03:19
Hello I have a 500-GP running openwrt wr6. Currently have it setup for client bridge over wifi and I would like to set this as dhcp , but I would also like to set the Wan Interface to a static ip in another network so that if something happened I could always connect a laptop to this port.

I have configured the wan interface to another subnet (192.168.205.1), Placed my laptop on a usable ip in that same subnet (192.168.205.2), disabled all Iptables / Firewall , but I am still unable to ping the wan interface from the laptop.

vlan1 = wan
vlan0 = lan
eth2 = wifi in client bridge mode
br0 bridged wifi and lan vlan0 and eth2


Here are the details.


brctl show
bridge name bridge id STP enabled interfaces
br0 8000.001e8c3e001e yes vlan0
eth2


nvram show | grep ifname
wl0_ifname=eth2
lan_ifnames_t=vlan0 eth1
wlan_ifname=eth2
wifi_ifnames=
lan_ifnames=vlan0 eth2
pppoe_ifname=
wan_ifnames=vlan1
lan_ifname=br0
wl_ifname=
wifi_ifname=
wan_ifname=vlan1
primary_ifname=eth0
wan_pppoe_ifname=
pppoe_ifnames=


nvram show | grep vlan
vlan0ports=1 2 3 4 5*
lan_ifnames_t=vlan0 eth1
lan_ifnames=vlan0 eth2
vlan_enable=1
wan_ifnames=vlan1
vlan1hwname=et0
vlan1ports=0 5u
wan_ifname=vlan1
landevs=vlan0 wl0
vlan0hwname=et0

route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.7.0 0.0.0.0 255.255.255.0 U 0 0 0 br0
192.168.205.0 0.0.0.0 255.255.255.0 U 0 0 0 vlan1
0.0.0.0 192.168.7.1 0.0.0.0 UG 0 0 0 br0



ifconfig
br0 Link encap:Ethernet HWaddr 00:1E:8C:3E:00:1E
inet addr:192.168.7.202 Bcast:192.168.7.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11247 errors:0 dropped:0 overruns:0 frame:0
TX packets:7613 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1350297 (1.2 MiB) TX bytes:2601866 (2.4 MiB)

eth0 Link encap:Ethernet HWaddr 00:1E:8C:3E:00:1E
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:301 errors:0 dropped:0 overruns:0 frame:0
TX packets:15889 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:27843 (27.1 KiB) TX bytes:1343358 (1.2 MiB)
Interrupt:4

eth2 Link encap:Ethernet HWaddr 00:1E:8C:3E:00:1E
UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1
RX packets:23946 errors:0 dropped:0 overruns:0 frame:4011755
TX packets:7674 errors:3 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2168103 (2.0 MiB) TX bytes:2731132 (2.6 MiB)
Interrupt:2 Base address:0x2000

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:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:960 (960.0 B) TX bytes:960 (960.0 B)

vlan0 Link encap:Ethernet HWaddr 00:1E:8C:3E:00:1E
UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:15839 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:1266525 (1.2 MiB)

vlan1 Link encap:Ethernet HWaddr 00:1E:8C:3E:00:1E
inet addr:192.168.205.1 Bcast:192.168.205.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:45 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:7002 (6.8 KiB)

Any Help would be great..


--Jason