码迷,mamicode.com
首页 > 其他好文 > 详细

网络配置vlan

时间:2014-09-28 04:44:30      阅读:238      评论:0      收藏:0      [点我收藏+]

标签:des   style   blog   color   io   ar   for   sp   div   

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

网络配置vlan

标签:des   style   blog   color   io   ar   for   sp   div   

原文地址:http://www.cnblogs.com/juandx/p/3997560.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!