I can ping LAN, ifconfig is correct, but no internet

I just installed 11.0 and am trying to continue configuration. I can’t connect to the internet but I can ping other machines on my LAN and I can ping the router. ifconfig gives me

eth1 Link encap:Ethernet HWaddr 00:19:E3:F9:19:1B
inet addr: 192.168.1.13 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::219:e3ff:fef9:191b/64 Scope:Link
UP BRAODCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2017 errors:0 dropped:0 overruns:0 frame:0
TX packets:620 errors:0 dropped:0 overruns::0 carrier:0
collisions:0 txqueuelen:100
RX bytes:572378 {558.9 Kb} TX bytes:77357 {75.5 Kb}
Memory:f2c00000-f2c20000

The firewall is disabled; I am set up for retrieving dynamic DHCP.

I hope someone can help with further diagnostics or likely causes. Thanks in advance!

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The firewall obviously isn’t a problem if you are doing outbound stuff.
DHCP is the same since you can ping you obviously have a working IP
address. The problem is probably either your gateway (ip route sh) or
your DNS side of things (cat /etc/resolv.conf). Post the output from
those two commands and let’s see what we can see.

Good luck.

fogelfish wrote:
> I just installed 11.0 and am trying to continue configuration. I can’t
> connect to the internet but I can ping other machines on my LAN and I
> can ping the router. ifconfig gives me
>> eth1 Link encap:Ethernet HWaddr 00:19:E3:F9:19:1B
>> inet addr: 192.168.1.13 Bcast:192.168.1.255 Mask:255.255.255.0
>> inet6 addr: fe80::219:e3ff:fef9:191b/64 Scope:Link
>> UP BRAODCAST RUNNING MULTICAST MTU:1500 Metric:1
>> RX packets:2017 errors:0 dropped:0 overruns:0 frame:0
>> TX packets:620 errors:0 dropped:0 overruns::0 carrier:0
>> collisions:0 txqueuelen:100
>> RX bytes:572378 {558.9 Kb} TX bytes:77357 {75.5 Kb}
>> Memory:f2c00000-f2c20000
> The firewall is disabled; I am set up for retrieving dynamic DHCP.
>
> I hope someone can help with further diagnostics or likely causes.
> Thanks in advance!
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIpfZD3s42bA80+9kRAmIIAJ4+5GGVZAm7sp80lgj36s6F19JG4ACeNQwq
zRqYd/TdnwT01IGCdSvnmWI=
=t45d
-----END PGP SIGNATURE-----

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I forgot… your netmask could be hosed too and cause an issue but you
said ‘ifconfig’ showed everything correct so I’ll rule that out. If you
are in doubt, post the output of ip addr sh as well.

Good luck.

ab@novell.com wrote:
> The firewall obviously isn’t a problem if you are doing outbound stuff.
> DHCP is the same since you can ping you obviously have a working IP
> address. The problem is probably either your gateway (ip route sh) or
> your DNS side of things (cat /etc/resolv.conf). Post the output from
> those two commands and let’s see what we can see.
>
> Good luck.
>
>
>
>
>
>
> fogelfish wrote:
>> I just installed 11.0 and am trying to continue configuration. I can’t
>> connect to the internet but I can ping other machines on my LAN and I
>> can ping the router. ifconfig gives me
>>> eth1 Link encap:Ethernet HWaddr 00:19:E3:F9:19:1B
>>> inet addr: 192.168.1.13 Bcast:192.168.1.255 Mask:255.255.255.0
>>> inet6 addr: fe80::219:e3ff:fef9:191b/64 Scope:Link
>>> UP BRAODCAST RUNNING MULTICAST MTU:1500 Metric:1
>>> RX packets:2017 errors:0 dropped:0 overruns:0 frame:0
>>> TX packets:620 errors:0 dropped:0 overruns::0 carrier:0
>>> collisions:0 txqueuelen:100
>>> RX bytes:572378 {558.9 Kb} TX bytes:77357 {75.5 Kb}
>>> Memory:f2c00000-f2c20000
>> The firewall is disabled; I am set up for retrieving dynamic DHCP.
>
>> I hope someone can help with further diagnostics or likely causes.
>> Thanks in advance!
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIpfZd3s42bA80+9kRAgdrAJ9kPgNxnSuTb1dumxUy4pb3CPOqmgCfV6cP
kLqSBrdicygbDOO9ta8yv/4=
=JJT3
-----END PGP SIGNATURE-----

Try adding the Name Resolvers’ IP addresses and the Gateway/Router’s IP address by hand – sometimes necessary. It’s in Yast – Network Config.
For a pictorial look at the sequence of PICS 1,2,5,6,7,8 in this tutorial:
HowTo Configure a network card in Suse/openSUSE 10.x for LAN and Internet Access.
The so called “DHCP on Steroids”

Might help
Luck

Thanks for your suggestions. When I looked at /etc/resolv.conf, it was empty except for what looked like the normal starting comments. I added

nameserver 192.168.1.1
search AIF

The first is my router’s address, the second is my Windows Workgroup. But this information disappeared asnsoon as I went through YaST -> Network Devices -> Network Settings -> Hostname/DNS. I added those lines manually to /etc/resolv.conf because the Network Settings GUI did not let me make changes. I can’t check “Change /etc/resolv.conf manually” and can’t add anything to the “Name Servers and Domain Search List” section.

When I ran “ip route sh” I saw

192.168.1.0/24 dev eth1 proto kernel scope link src 192.168.1.13
169.254.0.0/16 dev eth1 scope link
127.0.0.0/8 dev lo scope link

I don’t yet understand what all of that means, but I am very puzzled by “169.254.0.0”. That is not an IP on my network.

I won’t show the result of “ip addr sh” because it looked fine given what I know.

One more bit of information: this machine has two network interfaces. The cable from the router is currently plugged into eth1 and all the tests I’ve performed are on eth1.

I’ve configured eth0 to start on cable connection.

Does Linux want or require eth0 to be used before eth1? Who knows with these machines?

On Sat, 16 Aug 2008 06:26:02 GMT
fogelfish <fogelfish@no-mx.forums.opensuse.org> wrote:

>
> Thanks for your suggestions. When I looked at /etc/resolv.conf, it was
> empty except for what looked like the normal starting comments. I
> added
> > nameserver 192.168.1.1
> > search AIF
> The first is my router’s address, the second is my Windows Workgroup.
> But this information disappeared asnsoon as I went through YaST ->
> Network Devices -> Network Settings -> Hostname/DNS. I added those
> lines manually to /etc/resolv.conf because the Network Settings GUI did
> not let me make changes. I can’t check “Change /etc/resolv.conf
> manually” and can’t add anything to the “Name Servers and Domain Search
> List” section.
>
> When I ran “ip route sh” I saw
> > 192.168.1.0/24 dev eth1 proto kernel scope link src 192.168.1.13
> > 169.254.0.0/16 dev eth1 scope link
> > 127.0.0.0/8 dev lo scope link
> I don’t yet understand what all of that means, but I am very puzzled by
> “169.254.0.0”. That is not an IP on my network.
>
> I won’t show the result of “ip addr sh” because it looked fine given
> what I know.
>
>

You’re missing your default route.

Check the fourth tab in Network settings. It should probably be
‘192.168.1.1’, the same as your dns, since it’s your gateway/firewall/router.

For future reference, the command to set it manually is:

route add default gw 192.168.1.1

169.254.0.0 is a standard ‘class’ of ip addresses, used when a system cannot
find a dhcp server and does not have a fixed address. This could allow
systems to communicate with some sort of ‘help server’. No idea really. You
usually see these type addresses on windows machines which cannot find a dhcp
server. Linux machines typically just sulk and keep waiting. It can be safely ignored.

oh, in /etc/resolv.conf, the ‘search’ line specifies a default domain name to
search, if one were not given, not a workgroup. ({Chuckle} dns was around
long before windows was!)

As an example, I own the ‘lornix.com’ domain… so my resolv.conf contains
‘search lornix.com’. This means that if I query for ‘saturn’, if it doesn’t
find something that matches exactly, it appends ‘.lornix.com’ to the end and
tries again… thus finding ‘saturn.lornix.com’ (my main machine). Very
handy.

Loni


L R Nix
lornix@lornix.com

On Sat, 16 Aug 2008 06:46:03 GMT
fogelfish <fogelfish@no-mx.forums.opensuse.org> wrote:

>
> One more bit of information: this machine has two network interfaces.
> The cable from the router is currently plugged into eth1 and all the
> tests I’ve performed are on eth1.
>
> I’ve configured eth0 to start on cable connection.
>
> Does Linux want or require eth0 to be used before eth1? Who knows with
> these machines?
>
>

Nope, you’re fine.


L R Nix
lornix@lornix.com

Miracles can occur in the humblest of circumstances. In bash I typed:

“ifconfig eth1 192.168.1.13”
“route add default gw 192.168.1.1” (which responded: “SIOCADDRT: File exists”)
and again I added “nameserver 192.168.1.1” to /etc/resolv.conf.

Before restarting the machine I also installed the new nVidia drivers (and down came a horde of rpm’s not seemingly related to video drivers).

Upon restart “/etc/resolv.conf” contains information modified by dhcpcd (where beforehand it was an empty comment block) and it now contains
“nameserver 192.168.1.1”

I have internet service. Hurrah! Strangely I can also use the Hostname/DNS interface in Network Settings (which was disabled during my previous posts).

Which file is affected by “route add default gw 192.168.1.1”? I ask because I still don’t see any value under Default Gateway in the 4th tab in Network Settings.

Also wondering: which configuration file is affected by the ifconfig command?

On Sat, 16 Aug 2008 08:56:02 GMT
fogelfish <fogelfish@no-mx.forums.opensuse.org> wrote:

>
> Miracles can occur in the humblest of circumstances. In bash I typed:
>
> “ifconfig eth1 192.168.1.13”
> “route add default gw 192.168.1.1” (which responded: “SIOCADDRT: File
> exists”)
> and again I added “nameserver 192.168.1.1” to /etc/resolv.conf.
>
> Before restarting the machine I also installed the new nVidia drivers
> (and down came a horde of rpm’s not seemingly related to video
> drivers).
>
> Upon restart “/etc/resolv.conf” contains information modified by dhcpcd
> (where beforehand it was an empty comment block) and it now contains
> “nameserver 192.168.1.1”
>
> I have internet service. Hurrah! Strangely I can also use the
> Hostname/DNS interface in Network Settings (which was disabled during
> my previous posts).
>
> Which file is affected by “route add default gw 192.168.1.1”? I ask
> because I still don’t see any value under Default Gateway in the 4th
> tab in Network Settings.
>
> Also wondering: which configuration file is affected by the ifconfig
> command?
>
>

The commands

route add default gw 192.168.1.1
ifconfig eth1 192.168.1.13

don’t affect ANY files that I’m aware of, they’re more “instant” results type
commands.

The “SIOCADDRT: File exists” is the kernel whining that the route
already exists. You tried to set a route that was already in place. No
worries!

So you’re online? really and truly? Automatically?

Yaaay! Congratulations!

Remember that automatically set routes (via DHCP) do not appear in the
‘Default Gateway’ in the fourth tab.

Loni


L R Nix
lornix@lornix.com