首页 > 代码库 > 网络配置vlan
网络配置vlan
1、
# This file describes the network interfaces available on your system# and how to activate them. For more information, see interfaces(5).# The loopback network interfaceauto loiface lo inet loopback# The primary network interfaceiface eth0 inet dhcp# This is an autoconfigured IPv6 interfaceiface eth0 inet6 autoauto eth0auto br0iface br0 inet staticaddress 192.168.7.64netmask 255.255.255.0gateway 192.168.7.254bridge_ports eth0 auto eth0.101 auto br101iface br101 inet manual bridge_ports eth0.101 bridge_stp off bridge_maxwait 0 bridge_fd 0
2、手动在后天把在portal生成的vnet12和vnet13加入这个网桥
brctl addif br101 vnet12brctl addif br101 vnet13
3、ok
网络配置vlan
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。