LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-21-2003, 03:17 AM   #1
Zingaro2002
Member
 
Registered: Feb 2002
Location: Italy
Distribution: Fedora Core 1, Red Hat 8, Red Hat 9, Knoppix 3.3 (debian sarge)
Posts: 97

Rep: Reputation: 15
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?

Can someone help me, please?
 
Old 01-21-2003, 03:20 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
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.
 
Old 01-21-2003, 03:30 AM   #3
Zingaro2002
Member
 
Registered: Feb 2002
Location: Italy
Distribution: Fedora Core 1, Red Hat 8, Red Hat 9, Knoppix 3.3 (debian sarge)
Posts: 97

Original Poster
Rep: Reputation: 15
Well... they have both the same gateway address and the same subnet mask.
Is this wrong? (excuse me... I'm a newbie)
How should I correct this?

I need to have both working since this machine must handle 2 websites having 2 different static IP addresses.

Many thanks for your help!!!
 
Old 01-21-2003, 06:47 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
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.
 
Old 01-21-2003, 09:20 AM   #5
Zingaro2002
Member
 
Registered: Feb 2002
Location: Italy
Distribution: Fedora Core 1, Red Hat 8, Red Hat 9, Knoppix 3.3 (debian sarge)
Posts: 97

Original Poster
Rep: Reputation: 15
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!

Thank you very much for any other suggestion!
 
Old 01-21-2003, 12:00 PM   #6
Zingaro2002
Member
 
Registered: Feb 2002
Location: Italy
Distribution: Fedora Core 1, Red Hat 8, Red Hat 9, Knoppix 3.3 (debian sarge)
Posts: 97

Original Poster
Rep: Reputation: 15
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!

Thanks again.
 
Old 01-21-2003, 12:06 PM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
np

hey if it's worth capitals... affero me!
 
Old 01-21-2003, 12:10 PM   #8
Zingaro2002
Member
 
Registered: Feb 2002
Location: Italy
Distribution: Fedora Core 1, Red Hat 8, Red Hat 9, Knoppix 3.3 (debian sarge)
Posts: 97

Original Poster
Rep: Reputation: 15
i'll do it immediately.
Bye
 
Old 01-21-2003, 12:16 PM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
super!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Howto Assign Multiple Static Public IP Addresses under SBC's PPPoE Static Ip system o trekgraham Linux - Networking 8 04-17-2007 10:51 AM
Multiple static IP addresses fr0zen Linux From Scratch 5 11-23-2005 06:47 PM
adsl setup with eagle-usb, bridged ETH LLC, static IP crmandal Linux - Networking 1 07-08-2005 02:43 AM
Need help to route traffic properly with 2 eth cards mchan Linux - Networking 1 03-20-2005 07:55 PM
mixing static and dynamic ip addresses bobwall Linux - Networking 5 07-21-2004 07:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration