Help to use twin 1 gig lan ports

Robin Mordasiewicz robin at bullseye.tv
Tue Sep 27 21:07:00 UTC 2005


On Tue, 27 Sep 2005, Jim Christiansen wrote:

> I've just purchased a server board with two 1 gig lan ports.  I would like to 
> set one up for inbound traffic and  the other for outbound traffic.  Can this 
> be done??
>
> If this isn't possible is there another way to use these two ports to enhance 
> network through-put??

Your switch must support trunking of some sort. Most Cisco, or SMC

you want to bond the interfaces.
The files you need to edit are
/etc/sysconfig/network-scripts/ifcfg-bond0
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/network-scripts/ifcfg-eth1
/etc/modprobe.conf

[root at smtcorav02 ~ ]# cat /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
ONBOOT=yes
IPADDR=10.10.4.247
BROADCAST=10.10.4.255
NETMASK=255.255.255.0
NETWORK=10.10.4.0
GATEWAY=10.10.4.254
BOOTPROTO=none
USERCTL=no
BONDING_SLAVE0="eth0"
BONDING_SLAVE1="eth1"
[root at smtcorav02 ~ ]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
ONBOOT=no
TYPE=Ethernet
MASTER=bond0
SLAVE=yes
USERCTL=no
[root at smtcorav02 ~ ]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
BOOTPROTO=none
ONBOOT=no
TYPE=Ethernet
MASTER=bond0
SLAVE=yes
USERCTL=no
[root at smtcorav02 ~ ]# cat /etc/modprobe.conf
alias bond0 bonding
options bonding miimon=100 mode=balance-xor
alias net-pf-10 off
alias eth0 e1000
alias eth1 e1000
alias scsi_hostadapter megaraid_mbox
alias usb-controller ehci-hcd
alias usb-controller1 uhci-hcd




More information about the fedora-list mailing list