Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
ok, I setup eth1 in linuxconf and gace it a different IP address from eth0. I then pinged eth1's IP address and it worked. I then pinged eth0's IP address and it too worked. Does this mean that they are both configured properly? If so, why don't I see eth1 loaded on boot up like I do eth0?
Distribution: Mandrake, Xandros, and Debian 3.0 (Woody) as a proxy
Posts: 103
Rep:
Quote:
Originally posted by jonfa ok, I setup eth1 in linuxconf and gace it a different IP address from eth0. I then pinged eth1's IP address and it worked. I then pinged eth0's IP address and it too worked. Does this mean that they are both configured properly? If so, why don't I see eth1 loaded on boot up like I do eth0?
Hmm... I configured them using Linuxconf the same way...
I tested mine with ping eth0 and ping eth1, you could also try:
ping eth0 eth1 (which tells ping to use eth1 as a 'gateway' for the ping to eth0) and
ping eth1 eth0 (which,would do the reverse of the other ping)
If those all check out, then you should be ok. The only other checks/pings to do would be to ping out to machines on the network(s) connected to those NICs.
HTH,
George
P.S. I can't get at my machine that has two NICs right now, but when I can I'll post what my sysconfig directory looks like...
I managed to get eth0 and eth1 to show on booy up. I can ping ok using both of them. However, if I say
"ping eth0 eth1" I get a "unknown host eth0" response.
Distribution: Mandrake, Xandros, and Debian 3.0 (Woody) as a proxy
Posts: 103
Rep:
Quote:
Originally posted by jonfa never mind my last post. Everything is ok.
i realized i neede the IP numbers and not the literal eth#'s.
thanks.
. Glad you got everything working... Yeah after reading back over my post I thought I should have mentioned that you wanted to use the IPs associated with the ethx instead of the device name... Oh well, maybe next time...
if i have a computer running linux with 2 ethernet cards, and a seperate IP for each, how does that work with web hosting? if i want to add a site, do i need to add an entry for both ifcfg-eth0:x and ifcfg-eth1:x in order for fail-over to occur if one of the ethernet cards were to die?
I dont know exactly how to do this in Linux, but i expect that the principle is the same as as with Unix. Basically i think you need some software that allows for the failover.. how this works is that you have an IP associated with each ethx as usual, but have a virtual floating IP address that will "float" across to eth2 from eth1 if eth1 was to break. What the software does is effectively monitor the NIC's and provides the ability to have the virtual IP. Your webserver, eg Apache will use the virtual IP and will think it is just like any other IP. There are a few different versions of this basic idea in Unix world.. i'm betting same/similar thing exists in Linux world... best to have a google...eg, i found this on my first search "IP multipathing on Linux"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.