Configuring VLAN Interfaces on SUSE Linux

VLAN is an abbreviation of Virtual Local Area Network. It allows the running of multiple logical (virtual) ethernets over one single physical ethernet. It logically splits the network into different broadcast domains so that packets are only switched between ports that are designated for the same VLAN. If you intend to use VLAN in your network setup, make sure that the package vlan is installed.

If the network connection of Linux is not dedicated to a specific logical LAN, you can set up access to one or more of these logical LANs. The VLAN interface configuration is supported via the normal ifup and ifdown scripts used for all other network interfaces, as well. The setup of VLAN devices is supported by YaST.

Figure 30.8. The YaST VLAN Configuration

The YaST VLAN Configuration

Run the YaST module Network Devices+Network Card, select Traditional Method with ifup and press Next. Follow this procedure to actually setup the VLAN device:

Procedure 30.1. Setting up VLAN Interfaces with YaST

  1. Press Add to create a new network interface.

  2. In Network Configuration, select Device Type Virtual Lan.

  3. Change the value of Configuration Name to the ID of your VLAN. Note that VLAN ID 1 is commonly used for managing purposes.

  4. Press Next.

  5. Select the interface that the VLAN device should connect to below Real Interface for VLAN.

  6. Select the desired method for assigning an IP address to the VLAN device.

  7. Press Next to finish the configuration.

For more information about VLAN, see http://www.candelatech.com/~greear/vlan.html and the package documentation found at /usr/share/doc/packages/vlan/.