8. Linux Configuration for Bonding Mode and Virtual LAN (VLAN)
NetXen, Inc.
Intelligent NIC Installation and Tuning Guide
45
downdelay
Specifies the time, in milliseconds, to wait before disabling a slave after a link failure
has been detected. This option is only valid for the miimon link monitor. The
downdelay value should be a multiple of the miimon value. If not, it will be rounded
down to the nearest multiple. The default value is 0.
lacp_rate
Option specifying the rate in which we'll ask our link partner to transmit LACPDU
packets in 802.3ad mode. Possible values are:
- slow or 0: Request partner to transmit LACPDUs every 30 seconds
- fast or 1: Request partner to transmit LACPDUs every 1 second
- The default is slow.
8.2
Configuring VLAN under Linux
The VLAN function can be configured as described below.
1
Ensure the 8021q.ko driver has been loaded.
Check by running “lsmod | grep 8021q”.
If the driver is not loaded, then run “modprobe 8021q”
2
The vconfig add command creates a vlan-device on eth0 and will result into a eth0.5
interface. Add VLAN ID 5 with the following command for eth0:
# vconfig add eth0 5
3
Use the ifconfig command below to assign IP address to VLAN interface:
# ifconfig eth0.5 192.168.1.100 netmask 255.255.255.0 broadcast 192.168.1.255 up
4
Use the following command to get detailed information about VLAN interface:
# cat /proc/net/vlan/eth0.5
Repeat steps 2 and 3 if more than one VLAN is required.
To delete a VLAN interface use the following commands:
# ifconfig eth0.5 down
# vconfig rem eth0.5