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.
Distribution: Fedora Core 1, Red Hat 8, Red Hat 9, Knoppix 3.3 (debian sarge)
Posts: 97
Rep:
2 static IP addresses on 2 eth cards
Hi everybody.
I have a Linux Red Hat 7.3 server box with 2 eth cards.
I'd like to assign a static IP address to the first one and another static IP address to the second one.
I've tried using Control Panel->Network configuration, but when I activate both cards no-one works (I've tried to ping from another machine but I receive No Reply).
It works fine if I activate only the first eth card alone.
Is there any configuration file I should manipulate?
How?
it should work fine if you are using correct subnets and so forth, if you use overlapping subnets though the first one will be stopped delibertaley, as it would not make sense to have them both working.
you're using the same gateway for two NIC's on the same system? what is the benefit in that? are you thinking that two NIC's will make your connection twice as fast or something? you can not have two NIC's connected to the same subnet. Ethernet is a bus protocol and so you are just completely breaking the design principles. most people break this by thinking they can take two NIC's and join two other computers directly together with this, by you seem to be saying you're joining them to the very same hub or such like.
to have two cards working they will need to be on compltely different subnets.
Distribution: Fedora Core 1, Red Hat 8, Red Hat 9, Knoppix 3.3 (debian sarge)
Posts: 97
Original Poster
Rep:
Thanks for your help, acid_kewpie, but... how have I to change those subnets (Red Hat 7.3)?
Keep in mind that the two eth cards are in the same computer and that I'm almost newbie with these issues!
Distribution: Fedora Core 1, Red Hat 8, Red Hat 9, Knoppix 3.3 (debian sarge)
Posts: 97
Original Poster
Rep:
THANK YOU acid_kewpie!!!
I solved my problem: i set 255.255.255.240 as subnet mask for the first eth card (eth0) and 255.255.255.245 as subnet mask for the second eth card (eth1) and... IT WORKED PERFECTLY!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.