edit to give a short summary after i wrote and posted all that is below.
"Connection failed msg" when setting up eth0 should be expected for reasons mentioned in below posts. Just run with the setup ignoring the error message and try to go online with your DS, check your DS internet connectivity, not pcc complains to see if things work or not
for your convenience, the instructions to follow are in this thread:
http://www.pclinuxos.com/forum/index.php/topic,100921.msg866927.html#msg866927I dont understand why its not working, i have the same setup, though i have a hub where you have a router but the principle should be the same as both the hub and router just pass through traffic, a router though does more by masquerading the traffic from its other end.
This is my set up.
Computer A.
wlan0 interface is connected to the wireless network from the other room.
eth0 is connected to a hub through a cable.
Computer B( where i am typing this from) is connected to the hub. When i click send here, the traffic will flow from this computer, to the hub,to eth0 on computer A, to wlan0 on computer A, to the wireless access point and then to the ISP on its way to pclinuxos server.
As you can see, the only difference btw what i have and what you have is that i use a hub btw the two computers and you use a router,i havent tested it with a router but i think it should work since the general network properties are the same.
This my interface properties on computer A.
[root@mtz ink]# cat /etc/sysconfig/network-scripts/ifcfg-wlan0
DEVICE=wlan0
BOOTPROTO=static
IPADDR=10.10.10.100
NETMASK=255.255.255.0
GATEWAY=10.10.10.1
ONBOOT=yes
METRIC=35
MII_NOT_SUPPORTED=no
USERCTL=yes
DNS1=127.0.0.1 <---------DNS could be 8.8.8.8,(why i have a local address here shouldnt be relevant)
RESOLV_MODS=no
WIRELESS_MODE=Managed
WIRELESS_ESSID=<masked>
WIRELESS_ENC_KEY=<masked>
WIRELESS_WPA_DRIVER=wext
WIRELESS_WPA_REASSOCIATE=no
IPV6INIT=no
IPV6TO4INIT=no
ACCOUNTING=yes
[root@mtz ink]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
IPADDR=10.10.100.100
NETMASK=255.255.255.0
GATEWAY=10.10.10.1 <------gateway address of the wireless network
ONBOOT=yes
METRIC=10
MII_NOT_SUPPORTED=no
USERCTL=yes
DNS1=8.8.8.8
RESOLV_MODS=no
IPV6INIT=no
IPV6TO4INIT=no
ACCOUNTING=yes
Network properties on the computer B.(winxp computer,output of ipconfig)
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 10.10.100.200
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.10.100.100
Notice the IP addresses on the same colors have the same numbers to the left of the last dot and their interfaces are the ones connected through the hub(in my case) and router in yours.
If things do not work, then either we are making a mistake somewhere or the setup doesnt work with a router(cant see why if this is true)
what is the output of these two commands?( post them,dont just explain them)
cat /proc/sys/net/ipv4/ip_forward
iptables -t nat -L -v
The first command should give you "1"
The second one should have something like below(relevant part is in red)
[root@mtz ink]# iptables -t nat -L -v
Chain PREROUTING (policy ACCEPT 388K packets, 55M bytes)
pkts bytes target prot opt in out source destination
Chain INPUT (policy ACCEPT 192 packets, 25768 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 134K packets, 8571K bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 17126 packets, 2920K bytes)
pkts bytes target prot opt in out source destination
17229 1190K MASQUERADE all -- any wlan0 anywhere anywhere