Hi, the strange thing is that i can connect to the ip 192.168.1.100 and 192.168.1.101 though i have deactivated eth0 (192.168.1.100)
tc@box:~$ ifconfig
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:24 errors:0 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1200 (1.1 KiB) TX bytes:1200 (1.1 KiB)
wlan0 Link encap:Ethernet HWaddr 00:0b:81:84:37:18
inet addr:192.168.1.101 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:30867 errors:0 dropped:6816 overruns:0 frame:0
TX packets:3741 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3528319 (3.3 MiB) TX bytes:682099 (666.1 KiB)
tc@box:~$
tc@box:/opt$ cat eth0.sh
#!/bin/sh
#pkill udhcpc
ifconfig eth0 192.168.1.100 netmask 255.255.255.0 broadcast 192.168.1.255 up
#route add default gw 192.168.1.254
#echo nameserver 192.168.1.254 > /etc/resolv.conf
#echo nameserver 8.8.8.8 >> /etc/resolv.conf
ifconfig eth0 down
tc@box:/opt$
tc@box:~$ ping 192.168.1.101
PING 192.168.1.101 (192.168.1.101): 56 data bytes
64 bytes from 192.168.1.101: seq=0 ttl=64 time=2.266 ms
64 bytes from 192.168.1.101: seq=1 ttl=64 time=0.351 ms
64 bytes from 192.168.1.101: seq=2 ttl=64 time=0.473 ms
^C
--- 192.168.1.101 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.351/1.030/2.266 ms
tc@box:~$ ping 192.168.1.100
PING 192.168.1.100 (192.168.1.100): 56 data bytes
64 bytes from 192.168.1.100: seq=0 ttl=64 time=0.582 ms
64 bytes from 192.168.1.100: seq=1 ttl=64 time=0.352 ms
64 bytes from 192.168.1.100: seq=2 ttl=64 time=0.351 ms
64 bytes from 192.168.1.100: seq=3 ttl=64 time=0.350 ms
^C
--- 192.168.1.100 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 0.350/0.408/0.582 ms
Thanks Luca