davenmccalla
New Member
I have a device with one wired interface (eth0) and one wireless interface (wlan0).
The wired interface is configured for static IP address:
The wired interface is configured for static IP address:
The wireless interface is configured for DHCP:iface eth0 inet static
address 172.16.11.200
netmask 255.255.252.0
post-up route add default gw 172.16.8.91 dev eth0
pre-down route del default gw 172.16.8.91 dev eth0
When I power up the device with the cable unplugged from the wired interface, the wireless can't communicate over the network. It get an IP address from DHCP server but I can't even ping the gateway.auto wlan0
iface wlan0 inet dhcp
wpa-conf /home/inkjet/cfg/wpa0.cfg
wlan0 Link encap:Ethernet HWaddr 08:BE:AC:2E:06:9E
inet addr:172.16.9.153 Bcast:172.16.11.255 Mask:255.255.252.0
inet6 addr: fe80::abe:acff:fe2e:69e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:23347 errors:0 dropped:1 overruns:0 frame:0
TX packets:7284 errors:0 dropped:2 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4721335 (4.5 MiB) TX bytes:2738477 (2.6 MiB)
The wireless interface starts working when I remove the gateway from the (unplugged) wired interface:eth0 Link encap:Ethernet HWaddr 00:06:B3:02:00:92
inet addr:172.16.11.200 Bcast:172.16.11.255 Mask:255.255.252.0
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:182
It there a way to define a gateway for the wired interface that doesn't prevent the wireless interface from working?iface eth0 inet static
address 172.16.11.200
netmask 255.255.252.0

