Hello,
I have an ubuntu box with both a wireless and wired interface and I would like to use it to allow my XBMC xbox to connect to the internet.
This is he setup
Internet ---- Wireless router (192.168.0.1) ---- wlan0 ubuntu box eth0 ---- xbox
wlan0: inet addr:192.168.0.8 Bcast:192.168.0.255 Mask:255.255.255.0
eth0: inet addr:192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0
xbox: inet addr:192.168.2.2 Bcast:192.168.2.255 Mask:255.255.255.0
Here is the route table for the ubuntu box:
Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 * 255.255.255.0 U 0 0 0 eth0
192.168.0.0 * 255.255.255.0 U 0 0 0 wlan0
link-local * 255.255.0.0 U 1000 0 0 wlan0
default tomato.brewer.m 0.0.0.0 UG 100 0 0 wlan0
The ubuntu box can access the internet/wireless router fine.
The xbox can ping 192.168.2.1 successfully but fails when trying to ping 192.168.0.1.
/etc/network/interfaces looks like this:
Code:
auto lo
iface lo inet loopback
auto wlan0
iface wlan0 inet static
address 192.168.0.8
netmask 255.255.255.0
gateway 192.168.0.1
wireless-essid BrewerNet
wireless-key 63B6F3***************695CC
wireless-channel 9
wireless-mode managed
auto eth0
iface eth0 inet static
address 192.168.2.1
netmask 255.255.255.0
gateway 192.168.0.1
I couldn' get the routing info from the xbox, so I plugged in a laptop setup in the same way. Here is the info:
Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 * 255.255.255.0 U 0 0 0 eth0
default 192.168.2.1 0.0.0.0 UG 0 0 0 eth0
Interestingly, it took a long time for the default line to appear.
Ping successful: 192.168.2.2, 192.168.2.1, 192.168.0.8
Ping unsuccessful: 192.168.0.1, 208.67.222.222 (opendns)
The router is running the tomato firmware.
Many thanks for looking at this I am at a complete loss.
I cannot ping 192.168.2.1 from the router (192.168.0.1)
On ubuntu box the firewall is clear:
Code:
sudo iptables -S
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
Could you tell me where I am going wrong?