How to Configure a VLAN100 via the Linux Prompt

How to Configure a VLAN100 via the Linux Prompt

Product Line:  VERDE

Steps to configure VLAN100 at the Linux prompt

You will have to create a ifcfg- file for your VLAN100.  You will
create a file named “/etc/sysconfig/network-scripts/ifcfg-vlan100 with the following information within this file.

You will enter at the root #]   vi /etc/sysconfig/network-scripts/ifcfg-vlan100    (hit enter)

Remember, when you are in ‘vi’ you will just type the letter ‘i’ for ‘insert mode’, so you can enter the lines below. 

To ‘save’ the file, click the ‘esc’ key, then enter ‘:’ and then enter ‘wq!’.  If you need to abandon the edit session, enter ‘q!’ instead.

 

VLAN=yes

VLAN_NAME_TYPE=VLAN_PLUS_VID_NO_PAD

DEVICE=vlan100

PHYSDEV=eth4

BOOTPROTO=static

ONBOOT=yes

TYPE=Ethernet

IPADDR=xx.xx.xx.xx       
<<<< =====  This is the IP address of the Verde server for the VLAN100 network

NETMASK=255.255.255.0

 

The “PHYSDEV” line is needed to tell the “ifup” script what device to attach the VLAN to. Once you've done this, “ifup vlan100” should bring up your vlan100 interface with the IP information specified above. “ONBOOT” says the interface should be brought up at boot.