当前位置:网站首页>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
边栏推荐
- display 各值的区别
- [hero planet July training leetcode problem solving daily] dynamic planning on the 28th
- Esp8266 Arduino programming example - deep sleep and wake up
- HCIP第七次实验
- 局域网添加DNS服务器进行域名解析
- The difference between get and post
- What testing services do third-party software testing institutions provide? Charging standard of software test report
- How to establish a decentralized community in Web3
- ESP8266-Arduino编程实例-定时器与中断
- C语言编程规范学习笔记和总结
猜你喜欢
For the first time, Chinese scientists used DNA to construct convolutional artificial neural network, which can complete 32 types of molecular pattern recognition tasks, or be used for biomarker signa
Which brand is the best and most cost-effective open headset
什么是时间复杂度
HCIP(12)
Part 8: creating camera classes
Apifox:满足你对 Api 的所有幻想
C语言编程规范学习笔记和总结
记录Flutter解决A RenderFlex overflowed by 7.3 pixels on the bottom溢出问题
Apifox: satisfy all your fantasies about API
kali里的powersploit、evasion、weevely等工具的杂项记录
随机推荐
学习 Kotlin - 扩展函数
拥抱开源指南
The difference between get and post
乌官员:乌克兰一半农产品经多瑙河港口出口
39. Combined sum
管理区解耦架构见过吗?能帮客户搞定大难题的
深度学习必备:对数据集的拆分、根据拆分图片拆分labels、对全部标注标签进行区间检查
hcip实验(12)
get和post的区别
Esp8266 Arduino programming example - SPIFs and data upload (Arduino IDE and platformio IDE)
ESP8266-Arduino编程实例-SPIFFS及数据上传(Arduino IDE和PlatformIO IDE)
开放式耳机哪个品牌好、性价比最高的开放式耳机排名
DHCP and PPPoE protocols and packet capture analysis
Typeof principle
【NLP】生成词云
Learning notes and summary of C language programming specification
Bugku, Web: all filtered
什么是时间复杂度
90. 子集 II
Desai wisdom number - line chart (stacking area chart): ranking of deposits of different occupational groups in the proportion of monthly income in 2022