beautypg.com

To configure vlans in a linux environment – Sun Microsystems Gigabit Ethernet MMF/UTP Adapter User Manual

Page 119

background image

Appendix C

Installing the Sun PCI-Express Dual Gigabit Ethernet Device Driver on Linux Platforms

85

To Configure VLANs in a Linux Environment

1. Ensure that the e1000 module is loaded:

2. Plumb the Sun PCI-Express Dual Gigabit Ethernet interface:

where xxx.xxx.xx.xxx = the IP address of the interface.

3. Insert the VLAN module:

4. Add the VLAN instance (VID):

5. Configure the e1000 VLAN (eth2 in this example):

where xxx.xxx.xx.xxx = the IP address of the interface.

# modprobe e1000

# ifconfig eth2

xxx.xxx.xx.xxx up

# /sbin/modprobe 8021q

# /sbin/vconfig add eth2 5

# ifconfig eth2.5

xxx.xxx.xx.xxx up