当前位置:网站首页>实验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
边栏推荐
猜你喜欢
[Dataset][VOC] Male and female dataset voc format 6188 sheets
aTrust项目的相关操作与分享
abaqus如何快速导入其他cae文件的assembly?
Revitalize rural circular economy and digital chain to link agricultural "ecological chain"
[数据集][VOC]眼睛佩戴数据集VOC格式6000张
推出 Space On-Premises (本地部署版) Beta 版!
数据库概论-MySQL的数据表的基本操作
看图就懂|衡量业务增长健康的销售指标如何选择
MySQL high-level statements (1)
zabbix auto-discovery and auto-registration
随机推荐
See the picture to understand | How to choose sales indicators to measure the health of business growth
[npm install error report collection] - npm ERR! code ENOTEMPTY npm ERR! syscall rmdir
Toolbox App 1.25 新功能一览 | 版本更新
rhce homework
aTrust项目的相关操作与分享
postgres 多个变量填充字符串,字串格式化
Not annotated parameter overrides @NonNullApi parameter
振兴农村循环经济 和数链串起农业“生态链”
optional
ASP.NET Core Web API 幂等性
punch day05
Connection reset by peer problem analysis
Leading the demand and justifying the HR value - the successful launch of the "Human Resource Leading Model HRLM"
Specified URL is not reachable,caused by :‘Read timed out
APP special test: traffic test
c语言指针运算
C# Coding Conventions Handbook
nodejs的安装和全局配置(超详细哦)
Nacos database configuration
Clapper that can interact with the audience in real time