Help!

Combining two physical Ethernet ports as part of one logical

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Networking RSS
Next:  Seeking fstype  
Author Message
wi-sec
External


Since: Aug 05, 2009
Posts: 2



PostPosted: Wed Aug 05, 2009 3:08 am    Post subject: Combining two physical Ethernet ports as part of one logical
Archived from groups: comp>os>linux>networking (more info?)

Hi All,

This is regarding combining two physical eth ports into one logical
interface.

I have a linux system with 2 ethernet cards each having 2 eth ports.
PCI Card1 - eth0, eth1 - controlled by driver1
PCI Card2 - eth2, eth3 - controlled by driver2 (different klm)

I want to achieve ethernet port redundancy by treating 1 port of each
card as part of a logical interface.
e.g.
eth0, eth2 should be part of logical interface0
eth1, eth3 should be part of logical interface1

Ports in a logical interface shall be similar to ports in an ethernet
hub (e.g. seeing same traffic).
End objective is that even if one of the ports in a logical interface
goes down, communication to upper network stack layers is not
interrupted. e.g. if eth0 port cable is removed, all applications
shall continue to work since other port eth2 in the logical drive is
still up.
Each port in a logical interface should act as a hot standby for the
other port.

Note that network settings (e.g. IP addr, mask, gw) should be applied
to logical i/f rather than a physical port.

I am sure that linux supports this kind of port aggregation, but can't
find out exactly what is called and how to achieve this.

Please help if you have any pointers.

Thanks,
Manish
Back to top
wi-sec
External


Since: Aug 05, 2009
Posts: 2



PostPosted: Wed Aug 05, 2009 3:34 am    Post subject: Re: Combining two physical Ethernet ports as part of one logical [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Port bonding

http://sourceforge.net/projects/bonding/
http://wiki.centos.org/TipsAndTricks/BondingInterfaces
Back to top
Klaus Zerwes
External


Since: Nov 07, 2006
Posts: 3



PostPosted: Thu Aug 06, 2009 6:10 am    Post subject: Re: Combining two physical Ethernet ports as part of one logical [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

wi-sec wrote:
> Hi All,
>
> This is regarding combining two physical eth ports into one logical
> interface.
>
> I have a linux system with 2 ethernet cards each having 2 eth ports.
> PCI Card1 - eth0, eth1 - controlled by driver1
> PCI Card2 - eth2, eth3 - controlled by driver2 (different klm)
>
> I want to achieve ethernet port redundancy by treating 1 port of each
> card as part of a logical interface.
> e.g.
> eth0, eth2 should be part of logical interface0
> eth1, eth3 should be part of logical interface1

keyword: bonding

modprobe bonding
ifconfig bond0 192.168.0.1 netmask 255.255.0.0
ifenslave bond0 eth0 eth1

the bonding module knows some paramneters (you can use bonding for load
balancing or as fail over) - details may be found in the kernel sources.


>
> Thanks,
> Manish

Klaus


--
Klaus Zerwes
http://www.zero-sys.net
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Networking All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can 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