当前位置:网站首页>Hcip experiment (15)
Hcip experiment (15)
2022-07-28 22:14:00 【Never tasted the Jianjia outside the building】

One , establish VLAN
[sw1]vlan batch 2 to 6
[sw2]vlan batch 2 to 6
[sw3]vlan batch 2 to 6
Two , Modify the interface through requirements
SW1:
[sw1]int g0/0/2
[sw1-GigabitEthernet0/0/2]port link-type access --- Set the interface to access
[sw1-GigabitEthernet0/0/2]port default vlan 2 --- Put the interface into vlan 2
[sw1]int g0/0/3
[sw1-GigabitEthernet0/0/3]port link-type hybrid --- Set the interface to hybrid( Default )
[sw1-GigabitEthernet0/0/3]port hybrid pvid vlan 3 --- modify pvid by 3
[sw1-GigabitEthernet0/0/3]port hybrid untagged vlan 3 4 5 6 --- Allow frames without labels to pass through vlan 3 4 5 6
[sw1]int g0/0/4
[sw1-GigabitEthernet0/0/4]port link-type trunk --- Set the interface to trunk
[sw1-GigabitEthernet0/0/4]port trunk allow-pass vlan all --- Vent 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
3、 ... and , Create a one armed route
[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
distribution IP Address
[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
边栏推荐
- Basic introduction of Rockwell AB PLC rslogix digital quantity IO module
- HCIP(12)
- Intranet penetration learning (III) horizontal movement of domain - planning tasks
- How to search images efficiently and accurately? Look at the lightweight visual pre training model
- Using Baidu easydl to realize chef hat recognition of bright kitchen and stove
- 开放式耳机哪个品牌好、性价比最高的开放式耳机排名
- Save 70% of the video memory and increase the training speed by 2 times! Zheda & Ali proposed online convolution re parameterization orepa, and the code has been open source! (CVPR 2022 )
- System Analyst
- Apifox: satisfy all your fantasies about API
- Introduction to C language [detailed]
猜你喜欢

Basic introduction of Rockwell AB PLC rslogix digital quantity IO module

Leetcode · 581. shortest unordered continuous subarray · double pointer

No swagger, what do I use?

拥抱开源指南

msfvenom制作主控与被控端

Data visualization news, different forms of news reports

开放式耳机哪个品牌好、性价比最高的开放式耳机排名

HCIP(13)

Ordinary practice of JS DOM programming

Aimbetter insight into your database, DPM and APM solutions
随机推荐
DHCP和PPPoE协议以及抓包分析
What technology is needed for applet development
What is the difference between inline elements and block level elements? Semantic function
ESP8266-Arduino编程实例-定时器与中断
Data interpolation -- normalize data of different magnitude
In Kingbase, the user is specified to search the schema by default, or the user cannot use the function under the public schema
Chapter 7: drawing rotating cubes
Matlab | basic knowledge summary I
Msfvenom makes master and controlled terminals
HCIP(11)
From Web3 to web2.5, is it backward or another way?
如何高效、精准地进行图片搜索?看看轻量化视觉预训练模型
IFLYTEK written examination
从 Web3到Web2.5,是倒退还是另辟蹊径?
Record the fluent to solve the problem of a renderflex overflowed by 7.3 pixels on the bottom
第三方软件测试机构提供哪些测试服务?软件测试报告收费标准
Make trouble fishing day by day
Learn kotlin - extension function
管理区解耦架构见过吗?能帮客户搞定大难题的
阿里云CDN实践