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??
Thanks, Jim
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??
If you have a managed ethernet-switch you can bond or trunk the two ports together.
Thanks, Jim
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@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@smtcorav02 ~ ]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=none ONBOOT=no TYPE=Ethernet MASTER=bond0 SLAVE=yes USERCTL=no [root@smtcorav02 ~ ]# cat /etc/sysconfig/network-scripts/ifcfg-eth1 DEVICE=eth1 BOOTPROTO=none ONBOOT=no TYPE=Ethernet MASTER=bond0 SLAVE=yes USERCTL=no [root@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
This one time, at band camp, Robin Mordasiewicz wrote:
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
Its not trunking support that you need. Trunking is used for the spanning of VLAN information. Natively cisco switches will support the setup as described below. I have various setups using the bonding module, albeit that most of them are setup with mode=1 in modprobe.conf, which is the configuration for fail over rather than increased bandwidth. I also use the 8021q module with bonding to join multiple vlans
With the cisco switches (IOS and CATOS) it works whether the switchports are in access or trunk mode
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@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@smtcorav02 ~ ]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=none ONBOOT=no TYPE=Ethernet MASTER=bond0 SLAVE=yes USERCTL=no [root@smtcorav02 ~ ]# cat /etc/sysconfig/network-scripts/ifcfg-eth1 DEVICE=eth1 BOOTPROTO=none ONBOOT=no TYPE=Ethernet MASTER=bond0 SLAVE=yes USERCTL=no [root@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
Jim Christiansen said:
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??
Gigabit switches (and switches by nature actually) are full duplex, meaning they can send and receive at the same time, so there would be no benefit to doing RX on one NIC and TX on the other. What you want is bonding so that sending and receiving are split between the NICs:
http://www.linuxquestions.org/questions/showthread.php?s=&postid=1867215...
Jay