Results 1 to 10 of 11
Hello!
I'm new to linux and i just installed suse 10.2. During the installation it automatically picked up my onboard network card, so i entered my ip and a default ...
- 08-12-2007 #1
Network card installed, but no internet connection
Hello!
I'm new to linux and i just installed suse 10.2. During the installation it automatically picked up my onboard network card, so i entered my ip and a default gatway to my router, but it could not download the latest release notes. So i skipped that and finished the installation.
Now when i run firefox i can log onto my router by typing it's ip into the address bar, but i do not have an internet connection.
It works fine on all other computers on the network and on my own when i run windows.
Any ideas?
Thx
SnagaDuath
- 08-12-2007 #2Linux Enthusiast
- Join Date
- Apr 2004
- Location
- UK
- Posts
- 658
Are you getting an 'unknown host' error?
If so, check /etc/resolv.conf for a line to the effect of
If that isn't the error, ping google and post the error here.Code:nameserver <gateway IP>
Let us know how you get on,
Chris...To be good, you must first be bad. "Newbie" is a rank, not a slight.
- 08-12-2007 #3
The resolv.conf file contains only one line : "domain Domain"
When i ping google i get the unknown host error you talked about.
- 08-12-2007 #4Linux Enthusiast
- Join Date
- Apr 2004
- Location
- UK
- Posts
- 658
Easy then (someone please note use of Famous Last Words), put in the nameserver line on a line by itself, being sure to change the bit in <> to the actual IP address of your gateway. You'll need to be root to edit the file.
Try pinging again and let us know how you get on,
Chris...To be good, you must first be bad. "Newbie" is a rank, not a slight.
- 08-12-2007 #5
I changed th resolv file to:
nameserver 192.168.1.1
now i get 'network unreachable' when i ping goolge.
I noticed that when i enable dhcp on my router and configure my network card accordingly everything works fine and the resolv file contains this exact line, but the moment dhcp is turned off i can only access the router.
thx for taking the time to help me!
- 08-12-2007 #6Linux Enthusiast
- Join Date
- Apr 2004
- Location
- UK
- Posts
- 658
Yes, dhcp will configure all of these things for you, but it might be valuable for you to fix this without dhcp just so you can see what's involved.
Can I get you to run the following commands (using the static settings you have so far) as root.
Chris...Code:ifconfig route -n cat /etc/resolv.conf
To be good, you must first be bad. "Newbie" is a rank, not a slight.
- 08-12-2007 #7
I would very much like to have it configured using static settings, i'm just happy that i don't have to reboot to windows every 10min anymore

this is the output for the commands:
Bennie:/etc # ifconfig
eth0 Link encap:Ethernet HWaddr 00:14:85:EF
C:57
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::214:85ff:feef:dc57/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7867 errors:0 dropped:0 overruns:0 frame:0
TX packets:7765 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4801991 (4.5 Mb) TX bytes:1261739 (1.2 Mb)
Interrupt:217 Base address:0xc000
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:646 errors:0 dropped:0 overruns:0 frame:0
TX packets:646 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:47116 (46.0 Kb) TX bytes:47116 (46.0 Kb)
Bennie:/etc # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
Bennie:/etc # cat /etc/resolv.conf
domain Domain
nameserver 192.168.1.1
- 08-12-2007 #8Linux Enthusiast
- Join Date
- Apr 2004
- Location
- UK
- Posts
- 658
It looks like your missing the default gateway entry in your routing table:
Should fix it up temporarily. If this works, let us know and we can look at making it permanent. Otherwise, post the errors you get.Code:route add default gw 192.168.1.1
Chris...To be good, you must first be bad. "Newbie" is a rank, not a slight.
- 08-12-2007 #9
It works now!
I'm a bit baffeled, though....i'm sure i entered the default gateway in the configuration during the installation
Anyway...thx a lot for your help!!
- 08-12-2007 #10Linux Enthusiast
- Join Date
- Apr 2004
- Location
- UK
- Posts
- 658
Check this thread for a quick discussion on making default gateways permanent under suse.
Let us know how you get on,
Chris...To be good, you must first be bad. "Newbie" is a rank, not a slight.


Reply With Quote