当前位置:网站首页>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 - stateflow (4)
- Record the interesting process of using Xray for the first time
- Commutateur Multi - lentilles Blender
- ue4材质的入门和原理笔记
- Introduction et prévention des essais de pénétration
- 2837xd code generation - Supplement (2)
- Illusion -- Animation blueprint, state machine production, character walking, running and jumping action
- Kinect DK obtains color RGB images in cv:: mat format (used in openpose)
- 【UE5】蓝图制作简单地雷教程
- How much is it to develop a system software in Beijing, and what funds are needed to develop the software
猜你喜欢

ICLR 2022: how does AI recognize "things I haven't seen"?

How to achieve the top progress bar effect in background management projects

Commutateur Multi - lentilles Blender

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

Image recognition - data annotation

Blender多镜头(多机位)切换

2837xd 代码生成——StateFlow(3)

2837xd代码生成模块学习(3)——IIC、eCAN、SCI、Watchdog、eCAP模块

Web security and defense

2837xd code generation - stateflow (3)
随机推荐
2837xd 代码生成——补充(3)
Junit5 支持suite的方法
2837xd 代码生成——StateFlow(1)
Spatial interpretation | comprehensive analysis of spatial structure of primary liver cancer
Remember a simple Oracle offline data migration to tidb process
Large neural networks may be beginning to realize: the chief scientist of openai leads to controversy, and everyone quarrels
C language programming problems
Skywalking理论与实践
2837xd 代码生成——StateFlow(3)
ue虚幻引擎程序化植物生成器设置——如何快速生成大片森林
Int to string, int to qstring
Off grid control of three-phase inverter - PR control
UE illusory engine programmed plant generator setup -- how to quickly generate large forests
Remember the use of add method once
Mixed development of uni app -- Taking wechat applet as an example
Web security and defense
Blender多鏡頭(多機比特)切換
职业规划和发展
2837xd代码生成模块学习(1)——GPIO模块
UE4夜间打光笔记