Create one /etc/hostname.ixgbe# file for each VLAN that will be configured for each adapter on the server.
See VLAN Naming Format.
Include the IP address in the command you type. For example, if the IP address is 126.96.36.199, type:
# ifconfig ixgbe123002 plumb 188.8.131.52 up
Use the ifconfig -a command to see details about the VLAN devices.
This example shows the output of ifconfig -a on a system having VLAN devices ixgbe123002 and ixgbe224002:
ixgbe123002: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS>\ mtu 1500 index 4 inet 184.108.40.206 netmask ffffff00 broadcast 220.127.116.11 ether 0:13:20:f5:f6:dc ixgbe224002: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS>\ mtu 1500 index 5 inet 0.0.0.0 netmask ffffff00 ether 0:13:20:f5:f6:dc
Note - In the preceding examples, the second NIC output for ixgbe224002 was plumbed and enabled (that is, used the up option), but had no IP address. By default, the netmask and broadcast addresses are set by the system, which uses IP class C to make that setting 255.255.255.0. When the address is set, the ifconfig command by default does not display the broadcast address if the explicit IP address is not set.
Refer to the documentation that came with your switch for specific instructions for setting VLAN tagging and ports.