cancel
Showing results for 
Search instead for 
Did you mean: 

network error

Adithyan
Frequent Advisor

network error

Hi Friends,

There is a query.

I have 2 network interface, eth0 and eth1, Supposed if the network connectivity from the switch failed to eth0. In this state if I issue a service network restart command, Will it bring up both the interfaces with out error?
Keen to learn HP UX
6 REPLIES
Van den Broeck Tijl
Valued Contributor

Re: network error

Yes in Static mode.

Regardless of the physical connection the software side will be set up on service restart. You can try that by yanking your network cable, restarting networking & ping yourself (ip, not on localhost).

However, using DHCP will probably cause the service to restart rather slowly (initial waiting on DHCP ACK) on eth0, the dhcpcd process will then be backgrounded and networking will come up further on eth1.
So eth0 will be stuck without IP until connectivity is restored.

Solution for avoiding all this is the use of "bonding".
See more about bonding here http://docs.hp.com/en/B9903-90050/ch05s05.html and here http://www.linuxhorizon.ro/bonding.html
Ivan Ferreira
Honored Contributor

Re: network error

Why you need to do a network restart if that was a switch problem? You should not need to do that.

You could also do just ifup eth0 to avoid shutting down eth1.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Van den Broeck Tijl
Valued Contributor

Re: network error

@Ivan: It's a theoretical question: "if I issue a service network restart command, Will it bring up both the interfaces with out error"

In the real world I agree with you, you wouldn't do that at all :-)
Stuart Browne
Honored Contributor

Re: network error

If you do a 'service network restart', it will drop both eth0 and eth1, break basically all network services that are currently running that's bound to either interface (sshd, httpd, nfs, etc. etc.), and then bring them up again.

Using 'network restart' is the sledge-hammer. It's inadvisable to do it. *EVER*. on a live system.

As for whether it'll bring the interfaces up without error, that depends on the error, the switch fault, and far too many other variables to say conclusivly.

Assuming it's just the switch going wonky and a 'replug' of the cable would fix it (or shutdown of interface and bring back up), then yeah.. Sure..

If it's anything more complicated than that, then.. No, probably not.
One long-haired git at your service...
Don Vanco - Linux Ninja
Regular Advisor

Re: network error

man ip

You can enact on a single interface without the shotgun to the face of a "service" command
skt_skt
Honored Contributor

Re: network error

Post the result when you get a chance to test with ip command