当前位置:网站首页>VLAN experiment
VLAN experiment
2022-07-02 10:14:00 【wuqing_ five thousand four hundred and fifty】


Their thinking :
1. establish vlan2, take pc1 and pc3 Transfer in to vlan 2 in , And set the interface to access
2. Add a sub interface on the router to put vlan 2, Easy to give vlan 2 The distribution of IP Address , Switch can be 1 Medium 0/0/4 The interface is set to trunk, Allow all to pass
3. stay sw1 and sw2 Connected online settings vlan 2 Can pass , Need to label
4. modify pc4/5 Of PVID, Transfer in separately vlan 4 and vlan 5 in , At the switch 2/3 Set between vlan 4 Label your , At the switch 1/2/3 Set between vlan 5 Do not label , Switch to pc4/5 The interface of needs to be set without labels , Switch to pc6 At the interface of 4 and 5 Label when entering
To configure :
[sw1]int g0/0/1
[sw1-GigabitEthernet0/0/1]port link-
[sw1-GigabitEthernet0/0/1]port link-t
[sw1-GigabitEthernet0/0/1]port link-type a
[sw1-GigabitEthernet0/0/1]port link-type access
[sw1-GigabitEthernet0/0/1]port de
[sw1-GigabitEthernet0/0/1]port default v
[sw1-GigabitEthernet0/0/1]port default vlan
[sw1]int g 0/0/4
[sw1-GigabitEthernet0/0/4]port link-type trunk
[sw1-GigabitEthernet0/0/4]port trunk allow-pass vlan all
[sw1-GigabitEthernet0/0/4]int g 0/0/3
[sw1-GigabitEthernet0/0/3]port hybrid untagged vlan 2[sw1]int g 0/0/3
[sw1-GigabitEthernet0/0/3]port hybrid untagged vlan 4[sw1]int g 0/0/3
[sw1-GigabitEthernet0/0/3]port hybrid untagged vlan 5
[sw2-GigabitEthernet0/0/1]port link-t
[sw2-GigabitEthernet0/0/1]port link-type ac
[sw2-GigabitEthernet0/0/1]port link-type access
[sw2-GigabitEthernet0/0/1]port de
[sw2-GigabitEthernet0/0/1]port default v
[sw2-GigabitEthernet0/0/1]port default vlan 2
[sw2]int g 0/0/3
[sw2-GigabitEthernet0/0/3]port hybrid untagged vlan 2[sw2]int g 0/0/2
[sw2-GigabitEthernet0/0/2]port hybrid pvid vlan 4
[sw2-GigabitEthernet0/0/2]port hybrid untagged vlan 4
[sw2-GigabitEthernet0/0/2]q
[sw2]int g 0/0/3
[sw2-GigabitEthernet0/0/3]port hybrid untagged vlan 4
[sw2]int g 0/0/4
[sw2-GigabitEthernet0/0/4]port hybrid tagged vlan 4
[sw2]int g 0/0/4
[sw2-GigabitEthernet0/0/4]port hybrid untagged vlan 5
[sw2-GigabitEthernet0/0/4]int g 0/0/3
[sw2-GigabitEthernet0/0/3]port hybrid untagged vlan 5
[sw3]int g 0/0/3
[sw3-GigabitEthernet0/0/3]port hybrid tagged vlan 4
[sw3-GigabitEthernet0/0/3]int g 0/0/1
[sw3-GigabitEthernet0/0/1]port hybrid untagged vlan 4
[sw3-GigabitEthernet0/0/1]int g 0/0/2
[sw3-GigabitEthernet0/0/2]port hybrid tagged vlan 4
[sw3]int g 0/0/1
[sw3-GigabitEthernet0/0/1]port hybrid pvid vlan 5
[sw3-GigabitEthernet0/0/1]port hybrid untagged vlan 5
[sw3-GigabitEthernet0/0/1]int g 0/0/3
[sw3-GigabitEthernet0/0/3]port hybrid untagged vlan 5
[sw3-GigabitEthernet0/0/3]int g 0/0/2
[sw3-GigabitEthernet0/0/2]port hybrid tagged vlan 5
[r1]int g 0/0/0.1
[r1-GigabitEthernet0/0/0.1]ip add 192.168.1.1 24
[r1-GigabitEthernet0/0/0.1]dot1q termination vid 2
[r1-GigabitEthernet0/0/0.1]arp broadcast enable
[r1-GigabitEthernet0/0/0.1]q
[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]ip add 192.168.2.1 24
[r1]dhcp enable
[r1]ip pool v2
[r1-ip-pool-v2]network 192.168.1.0 mask 24
[r1-ip-pool-v2]gateway-list 192.168.1.1
[r1-ip-pool-v2]dns-list 114.114.114.114 8.8.8.8
[r1-ip-pool-v2]q
[r1]ip pool v1
[r1-ip-pool-v1]network 192.168.2.0 mask 24
[r1-ip-pool-v1]gateway-list 192.168.2.1
[r1-ip-pool-v1]dns-list 114.114.114.114 8.8.8.8
[r1]int g 0/0/0.1
[r1-GigabitEthernet0/0/0.1]dhcp select global
[r1-GigabitEthernet0/0/0.1]q
[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]dhcp select global
边栏推荐
- 2837xd Code Generation - Supplement (1)
- [200 Shengxin literatures] 96 joint biomarkers of immune checkpoint inhibitor response in advanced solid tumors
- Junit4 runs MVN test test suite upgrade scheme
- [ue5] blueprint making simple mine tutorial
- 2837xd code generation - stateflow (4)
- Summary of demand R & D process nodes and key outputs
- 2837xd 代码生成——补充(2)
- UE4 night lighting notes
- It is the most difficult to teach AI to play iron fist frame by frame. Now arcade game lovers have something
- How to handle error logic gracefully
猜你喜欢

Ue5 - AI pursuit (blueprint, behavior tree)
![[illusory] automatic door blueprint notes](/img/7a/14a66e5b623c7740dc91a15a328b10.png)
[illusory] automatic door blueprint notes

Inverter Simulink model -- processor in the loop test (PIL)

JDBC review

Junit5 支持suite的方法

How to judge the quality of primary market projects when the market is depressed?

Kinect DK obtains color RGB images in cv:: mat format (used in openpose)

2837xd 代码生成——补充(3)

In SQL injection, why must the ID of union joint query be equal to 0

Matlab生成dsp程序——官方例程学习(6)
随机推荐
2837xd Code Generation - Supplement (1)
Binary and decimal system of C language
Inverter Simulink model -- processor in the loop test (PIL)
Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer
2837xd code generation - stateflow (4)
Blender海洋制作
2.14 is it Valentine's day or Valentine's day when the mainstream market continues to fluctuate and wait for changes?
Matlab生成dsp程序——官方例程学习(6)
2837xd code generation - Supplement (1)
JDBC review
Junit5 支持suite的方法
Attack and defense world web advanced area unserialize3
Blender多镜头(多机位)切换
XA Transaction SQL Statements
Record personal understanding and experience of game console configuration
How much is it to develop a system software in Beijing, and what funds are needed to develop the software
Centos7 one click compilation and installation of PHP script
Cmake command - Official Document
Brief analysis of edgedb architecture
Pycaret | a few lines of code to solve machine learning modeling