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.
I have no idea where I could search for the reasons, where to look up hints or logs, what data I should mention here, where to "screw" to solve the problem...
Opensuse 12.3 KDE 4.10.5 network setup "traditional" with ifup connected by cable from eth0 to adsl-router
Once, after boot, I tried to switch to network-manager, but it tells me that no cable is connected, so I switched back to "traditional".
Earlier, somebody said, I'd have to disconnect the router from all cables incl. phone line and power, and leave it a while. I first thought that it helped, but in fact it did not...
Anybody had similar problems and found a solution?
Thanks for your help!
Daniel
Try this script (note: must be run as/by root): _____________________SCRIPT STARTS ON NEXT LINE_________________________ #!/bin/bash # # quicknet - quickly set up networking on specified interface & IP # # Date Who What/notes # ----------- ----------------------- ------------------------------------ # 26 Feb 2010 Aaron R. Kulkis Original version # http://pastebin.com/yX6WSyMz # # # Essence of program: # prompt and read INTERFACE # ifup $INTERFACE # ifconfig # prompt and read IP # ifconfig $INTERFACE $IP # ifconfig # prompt and read ROUTER # route add $ROUTER $INTERFACE # route # route add default gw $ROUTER $INTERFACE # route # ping ROUTER (confirm connection to router) # ping 8.8.8.8 (Google open DNS host, confirms gateway operation)) # ping www.google.com (confirms DNS operation) # # SELF=`basename $0` # #### GET INTERFACE ################## # printf "Use which interface ? " read INTERFACE printf "execute ifup $INTERFACE ?" read RESPONSE case RESPONSE in y* | Y* ) set -x ifup $INTERFACE ifconfig $INTERFACE set +x ;; esac # #### GET ADDRESS ################## # printf "What IP address for $INTERFACE ? " read IP printf "\nAttempting to configure $INTERFACE\n" set -x ; ifconfig $INTERFACE $IP ; set +x printf "\nPress return key" ; read A set -x ; ifconfig $INTERFACE ; set +x # #### DEFINE ROUTER ################## # printf "What is the name or IP address of the router/gateway? " read ROUTER printf "specifying path to router $ROUTER\n" set -x ; route add $ROUTER $INTERFACE ; set +x # printf "\nPress return key" ; read A # printf "Verifying route added to route table\n" # set -x ; route ; set +x printf "defining $ROUTER as the gateway.\n" set -x ; route add default gw $ROUTER $INTERFACE ; set +x # printf "\nPress return key" ; read A # printf "Verify route added to route table\n" # set -x ; route ; set +x # #### VERIFY ROUTE COMPLETE ################## # printf "Verifiny that route table complete:\n" set -x ; route ; set +x printf "test local network with 3 pings: " set -x; ping -c 3 $ROUTER ; set +x printf "test routing by pinging Google public DNS servers 3 times each\n" set -x ping -c 3 8.8.8.8 ping -c 3 8.8.4.4 set +x printf "Testing DNS functionality:\n pinging www.google.com 3 times\n" set -x; ping -c 3 www.google.com ; set +x ############# end of quicknet ##################### For ease of use, you can do something like this: $ more eth1.1.101 eth1 y 192.168.1.101 192.168.1.254 $ qn < /local/bin/eth1.1.101 Note, instead of IP addresses, you can use hostnames placed in /etc/hosts/ Example: $ grep "2wire\|wowhome" /etc/hosts 192.168.1.254 2wirerouter 2wire 2wirehome 192.168.0.1 wowrouter wow wowhome $ more eth0.0.100 eth0 y 192.168.0.100 wowhome $ more eth1.1.67 eth1 y 192.168.1.67 2wire $ grep "2wire\|wowhome" /etc/hosts 192.168.1.254 2wirerouter 2wire 2wirehome 192.168.0.1 wowrouter wow wowhome -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org