You are not logged in.
My PC is connected over wifi to a router and the internet. It's connecting automatically using Netcfg's net-auto-wireless and using dhcp for now. I'm trying to plug in my Xbox (original) to the PC via ethernet so that I can FTP to it and eventually bridge the connections to get internet to the Xbox.
I can get the Xbox connected and ping it successfully. But when I try to access the internet on my PC I guess it tries to route through the ethernet rather than the wireless and doesn't work.
My networking skills are non-existent so the following is probably wrong somewhere and I could use some pointers getting this working.
PC using DHCP to router:
IP: 10.1.1.2
Gateway: 10.1.1.1
My netcfg ethernet profile for connecting to the Xbox is set up as:
CONNECTION='ethernet'
INTERFACE='eth0'
IP='static'
ADDR='192.168.1.23'
GATEWAY='192.168.1.1'
DNS=('192.168.1.1')
and the Xbox is set up for Static IP:
IP: 192.168.1.99
Netmask: 255.255.255.0
Gateway: 192.168.1.23
DNS: 10.1.1.1
Last edited by greatant (2011-07-05 05:38:16)
Offline
Can you post the output of ip route ?? Your problem is probably the default gateway. You may want to drop the GATEWAY clause; It is telling your system to look on 192.168.1.1 for the Internet.
Also, What is your IP address on your WLAN? If it is using the same subnet (192.168.1.*) as the wired Ethernet, you are in for a world of hurt.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
IP address on WLAN is 10.1.1.2, router is at 10.1.1.1
I can change to whatever address range suits.
I specifically selected the 192.168.1.x range for the ethernet cos I figure it needs to be different to the WLAN.
ip route without ethernet connected:
10.0.0.0/8 dev wlan0 proto kernel scope link src 10.1.1.2 metric 303
default via 10.1.1.1 dev wlan0 metric 303
ip route with ethernet connected:
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.23
10.0.0.0/8 dev wlan0 proto kernel scope link src 10.1.1.2 metric 303
default via 192.168.1.1 dev eth0
default via 10.1.1.1 dev wlan0 metric 303
EDIT:
Works now. Can ping both websites and Xbox.
ip route with ethernet connected and gateway removed from ethernet netcfg profile:
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.23
10.0.0.0/8 dev wlan0 proto kernel scope link src 10.1.1.2 metric 303
default via 10.1.1.1 dev wlan0 metric 303
Last edited by greatant (2011-07-05 05:30:01)
Offline