Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Setup 2 ethernet interfaces with different IP addresses
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ursusca
Apprentice
Apprentice


Joined: 10 Sep 2008
Posts: 284
Location: Toronto ON, CANADA

PostPosted: Thu Dec 25, 2008 7:10 pm    Post subject: Setup 2 ethernet interfaces with different IP addresses Reply with quote

Hi all!

I have 2 ethernet cards and I want to configure it with different IP addresses in the same subnet of a class C.

How can I do it correctly?
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Thu Dec 25, 2008 7:57 pm    Post subject: Reply with quote

Hi, I think that you need to configure it inside /etc/conf.d/net
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54850
Location: 56N 3W

PostPosted: Thu Dec 25, 2008 8:02 pm    Post subject: Reply with quote

ursusca,

The short answer is that its not useful to do that because only the first interface will be used.

What problem are you trying to solve?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
ursusca
Apprentice
Apprentice


Joined: 10 Sep 2008
Posts: 284
Location: Toronto ON, CANADA

PostPosted: Thu Dec 25, 2008 10:01 pm    Post subject: Reply with quote

NeddySeagoon wrote:
ursusca,

The short answer is that its not useful to do that because only the first interface will be used.

What problem are you trying to solve?


Hi NeddySeagoon, honestly I am trying to configure 2 ethernet interfaces with different IP addresses in the same subnet of a class C on my Red Hat 4 AS server. I want to use one interface for Oracle listener and other interface for NFS and copy backups but I can't understand how it's working because when I down one of interfaces I can ping both.
It's interesting for me how it's working on my favorite Gentoo.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54850
Location: 56N 3W

PostPosted: Fri Dec 26, 2008 12:25 am    Post subject: Reply with quote

ursusca,

Look in your the output of route to see whats happening.

Routing rules are applied in the order they appear in the routing table.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
ursusca
Apprentice
Apprentice


Joined: 10 Sep 2008
Posts: 284
Location: Toronto ON, CANADA

PostPosted: Fri Dec 26, 2008 7:52 am    Post subject: Reply with quote

NeddySeagoon wrote:
ursusca,

Look in your the output of route to see whats happening.

Routing rules are applied in the order they appear in the routing table.


Thank`s NeddySeagoon, I`ve understood.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum