LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-30-2009, 12:58 PM   #1
SleepyWolf
LQ Newbie
 
Registered: Nov 2008
Location: Sofia
Posts: 27

Rep: Reputation: 10
Lost default gateway setting


I will join this topic with a simular problem as slvfx. I have also lost my connection with internet, although I have just used a wired one (LAN) on my laptop ACER Aspire 5730Z. I was running it without a created connction in "Network Configuration" and there were no problems. Some days ago, may be, I made a mistake suring trying to connect to wireless internet. As slvfx, I have lost my connection with internet (using Ubuntu 8.10) and I tryed what Vanel and eager suggested here. A can ping myself and the gateway, but nothing more. And, suprising for me, I have working Skype. This is all. Here is what is responding to
"ifconfig"

eth0 Link encap:Ethernet HWaddr 00:1d:72:cb:d8:ac
inet addr:91.92.167.195 Bcast:91.92.167.255 Mask:255.255.255.0
inet6 addr: fe80::21d:72ff:fecb:d8ac/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8695 errors:0 dropped:0 overruns:0 frame:0
TX packets:2380 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:642354 (642.3 KB) TX bytes:337160 (337.1 KB)
Interrupt:16

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2929 errors:0 dropped:0 overruns:0 frame:0
TX packets:2929 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:91971 (91.9 KB) TX bytes:91971 (91.9 KB)

and when I try to ping the gateway:
ping 91.92.167.1
PING 91.92.167.1 (91.92.167.1) 56(84) bytes of data.
64 bytes from 91.92.167.1: icmp_seq=1 ttl=64 time=6.14 ms
64 bytes from 91.92.167.1: icmp_seq=2 ttl=64 time=6.40 ms
64 bytes from 91.92.167.1: icmp_seq=3 ttl=64 time=6.40 ms
and it continues to endles...
 
Old 10-01-2009, 02:01 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Sleepy Wolf, I moved your post to it's own thread. It can become difficult trying to solve two persons problems in a single thread.
 
Old 10-01-2009, 07:43 AM   #3
SleepyWolf
LQ Newbie
 
Registered: Nov 2008
Location: Sofia
Posts: 27

Original Poster
Rep: Reputation: 10
jschiwal, yes I see. I just didn't want to make new topics for simular problems, but it seems to be not so simular.

I can ping yahoo. This is what I have :
akula@akula-laptop:~$ ping 69.147.114.224
PING 69.147.114.224 (69.147.114.224) 56(84) bytes of data.
64 bytes from 69.147.114.224: icmp_seq=1 ttl=55 time=130 ms
64 bytes from 69.147.114.224: icmp_seq=2 ttl=55 time=130 ms
64 bytes from 69.147.114.224: icmp_seq=3 ttl=55 time=130 ms
64 bytes from 69.147.114.224: icmp_seq=4 ttl=55 time=130 ms
...
64 bytes from 69.147.114.224: icmp_seq=47 ttl=55 time=130 ms
^C
--- 69.147.114.224 ping statistics ---
47 packets transmitted, 47 received, 0% packet loss, time 46183ms
rtt min/avg/max/mdev = 130.146/132.049/141.675/3.265 ms


akula@akula-laptop:~$ ping 209.191.93.53
PING 209.191.93.53 (209.191.93.53) 56(84) bytes of data.
64 bytes from 209.191.93.53: icmp_seq=1 ttl=56 time=218 ms
64 bytes from 209.191.93.53: icmp_seq=2 ttl=56 time=218 ms
64 bytes from 209.191.93.53: icmp_seq=3 ttl=56 time=218 ms
64 bytes from 209.191.93.53: icmp_seq=4 ttl=56 time=211 ms
64 bytes from 209.191.93.53: icmp_seq=5 ttl=56 time=214 ms
64 bytes from 209.191.93.53: icmp_seq=6 ttl=56 time=211 ms
64 bytes from 209.191.93.53: icmp_seq=7 ttl=56 time=211 ms
64 bytes from 209.191.93.53: icmp_seq=8 ttl=56 time=211 ms
^C
--- 209.191.93.53 ping statistics ---
8 packets transmitted, 8 received, 0% packet loss, time 7056ms
rtt min/avg/max/mdev = 211.564/214.695/218.694/3.136 ms


But I still can not browse from internet, I have just skype.
Here is what I get with the commands "route" and "dig":
akula@akula-laptop:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
91.92.167.0 * 255.255.255.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 1000 0 0 eth0
didefault 91.92.167.1 0.0.0.0 UG 100 0 0 eth0
akula@akula-laptop:~$ dig

; <<>> DiG 9.5.0-P2 <<>>
;; global options: printcmd
;; connection timed out; no servers could be reached

 
Old 10-01-2009, 09:09 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Is name resolution working? Try ping-by-name and ping-by-address
Code:
ping -c 3 75.126.162.205
ping -c 3 linuxquestions.org
 
Old 10-01-2009, 09:26 AM   #5
SleepyWolf
LQ Newbie
 
Registered: Nov 2008
Location: Sofia
Posts: 27

Original Poster
Rep: Reputation: 10
catkin, name resoltion is not working. It gave to me "Unknown host linuxquestions.org". But with address 75.126.162.205
it is all right :"3 packets transmitted, 3 received, 0% packet loss, time 2006 ms" plus some other in the end.
 
Old 10-01-2009, 10:24 AM   #6
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
OK. So the problem is name resolution, not gateway. What does you system use for name resolution? A good place to start would be
Code:
cat /etc/host.conf
cat /etc/nsswitch.conf
cat /etc/resolv.conf
 
Old 10-01-2009, 11:57 AM   #7
SleepyWolf
LQ Newbie
 
Registered: Nov 2008
Location: Sofia
Posts: 27

Original Poster
Rep: Reputation: 10
Here is what responded:
kula@akula-laptop:~$ cat /etc/host.conf
# The "order" line is only used by old versions of the C library.
order hosts,bind
multi on


akula@akula-laptop:~$ cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd: compat
group: compat
shadow: compat

hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
networks: files

protocols: db files
services: db files
ethers: db files
rpc: db files

netgroup: nis


akula@akula-laptop:~$ cat /etc/resolv.conf
# Generated by NetworkManager


Тhe first one # The "order" line is only used by old versions of the C library.
order hosts,bind
multi on
I don't understand it...
 
Old 10-02-2009, 05:57 AM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You need your ISP's name servers listed in /etc/resolv.conf. If you use DHCP, check if they are set in your router which serves up these things. You might also consider entering a couple openDNS servers instead and using them whether you are connecting from home, or from a restaurant or coffee shop.
 
Old 10-08-2009, 09:32 AM   #9
SleepyWolf
LQ Newbie
 
Registered: Nov 2008
Location: Sofia
Posts: 27

Original Poster
Rep: Reputation: 10
There is no names in /etc/resolv.conf All I have their is "#Generated by NetworkManager" May be this is the problem?
Beacause in the NetworkManager I have put the connection properties.
 
Old 10-11-2009, 01:55 PM   #10
btncix
Member
 
Registered: Aug 2009
Location: USA
Posts: 141

Rep: Reputation: 26
Did you get this resolved?

You might want to check your Network Manager profiles. You should delete any profile that tries to connect via wireless, reboot the computer, and see if the Network Manager reverts back to using your wired connection.

If the above does not work, you could manually added the DNS information to /etc/resolv.conf. The issue with this method is that you will have to do this every time you reboot your computer.
Use whatever text editor you know and add the following lines.
nameserver ipaddress.of.my.dnsserver -example nameserver 192.168.0.1

I would also keep an eye on slvfx's post.
 
Old 10-11-2009, 02:23 PM   #11
xcristi
Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 35

Rep: Reputation: 16
Put in /etc/resolv.conf

Code:
nameserver 208.67.222.222
nameserver 208.67.220.220
These are from openDNS

If you want to force prevention of file overwriting, just set immutable bit:

Code:
chattr +i /etc/resolv.conf

Last edited by xcristi; 10-11-2009 at 02:24 PM. Reason: update
 
Old 10-12-2009, 10:07 AM   #12
SleepyWolf
LQ Newbie
 
Registered: Nov 2008
Location: Sofia
Posts: 27

Original Poster
Rep: Reputation: 10
btncix and xcristi - I thank you very, very much ! Your way to solve the problem is working ! With putting the dns server's name in the /etc/resolv.conf it's all right.

Quote:
You might want to check your Network Manager profiles. You should delete any profile that tries to connect via wireless, reboot the computer, and see if the Network Manager reverts back to using your wired connection.
But this did not work. I could not find, but the Network Manager finds out always the wireless connections.

Thanks a lot ! :-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up a linux box as a default gateway/proxy anubis2k7 Linux - Networking 2 02-14-2008 11:56 AM
Setting the default gateway permanently hcclnoodles Linux - Newbie 5 09-26-2005 04:15 AM
Setting up Router/Default Gateway with Redhat 9.0 Tutorial bmfmyth Linux - Networking 3 08-31-2004 03:47 PM
setting my router as the default gateway TheOneAndOnlySM Linux - Networking 10 03-27-2004 06:12 PM
Setting default gateway from CLI? Pcghost Linux - Networking 1 03-20-2003 10:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration