OpenSuse Internet Connection Trouble (Down & Up)

Hi everybody.

I have installed OpenSuse on a HP Proliant Server with 2 NIC interfaces, and once I set both Network Card’s configurations (Static IPs), set up the list of DNS servers and the default gateway everything works perfectly, but sometimes when I shutdown or restart my server I lost my internet connection apparently with no reason, and also sometimes when I can access to the internet with the browser, just pass a while (like an hour) and I lost the internet connection again; when i try to surf the firefox hold on trying to resolve the URL and then told me that cant access the page; but even when I lost my internet connection (or the DNS servers cant resolve me the URLS) I can ping to the IP gateway and also can ping the hosts that have an IP on the same network. The problem can’t be on the DNS servers side because I test the internet connection in a PC connected to the same switch and with the same configuration but a different IP and everything is fine. Finally the last time it happens I execute on a terminal the command ‘route’ to see the routering tables and take like a minute to the OS prompt me the command result, but once it done the internet connection get work’s. Any ideas of what is happening??

I have like 2 weeks trying to fix it but i can’t find out what is wrong.

The NICs have a Static IP both on the same network.
And the default gateway is a router.
I set up the DNS server on the /etc/resolv.conf file.

Thank’s in advance.

J. Alex.

On Wed, 20 Aug 2008 02:26:03 GMT
jorgealexandro <jorgealexandro@no-mx.forums.opensuse.org> wrote:

>
> Hi everybody.
>
> I have installed OpenSuse on a HP Proliant Server with 2 NIC
> interfaces, and once I set both Network Card’s configurations (Static
> IPs), set up the list of DNS servers and the default gateway everything
> works perfectly,

> but sometimes when I shutdown or restart my server I
> lost my internet connection apparently with no reason,

> and also
> sometimes when I can access to the internet with the browser, just pass
> a while (like an hour) and I lost the internet connection again;

> when i
> try to surf the firefox hold on trying to resolve the URL and then told
> me that cant access the page;

> but even when I lost my internet
> connection (or the DNS servers cant resolve me the URLS) I can ping to
> the IP gateway and also can ping the hosts that have an IP on the same
> network.

> The problem can’t be on the DNS servers side because I test
> the internet connection in a PC connected to the same switch and with
> the same configuration but a different IP and everything is fine.

> Finally the last time it happens I execute on a terminal the command
> ‘route’ to see the routering tables and take like a minute to the OS
> prompt me the command result, but once it done the internet connection
> get work’s. Any ideas of what is happening??

> I have like 2 weeks trying to fix it but i can’t find out what is
> wrong.

> The NICs have a Static IP both on the same network.
> And the default gateway is a router.
> I set up the DNS server on the /etc/resolv.conf file.

> Thank’s in advance.
>
> J. Alex.

You have both nic’s on the same network?

Disable, or remove the settings for one of them. They are interfering with
each other.

Everything else is fine. Only use one network card per network subnet.

Loni


L R Nix
lornix@lornix.com

hi Loni, thanks for answering. You are completely right the problem is that I have both NICs in the same network.

I change the IP of the second NIC (eth1) to another network, like you told me, and it works like a charm, but I need to have both NICs on the same network because I install on the server a DHCP service that spread IPs to 24 hosts, all these IPs divides on the two cards, example:

NIC eth0: 192.168.131.162
NIC eth0:1 192.168.131.163 (also i have an alias on the eth0)
That NIC assign IPs from 192.168.131.136 - 192.168.131.147
(Allways assign the same IP to the same Host using the MAC address of Hosts NIC to do that)

NIC eth1: 192.168.131.164
That NIC assign IPs from 192.168.131.148 - 192.168.131.159
(Allways assign the same IP to the same Host using the MAC address of Hosts NIC to do that)

I know i don’t need both NICs to assign the IPs of all Hots, but the DHCP config help me to save and restore partitions using a massive hard disk clone software called Clonezilla.

So when I am restoring the 24 Hosts partitions I use both NICs to send the data partitions, 12 partitions for each card.

If anyone know how to set the both NICs to the Network Cards making sure to don’t have the Internet Connection Up & Down problem i will appreciate the help.

I’m not completely sure but maybe the solution is setting a default route on the routing table of the Suse server (because now I’m sure the problem is local, like the server is confused to reach the DNSs or something). I’m still searching the solution.

Thanks in advance.

J. Alex

On Wed, 20 Aug 2008 17:06:03 GMT
jorgealexandro <jorgealexandro@no-mx.forums.opensuse.org> wrote:

> told me, and it works like a charm, but I need to have both NICs on the
> same network because I install on the server a DHCP service that spread
> IPs to 24 hosts, all these IPs divides on the two cards, example:
>
> NIC eth0: 192.168.131.162
> NIC eth0:1 192.168.131.163 (also i have an alias on the eth0)
> That NIC assign IPs from 192.168.131.136 - 192.168.131.147
> (Allways assign the same IP to the same Host using the MAC address of
> Hosts NIC to do that)
>
> NIC eth1: 192.168.131.164
> That NIC assign IPs from 192.168.131.148 - 192.168.131.159
> (Allways assign the same IP to the same Host using the MAC address of
> Hosts NIC to do that)
>
> I know i don’t need both NICs to assign the IPs of all Hots, but the
> DHCP config help me to save and restore partitions using a massive hard
> disk clone software called Clonezilla.
>
> So when I am restoring the 24 Hosts partitions I use both NICs to send
> the data partitions, 12 partitions for each card.
>
> If anyone know how to set the both NICs to the Network Cards making
> sure to don’t have the Internet Connection Up & Down problem i will
> appreciate the help.
>
> I’m not completely sure but maybe the solution is setting a default
> route on the routing table of the Suse server (because now I’m sure the
> problem is local, like the server is confused to reach the DNSs or
> something). I’m still searching the solution.

you cannot have two nics on the same wire, in the same subnet.

I’m not sure why you’re trying to assign IP addresses using two nic’s
either… a single nic does it quite well, and unless I’m wrong, you cannot
base a DHCP client’s address off of the HOST’s nic. ALL DHCP requests are
based off of the CLIENTS MAC.

You CAN bind the DHCP server to a particular address, but why not use a
single nic and assign the addresses like this:

ifconfig eth0 192.168.131.162
ifconfig eth0:1 192.168.131.164

(read up on ethernet aliasing, the :x method is very useful)

Your (odd) dhcp configuration will work as you expect.

Your route will be set up properly as you expect

Everything would work just the same as you thought it would.

But you can’t have two (or more) nics on the same wire, same subnet and
expect things to behave as you expect.

Loni


L R Nix
lornix@lornix.com