My environment: RH FC8 x86_64
1. Make sure the 802.1q module is added to the kernel
modprobe 8021q
2. Add a subinterface. In this example 170 is the 802.1q VLAN ID.
vconfig add eth0 170
3. Create the NIC configuration file
/etc/sysconfig/network-scripts/ifcfg-eth0.170
DEVICE=eth0.170
BOOTPROTO=none
IPADDR=192.168.170.1
NETMASK=255.255.255.0
4. Restart the network service
/etc/init.d/network restart
No comments:
Post a Comment