当前位置:网站首页>实验8 VLAN综合实验
实验8 VLAN综合实验
2022-08-02 06:11:00 【关伯兰,】
1.创建VLAN
[sw1]vlan batch 2 to 6
[sw2]vlan batch 2 to 6
[sw3]vlan batch 2 to 6
2.划分接口
配置干道
sw1
[sw1]int g 0/0/1
[sw1-GigabitEthernet0/0/1]port link-type access
[sw1-GigabitEthernet0/0/1]port default vlan 2
[sw1]int g 0/0/2
[sw1-GigabitEthernet0/0/2]port link-type hybrid
[sw1-GigabitEthernet0/0/2]port hybrid pvid vlan 3
[sw1-GigabitEthernet0/0/2]port hybrid untagged vlan 3 4 5 6
[sw1]int g 0/0/3
[sw1-GigabitEthernet0/0/3]port link-type trunk
[sw1-GigabitEthernet0/0/3]port trunk allow-pass vlan all
[sw1]int g 0/0/4
[sw1-GigabitEthernet0/0/4]port link-type hybrid
[sw1-GigabitEthernet0/0/4]port hybrid tagged vlan 2
[sw1-GigabitEthernet0/0/4]port hybrid untagged vlan 3 4 5 6
sw2
[sw2]int g 0/0/1
[sw2-GigabitEthernet0/0/1]port link-type access
[sw2-GigabitEthernet0/0/1]port default vlan 2
[sw2]int g 0/0/2
[sw2-GigabitEthernet0/0/2]port link-type hybrid
[sw2-GigabitEthernet0/0/2]port hybrid pvid vlan 4
[sw2-port-group-hybrid]port hybrid untagged vlan 3 4 5
[sw2]int g 0/0/3
[sw2-GigabitEthernet0/0/3]port link-type trunk
[sw2-GigabitEthernet0/0/3]port trunk allow-pass vlan all
[sw2]int g 0/0/4
[sw2-GigabitEthernet0/0/4]port link-type trunk
[sw2-GigabitEthernet0/0/4]port trunk allow-pass vlan all
sw3
[sw3]int g 0/0/1
[sw3-GigabitEthernet0/0/1]port link-type hybrid
[sw3-GigabitEthernet0/0/1]port hybrid pvid vlan 5
[sw3-GigabitEthernet0/0/1]port hybrid untagged vlan 3 4 5
[sw3]int g 0/0/2
[sw3-GigabitEthernet0/0/2]port link-type hybrid
[sw3-GigabitEthernet0/0/2]port hybrid pvid vlan 6
[sw3-GigabitEthernet0/0/2]port hybrid untagged vlan 3 6
[sw3]int g 0/0/3
[sw3-GigabitEthernet0/0/3]port link-type trunk
[sw3-GigabitEthernet0/0/3]port trunk allow-pass vlan all
3.VLAN间路由
[r1]int g 0/0/0.1
[r1-GigabitEthernet0/0/0.1]ip address 192.168.1.1 24
[r1-GigabitEthernet0/0/0.1]dot1q termination vid 2 [r1-GigabitEthernet0/0/0.1]arp broadcast enable
[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]ip address 192.168.2.1 24
[r1]dhcp enable
[r1]ip pool aa
[r1-ip-pool-aa]network 192.168.1.0 mask 24
[r1-ip-pool-aa]gateway-list 192.168.1.1
[r1-ip-pool-aa]dns-list 114.114.114.114
[r1]ip pool bb
[r1-ip-pool-bb]network 192.168.2.0 mask 24
[r1-ip-pool-bb]gateway-list 192.168.2.1
[r1-ip-pool-bb]dns-list 114.114.114.114
[r1]int g 0/0/0.1
[r1-GigabitEthernet0/0/0.1]dhcp select global
[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]dhcp select global
边栏推荐
- Nacos installation detailed process
- August 2022 plan, focusing on ue4 video tutorials
- Nodejs installation and global configuration (super detailed)
- Node installation and configuration (node-v12.20.2-x64 ) and introduction to node version switching
- aTrust项目的相关操作与分享
- MySQL经典50道练习题及全网最详细解析
- optional
- Revitalize rural circular economy and digital chain to link agricultural "ecological chain"
- C# FileInfo class
- love
猜你喜欢
optional
HCIP day one
MySQL - 多表查询与案例详解
(笔记整理未完成)【图论】图的遍历
数据库概论-MySQL的数据表的基本操作
CAT1 4G+Ethernet development board Tencent cloud mobile phone WeChat applet display temperature and delivery control
Detailed explanation of 9 common reasons for MySQL index failure
Specified URL is not reachable,caused by :‘Read timed out
MySQL (3)
APP专项测试:流量测试
随机推荐
PMP新考纲考试内容介绍
Ue after video tutorial first
有点奇怪!访问目的网址,主机能容器却不行
APP special test: traffic test
Vscode连接远程服务器出现‘Acquiring lock on/home/~’问题
Technology empowers Lhasa's "lungs", Huawei helps Lalu Wetland Smart Management to protect lucid waters and lush mountains
About the local server problem after ue4.27 pixel streaming package
Py's mlxtend: a detailed guide to the introduction, installation, and usage of the mlxtend library
推出 Space On-Premises (本地部署版) Beta 版!
Nodejs installation tutorial
PMP新考纲通关秘籍,告别抓瞎
punch day05
(笔记整理未完成)【图论】图的遍历
项目开发规范
.NET静态代码织入——肉夹馍(Rougamo) 发布1.1.0
MySQL Index Common Interview Questions (2022 Edition)
MySQL高级SQL语句
Difference between npm and yarn
Wuhan 2022 organizing of the high-performance computing added new ecological development of high-performance computing
Expert Insights | 3 ways to seize innovation opportunities in a downturn