当前位置:网站首页>hcip实验(15)
hcip实验(15)
2022-07-28 20:26:00 【未曾浅尝楼外的蒹葭】

一,创建VLAN
[sw1]vlan batch 2 to 6
[sw2]vlan batch 2 to 6
[sw3]vlan batch 2 to 6
二,通过需求修改接口
SW1:
[sw1]int g0/0/2
[sw1-GigabitEthernet0/0/2]port link-type access ---将接口设置为access
[sw1-GigabitEthernet0/0/2]port default vlan 2 ---将接口划入vlan 2
[sw1]int g0/0/3
[sw1-GigabitEthernet0/0/3]port link-type hybrid ---将接口设置为hybrid(默认)
[sw1-GigabitEthernet0/0/3]port hybrid pvid vlan 3 ---修改pvid为3
[sw1-GigabitEthernet0/0/3]port hybrid untagged vlan 3 4 5 6 ---允许不带标签的帧通过vlan 3 4 5 6
[sw1]int g0/0/4
[sw1-GigabitEthernet0/0/4]port link-type trunk ---将接口设置为trunk
[sw1-GigabitEthernet0/0/4]port trunk allow-pass vlan all ---放空所有valn
SW2;
[sw2-GigabitEthernet0/0/2]port link-type access
[sw2-GigabitEthernet0/0/2]port default vlan 2
[sw2-GigabitEthernet0/0/3]port hybrid pvid vlan 4
[sw2-GigabitEthernet0/0/3]port hybrid untagged vlan 3 4 5
[sw2-GigabitEthernet0/0/1]port link-type trunk
[sw2-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[sw2-GigabitEthernet0/0/4]port link-type trunk
[sw2-GigabitEthernet0/0/4]port trunk allow-pass vlan all
SW3:
[sw3]int g0/0/1
[sw3-GigabitEthernet0/0/1]port link-type trunk
[sw3-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[sw3-GigabitEthernet0/0/2]port hybrid pvid vlan 5
[sw3-GigabitEthernet0/0/2]port hybrid untagged vlan 3 4 5
[sw3-GigabitEthernet0/0/3]port hybrid pvid vlan 6
[sw3-GigabitEthernet0/0/3]port hybrid untagged vlan 3
SW1:
[sw1]int g0/0/1
[sw1-GigabitEthernet0/0/1]port link-type hybrid
[sw1-GigabitEthernet0/0/1]port hybrid untagged vlan 3 4 5 6
[sw1-GigabitEthernet0/0/1]port hybrid tagged vlan 2
三,创建单臂路由
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip address 192.168.2.1 24
[r1-GigabitEthernet0/0/0]int g0/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
分发IP地址
[r1]dhcp enable
[r1-ip-pool-aa]network 192.168.1.0 mask 24
[r1-ip-pool-aa]gateway-list 192.168.1.1
[r1]int g0/0/0.1
[r1-GigabitEthernet0/0/0.1]dhcp select global
[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]int g0/0/0
[r1-GigabitEthernet0/0/0]dhcp select global
边栏推荐
- Aimbetter insight into your database, DPM and APM solutions
- Oracle database objects
- 详解visual studio 2015在局域网中远程调试程序
- Principle of object. Prototype. ToString. Call()
- Soft test --- database (3) data operation
- LVS+KeepAlived高可用部署实战应用
- In Kingbase, the user is specified to search the schema by default, or the user cannot use the function under the public schema
- Make trouble fishing day by day
- msfvenom制作主控与被控端
- Openeuler embedded sig | distributed soft bus
猜你喜欢

微信小程序开发公司你懂得选择吗?

The person in charge of Tencent cloud database borrowed 100 million yuan to speculate in stocks? Insider: the amount is not true

JS DOM编程之平平无奇小练习

株洲市九方中学开展防溺水、消防安全教育培训活动

Research on the recognition method of move function information of scientific paper abstract based on paragraph Bert CRF

Using Baidu easydl to realize chef hat recognition of bright kitchen and stove

Practice and exploration of overseas site Seata of ant group

Openeuler embedded sig | distributed soft bus

From Web3 to web2.5, is it backward or another way?

Chinese patent keyword extraction based on LSTM and logistic regression
随机推荐
Oracle database objects
Implementation of sequence table
How to search images efficiently and accurately? Look at the lightweight visual pre training model
中国科学家首次用DNA构造卷积人工神经网络,可完成32类分子模式识别任务,或用于生物标志物信号分析和诊断
Soft test --- database (3) data operation
What is a prime factor? In number theory, a prime factor (prime factor or prime factor) refers to a prime number that can divide a given positive integer
[cloud native kubernetes] mapping external service under kubernetes cluster eendpoint
Divide and conquer, upload large files in pieces
Gateway technology of IOT technology stack
如何高效、精准地进行图片搜索?看看轻量化视觉预训练模型
Is it necessary to calibrate the fluke dtx-1800 test accuracy?
表单验证和级联下拉列表(多种实现)
Using Baidu easydl to realize chef hat recognition of bright kitchen and stove
[NLP] generate word cloud
What technology is needed for applet development
Byte side: can TCP and UDP use the same port?
kingbase中指定用户默认查找schema,或曰用户无法使用public schema下函数问题
Esp8266 Arduino programming example - SPIFs and data upload (Arduino IDE and platformio IDE)
PCB材料简单介绍
Data visualization news, different forms of news reports