首页 > 代码库 > 网络配置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