您的位置:首页 > 理论基础 > 计算机网络

网络配置vlan

2014-09-28 01:32 141 查看
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 interface
auto lo
iface lo inet loopback

# The primary network interface

iface eth0 inet dhcp
# This is an autoconfigured IPv6 interface
iface eth0 inet6 auto
auto eth0
auto br0
iface br0 inet static
address 192.168.7.64
netmask 255.255.255.0
gateway 192.168.7.254
bridge_ports eth0

auto eth0.101

auto br101
iface br101 inet manual
bridge_ports    eth0.101
bridge_stp      off
bridge_maxwait  0
bridge_fd       0


  

2、手动在后天把在portal生成的vnet12和vnet13加入这个网桥

brctl addif br101 vnet12
brctl addif br101 vnet13


3、ok
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: