modules
//查看 lsmod//默认加载 vi /etc/modules//加载vlan模块(IEEE8021q) modprobe 8021q//移除8021q modprobe -r 8021q
vlan
vlan
// 检查vlan支持(有目录为支持)ls /proc/net/vlan/// 安装vlanaptitude install vlan// 添加协议IEEE802.1q支持(有此支持才能创建vlan网卡)modprobe 8021q// vi /etc/network/interface配置事例// ======auto p6p1.11iface p6p1.11 inet static address 172.17.2.55 netmask 255.255.255.0 vlan-raw-device p6p1.11 // **auto p6p1iface p6p1 inet static address 172.17.2.55 netmask 255.255.255.0// =======
ubuntu 网络操作
// 操作1/etc/init.d/networking restart// 操作2service networking resart stop: Job failed while stopping start: Job is already running: networking// 操作3ifconfig p6p1 downifconfig p6p1 up// 操作1、2都没能成功// 操作3单个关闭开启之后ifconfig查看信息没有改变// 只能重新启动炒作系统