Novell Home

VLANs According to IEEE 802.1Q with SLES9

Knowledgebase

Concern

You want to set up a VLAN in SUSE LINUX Enterprise Server 9 (SLES9) according to the standard IEEE 802.1Q.

Procedure

Create a configuration file for each VLAN:

 /etc/sysconfig/network/ifcfg-vlan?

Replace the question mark with the VLAN's number in increasing order, e.g. ifcfg-vlan1. Using ifcfg-vlan2 is not possible unless ifcfg-vlan1 has been previously configured. Insert the following options in the configuration file:

 ETHERDEVICE=eth0
 IPADDR=192.168.0.1
 NETMASK=255.255.255.0
 NETWORK=192.168.0.0
 BROADCAST=192.168.0.255
 STARTMODE=onboot

Adjust these options according to your needs. The option ETHERDEVICE must contain the Ethernet device used by the VLAN. Its value can be entered both in human-readable (eth0, eth1 etc.) and machine-readable form (e.g. eth-id-00:30:6e:4c:20:9c). Finally, execute rcnetwork restart. Your VLAN should now be available.

For additional information refer to the vconfig man pages and the section "Virtual LANs (802.1q)" in ifup man pages.


Disclaimer

The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.

Novell® Making IT Work As One

© 2009 Novell, Inc. All Rights Reserved.