2022年博达交换机VLAN隔离配置[S] .pdf
《2022年博达交换机VLAN隔离配置[S] .pdf》由会员分享,可在线阅读,更多相关《2022年博达交换机VLAN隔离配置[S] .pdf(14页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、博达交换机VLAN 隔离配置 S3224 Switch_config#show run Building configuration. Current configuration: ! service timestamps log date service timestamps debug date ! ! interface FastEthernet0/1 / 端口 1 switchport mode trunk / 设定成 trunk 模式,允许端口属于多个vlan switchport pvid 2 / 数据入端口时加上vlan1 的 tag switchport trunk vlan-
2、allowed 1,24 /端口可以属于vlan1 和 24 switchport trunk vlan-untagged 1,24 / 数据出端口时去除tag1 和 tag24 ! interface FastEthernet0/2 / 端口 2 switchport mode trunk / 设定成 trunk 模式 switchport pvid 2 / 数据入端口时加上vlan2 的 tag switchport trunk vlan-allowed 2,24 /端口同时可属于vlan2 和 24 switchport trunk vlan-untagged 2,24 / 数据出端口时
3、去除tag2 和 tag24 ! interface FastEthernet0/3 / 同上 switchport mode trunk switchport pvid 3 switchport trunk vlan-allowed 3,24 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 1 页,共 14 页 - - - - - - - - - switchport trunk vlan-untagged 3,24 ! interface FastEthernet0/4 swit
4、chport mode trunk switchport pvid 4 switchport trunk vlan-allowed 4,24 switchport trunk vlan-untagged 4,24 ! interface FastEthernet0/5 switchport mode trunk switchport pvid 5 switchport trunk vlan-allowed 5,24 switchport trunk vlan-untagged 5,24 ! interface FastEthernet0/6 switchport mode trunk swit
5、chport pvid 6 switchport trunk vlan-allowed 6,24 switchport trunk vlan-untagged 6,24 ! interface FastEthernet0/7 switchport mode trunk switchport pvid 7 switchport trunk vlan-allowed 7,24 switchport trunk vlan-untagged 7,24 ! 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - -
6、- - 第 2 页,共 14 页 - - - - - - - - - interface FastEthernet0/8 switchport mode trunk switchport pvid 8 switchport trunk vlan-allowed 8,24 switchport trunk vlan-untagged 8,24 ! interface FastEthernet0/9 switchport mode trunk switchport pvid 9 switchport trunk vlan-allowed 9,24 switchport trunk vlan-unt
7、agged 9,24 ! interface FastEthernet0/10 switchport mode trunk switchport pvid 10 switchport trunk vlan-allowed 10,24 switchport trunk vlan-untagged 10,24 ! interface FastEthernet0/11 switchport mode trunk switchport pvid 11 switchport trunk vlan-allowed 11,24 switchport trunk vlan-untagged 11,24 ! i
8、nterface FastEthernet0/12 switchport mode trunk 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 3 页,共 14 页 - - - - - - - - - switchport pvid 12 switchport trunk vlan-allowed 12,24 switchport trunk vlan-untagged 12,24 ! interface FastEthernet0/13 switchport mode trunk
9、switchport pvid 13 switchport trunk vlan-allowed 13,24 switchport trunk vlan-untagged 13,24 ! interface FastEthernet0/14 switchport mode trunk switchport pvid 14 switchport trunk vlan-allowed 14,24 switchport trunk vlan-untagged 14,24 ! interface FastEthernet0/15 switchport mode trunk switchport pvi
10、d 15 switchport trunk vlan-allowed 15,24 switchport trunk vlan-untagged 15,24 ! interface FastEthernet0/16 switchport mode trunk switchport pvid 16 switchport trunk vlan-allowed 16,24 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 4 页,共 14 页 - - - - - - - - - switchp
11、ort trunk vlan-untagged 16,24 ! interface FastEthernet0/17 switchport mode trunk switchport pvid 17 switchport trunk vlan-allowed 17,24 switchport trunk vlan-untagged 17,24 ! interface FastEthernet0/18 switchport mode trunk switchport pvid 18 switchport trunk vlan-allowed 18,24 switchport trunk vlan
12、-untagged 18,24 ! interface FastEthernet0/19 switchport mode trunk switchport pvid 19 switchport trunk vlan-allowed 19,24 switchport trunk vlan-untagged 19,24 ! interface FastEthernet0/20 switchport mode trunk switchport pvid 20 switchport trunk vlan-allowed 20,24 switchport trunk vlan-untagged 20,2
13、4 ! 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 5 页,共 14 页 - - - - - - - - - interface FastEthernet0/21 switchport mode trunk switchport pvid 21 switchport trunk vlan-allowed 21,24 switchport trunk vlan-untagged 21,24 ! interface FastEthernet0/22 switchport mode t
14、runk switchport pvid 22 switchport trunk vlan-allowed 22,24 switchport trunk vlan-untagged 22,24 ! interface FastEthernet0/23 switchport mode trunk switchport pvid 23 switchport trunk vlan-allowed 23-24 switchport trunk vlan-untagged 23-24 ! interface FastEthernet0/24 / 端口 24,本例中作为上行口 switchport mod
15、e trunk / 设为 trunk 模式 switchport pvid 24 / 数据入端口时加上vlan24 的 tag switchport trunk vlan-untagged all / 数据出端口时去除所有tag(tag1tag24)! / 注意 trunk 口时默认属于所有tag 的!vlan 1-24 / 建立 124 个 vlan,默认情况下只有vlan1,其他需要增加,且这个操作时第一步要做的!! 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 6 页,共 1
16、4 页 - - - - - - - - - !说明,本例子完成之后,interface f0/1f/23 分别属于不同的vlan,相互之间是不能互通的(不考虑使用三层路由转发的情况),但此时这 23 个端口都能与上行口interface f0/24 口通讯!此时的 vlan 分配情况为:Switch_config#show vlan VLAN Status Name Ports - - - - 1 Static Default F0/1, F0/24 2 Static VLAN0002 F0/2, F0/24 3 Static VLAN0003 F0/3, F0/24 4 Static VLA
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 2022年博达交换机VLAN隔离配置S 2022 博达 交换机 VLAN 隔离 配置
限制150内