当前位置:网站首页>实验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
边栏推荐
- ASP.NET Core Web API 幂等性
- HCIP day 3 experiment
- Revitalize rural circular economy and digital chain to link agricultural "ecological chain"
- mysql索引失效的常见9种原因详解
- Summer Summary (3)
- MySQL Advanced SQL Statements (2)
- Technology empowers Lhasa's "lungs", Huawei helps Lalu Wetland Smart Management to protect lucid waters and lush mountains
- MySql - there is no insert, there is update or ignored
- Dataset:机器学习中常用数据集下载链接集合之详细攻略
- Ant three sides: MQ message loss, duplication, backlog problem, what are the solutions?
猜你喜欢
[Dataset][VOC] Eyewear dataset 6000 in VOC format
专家见解|经济低迷期把握创新机会的 3 大方法
HCIP day one
HCIP 第三天实验
Wuhan 2022 organizing of the high-performance computing added new ecological development of high-performance computing
Clapper that can interact with the audience in real time
MySQL Advanced SQL Statements
[Dataset][VOC] Male and female dataset voc format 6188 sheets
Node installation and configuration (node-v12.20.2-x64 ) and introduction to node version switching
awk语法-01-基础语法(命令、选项、内部变量)
随机推荐
返回文件名问题
nacos源码启动找不到istio包
Dataset: A detailed guide to the download link collection of commonly used datasets in machine learning
Pagoda+FastAdmin 404 Not Found
Ant three sides: MQ message loss, duplication, backlog problem, what are the solutions?
MySQL经典50道练习题及全网最详细解析
Summer Summary (3)
Nodejs installation tutorial
Clapper that can interact with the audience in real time
Servlet
Resolving C# non-static field, method or property "islandnum.Program.getIslandCount(int[][], int, int)" requires an object reference
Detailed explanation of 9 common reasons for MySQL index failure
Node installation and configuration (node-v12.20.2-x64 ) and introduction to node version switching
zabbix auto-discovery and auto-registration
Specified URL is not reachable,caused by :‘Read timed out
HCIP day 3 experiment
MySQL Advanced - MVCC (ultra-detailed finishing)
MySQL 23 classic interviews hang the interviewer
CAT1 4G+Ethernet development board Tencent cloud mobile phone WeChat applet display temperature and delivery control
Leading the demand and justifying the HR value - the successful launch of the "Human Resource Leading Model HRLM"