博客首页 注册 建议与交流 排行榜 加入友情链接
推荐 投诉 搜索: 帮助

系统※网络技术实验室

System & Databses & Networking & Security & Services
evegl.cublog.cn
Linux Vlan Setting

linux box作为trunk透明。也就是说trunk可以透过linux box


VLAN2---------------|           |
VLAN3---------------| switch|--------| linux box|--------|switch|--------VLAN3
                                                                                               |___VLAN2


//建vlan虚拟接口
vconfig add eth0 2
vconfig add eth0 3
vconfig add eth1 2
vconfig add eth1 3

//启用端口
ifconfig eth0.2 up
ifconfig eth0.3 up
ifconfig eth1.2 up
ifconfig eth1.3 up

//建桥
brctl addbr bridge2
brctl addbr bridge3

//加入端口
brctl addif bridge2 eth0.2
brctl addif bridge2 eth1.2
brctl addif bridge3 eth0.3
brctl addif bridge3 eth1.3

发表于: 2007-06-21,修改于: 2007-06-21 17:56,已浏览622次,有评论2条 推荐 投诉
网友: 本站网友 时间:2007-12-27 08:11:17 IP地址:60.208.192.★
如果box放在核心交换机与楼层交换机之间呢??

网友: 本站网友 时间:2008-04-06 19:30:06 IP地址:123.116.64.★
那还用box做什么呢?


给我留言
版权所有 ChinaUnix.net 页面生成时间:0.04406