Daniel Bauer wrote:
Am 15.06.2014 20:33, schrieb Dirk Gently:
Daniel Bauer wrote:
Hello,
since quite a while (some months) I have no connection to the router after boot. After the boot and login, I must switch off and on the router, establishing a new adsl-connection, and then the system connects. ....
Try this script (note: must be run as/by root): _____________________SCRIPT STARTS ON NEXT LINE_________________________ ...
Dirk,
I rebooted the computer to try your script, this is the output...:
Use which interface ? eth0 execute ifup eth0 ?y What IP address for eth0 ? 192.168.1.32
Attempting to configure eth0 + ifconfig eth0 192.168.1.32 + set +x
Press return key + ifconfig eth0 eth0 Link encap:Ethernet HWaddr 1C:6F:65:91:08:F9 inet addr:192.168.1.32 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
+ set +x What is the name or IP address of the router/gateway? 192.168.1.1 specifying path to router 192.168.1.1 + route add 192.168.1.1 eth0 + set +x defining 192.168.1.1 as the gateway. + route add default gw 192.168.1.1 eth0 + set +x Verifiny that route table complete: + route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0 loopback * 255.0.0.0 U 0 0 0 lo 192.168.1.0 * 255.255.255.0 U 0 0 0 eth0 192.168.1.1 * 255.255.255.255 UH 0 0 0 eth0 + set +x test local network with 3 pings: + ping -c 3 192.168.1.1 PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. From 192.168.1.32 icmp_seq=1 Destination Host Unreachable From 192.168.1.32 icmp_seq=2 Destination Host Unreachable From 192.168.1.32 icmp_seq=3 Destination Host Unreachable
--- 192.168.1.1 ping statistics --- 3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2000ms pipe 2 + set +x test routing by pinging Google public DNS servers 3 times each + ping -c 3 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. From 192.168.1.32 icmp_seq=1 Destination Host Unreachable From 192.168.1.32 icmp_seq=2 Destination Host Unreachable From 192.168.1.32 icmp_seq=3 Destination Host Unreachable
--- 8.8.8.8 ping statistics --- 3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 1999ms pipe 3 + ping -c 3 8.8.4.4 PING 8.8.4.4 (8.8.4.4) 56(84) bytes of data. From 192.168.1.32 icmp_seq=1 Destination Host Unreachable From 192.168.1.32 icmp_seq=2 Destination Host Unreachable From 192.168.1.32 icmp_seq=3 Destination Host Unreachable
--- 8.8.4.4 ping statistics --- 3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 1999ms pipe 3 + set +x Testing DNS functionality: pinging www.google.com 3 times + ping -c 3 www.google.com ping: unknown host www.google.com + set +x
As you can see, it just didn't find the router... I switched off and on the router, and the connection gets established (eth immediately after switch on, internet after the router has it...)
Wow... strange behavior. I'm guessing that your router is misbehaving
???
Daniel
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org