Minulla on tälläinen mielenkiintoinen ongelma. Kannettavalla on wlan ja ethernet, joista käytän toista riippuen siitä olenko piuhan päässä. Joku aika sitten langallinen (ethernet) lakkasi kuitenkin yhdistämästä palvelimeeni. Langattomalla toimii edelleen. Pingi menee hassusti läpi niin, että kannettavalta voi aina pingata palvelinta, mutta palvelimelta vain langatonta (kun se on päällä, tietenkin). Itse tuota olen jo jonkun aikaa selvitellyt, mutta en ole kyllä keksinyt missä on vika. Jos joku keksii, niin olisin kiitollinen. Gigabitin ethernet on kuitenkin aika paljon nopeampi kuin N-sarjan wlan.
Ip:t ovat 192.168.0.125 wlan, 192.168.0.126 ethernet kannettavalla. 192.168.0.120 on langallinen palvelimessa. Nettiin pääsen kaikilla yhteyksillä.
Tässä vähän tulosteita. Ensin kannettavalta kun käytössä on langallinen:
$ ip route
default via 192.168.0.1 dev eth0 proto static
192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.126 metric 1
$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:1f:e2:1c:db:68 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.126/24 brd 192.168.0.255 scope global eth0
valid_lft forever preferred_lft forever
inet 192.168.0.120/24 brd 192.168.0.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet6 fe80::21f:e2ff:fe1c:db68/64 scope link
valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN qlen 1000
link/ether 00:13:e8:9c:00:59 brd ff:ff:ff:ff:ff:ff
$ ping 192.168.0.120 -c 3
PING 192.168.0.120 (192.168.0.120) 56(84) bytes of data.
64 bytes from 192.168.0.120: icmp_seq=1 ttl=64 time=0.061 ms
64 bytes from 192.168.0.120: icmp_seq=2 ttl=64 time=0.059 ms
64 bytes from 192.168.0.120: icmp_seq=3 ttl=64 time=0.061 ms
--- 192.168.0.120 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.059/0.060/0.061/0.006 ms
Palvelimelta ping, kun kannettavalla on käytössä langallinen:
PING 192.168.0.126 (192.168.0.126) 56(84) bytes of data.
From 192.168.0.120 icmp_seq=1 Destination Host Unreachable
From 192.168.0.120 icmp_seq=2 Destination Host Unreachable
From 192.168.0.120 icmp_seq=3 Destination Host Unreachable
--- 192.168.0.126 ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 1999ms
Kannettavalla langaton käytössä:
$ ip route
default via 192.168.0.1 dev wlan0 proto static
192.168.0.0/24 dev wlan0 proto kernel scope link src 192.168.0.125 metric 9
$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:1f:e2:1c:db:68 brd ff:ff:ff:ff:ff:ff
inet6 fe80::21f:e2ff:fe1c:db68/64 scope link
valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
link/ether 00:13:e8:9c:00:59 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.125/24 brd 192.168.0.255 scope global wlan0
valid_lft forever preferred_lft forever
inet6 fe80::213:e8ff:fe9c:59/64 scope link
valid_lft forever preferred_lft forever
$ ping 192.168.0.120 -c 3
PING 192.168.0.120 (192.168.0.120) 56(84) bytes of data.
64 bytes from 192.168.0.120: icmp_seq=1 ttl=64 time=1.80 ms
64 bytes from 192.168.0.120: icmp_seq=2 ttl=64 time=2.30 ms
64 bytes from 192.168.0.120: icmp_seq=3 ttl=64 time=0.874 ms
--- 192.168.0.120 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 0.874/1.660/2.301/0.591 ms
$
Palvelimelta ping, kun kannettavalla on käytössä langallinen:
PING 192.168.0.125 (192.168.0.125) 56(84) bytes of data.
64 bytes from 192.168.0.125: icmp_req=1 ttl=64 time=0.618 ms
64 bytes from 192.168.0.125: icmp_req=2 ttl=64 time=0.565 ms
64 bytes from 192.168.0.125: icmp_req=3 ttl=64 time=0.597 ms
--- 192.168.0.125 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.565/0.593/0.618/0.029 ms
Palvelimen asetuksia:
$ ip route show
default via 192.168.0.1 dev eth0 proto static
192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.120 metric 100
$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:24:8c:c3:44:7d brd ff:ff:ff:ff:ff:ff
inet 192.168.0.120/24 brd 192.168.0.255 scope global eth0
inet6 fe80::224:8cff:fec3:447d/64 scope link
valid_lft forever preferred_lft forever
hosts tiedostoissa ei ole mitään erikoista.