当前位置:网站首页>VLAN configuration and application (take Huawei ENSP as an example)
VLAN configuration and application (take Huawei ENSP as an example)
2022-07-25 10:32:00 【m0_ fifty-four million eight hundred and three thousand seven h】
If there is a mistake , Please kindly understanding !
This article is only for my study notes , For reference only , If offended , Please contact the author for deletion !!!
Introduction to basic knowledge :
establish vlan:
[Huawei]vlan 2draw ⼊ Pick up ⼝:
[Huawei]interface e0/0/1 [Huawei-Ethernet0/0/1]port link-type access Change mode to connect ⼊ [Huawei-Ethernet0/0/1]port default vlan 2 draw ⼊vlan 2trunk The encapsulation mode of :
fictitious ⼦ Pick up ⼝:
Category dot1q isl size 4b 20b Support agreement only ⽀ a tcp/ip ⽀ Hold all agreements The public agreement cisco private [dhcp]interface g0/0/0.1 [dhcp-GigabitEthernet0/0/0.1]dot1q termination vid 2 [dhcp-GigabitEthernet0/0/0.1]ip address 192.168.1.1 24transfer ⽤:
[dhcp]interface g0/0/0.1 [dhcp-GigabitEthernet0/0/0.1]dhcp select global [dhcp-GigabitEthernet0/0/0.1]arp broadcast enable
Experimental Topology :

One 、 by PC1、PC2、PC3、PC4 Delegate designation IP
Set for switch vlan:
[Huawei]vlan 2
[Huawei]vlan 3
[Huawei]vlan 4
[Huawei]vlan 5
[Huawei]interface e0/0/2
[Huawei-Ethernet0/0/2]port link-type access
[Huawei-Ethernet0/0/2]port default vlan 2
[Huawei]interface e0/0/3
[Huawei-Ethernet0/0/3]port link-type access
[Huawei-Ethernet0/0/3]port default vlan 3
[Huawei]interface e0/0/4
[Huawei-Ethernet0/0/4]port link-type access
[Huawei-Ethernet0/0/4]port default vlan 4
[Huawei-Ethernet0/0/4]quit
[Huawei]interface e0/0/5
[Huawei-Ethernet0/0/5]port link-type access
[Huawei-Ethernet0/0/5]port default vlan 5
[Huawei-Ethernet0/0/5]quit
For the switch e0/0/1 Interface setup trunk
[Huawei]interface e0/0/1
[Huawei-Ethernet0/0/1]port link-type trunk
[Huawei-Ethernet0/0/1]port trunk allow-pass vlan allConfigure virtual sub interface IP And divide vlan:
[r1]interface g0/0/0.1
[r1-GigabitEthernet0/0/0.1]ip address 172.16.1.1 24
[r1]interface g0/0/0.2
[r1-GigabitEthernet0/0/0.2]ip address 172.16.2.1 24
[r1]interface g0/0/0.3
[r1-GigabitEthernet0/0/0.3]ip address 172.16.3.1 24
[r1]interface g0/0/0.4
[r1-GigabitEthernet0/0/0.4]ip address 172.16.4.1 24
[r1]dhcp enable
[r1]interface g0/0/0.1
[r1-GigabitEthernet0/0/0.1]dot1q termination vid 2
[r1]interface g0/0/0.2
[r1-GigabitEthernet0/0/0.2]dot1q termination vid 3
[r1]interface g0/0/0.3
[r1-GigabitEthernet0/0/0.3]dot1q termination vid 4
[r1]interface g0/0/0.4
[r1-GigabitEthernet0/0/0.4]dot1q termination vid 5Turn on DHCP Service and configuration dhcp
[r1]dhcp enable
[r1]ip pool 1
[r1-ip-pool-1]network 172.16.1.0 mask 255.255.255.0
[r1-ip-pool-1]gateway-list 172.16.1.1
[r1-ip-pool-1]dns-list 8.8.8.8
[r1-ip-pool-1]quit
[r1]ip pool 2
[r1-ip-pool-2]network 172.16.2.0 mask 255.255.255.0
[r1-ip-pool-2]gateway-list 172.16.2.1
[r1-ip-pool-2]dns-list 8.8.8.8
[r1-ip-pool-2]quit
[r1]ip pool 3
[r1-ip-pool-3]network 172.16.3.0 mask 255.255.255.0
[r1-ip-pool-3]dns-list 8.8.8.8
[r1-ip-pool-3]gateway-list 172.16.3.1
[r1-ip-pool-3]quit
[r1]ip pool 4
[r1-ip-pool-4]network 172.16.4.0 mask 255.255.255.0
[r1-ip-pool-4]gateway-list 172.16.4.1
[r1-ip-pool-4]dns-list 8.8.8.8
[r1-ip-pool-4]quitcall :
[r1]interface g0/0/0.1
[r1-GigabitEthernet0/0/0.1]dhcp select global
[r1-GigabitEthernet0/0/0.1]arp broadcast enable
[r1-GigabitEthernet0/0/0.1]quit
[r1]interface g0/0/0.2
[r1-GigabitEthernet0/0/0.2]dhcp select global
[r1-GigabitEthernet0/0/0.2]arp broadcast enable
[r1-GigabitEthernet0/0/0.2]quit
[r1]interface g0/0/0.3
[r1-GigabitEthernet0/0/0.3]dhcp select global
[r1-GigabitEthernet0/0/0.3]arp broadcast enable
[r1-GigabitEthernet0/0/0.3]quit
[r1]interface g0/0/0.4
[r1-GigabitEthernet0/0/0.4]dhcp select global
[r1-GigabitEthernet0/0/0.4]arp broadcast enable
[r1-GigabitEthernet0/0/0.4]quitSimilarly, the above operation is PC5、PC6 Delegate designation IP.
Two 、 Configure the router nodes IP Address
With routers r2 For example :
[r2]interface LoopBack 0
[r2-LoopBack0]ip address 2.2.2.2 32
[r2]interface g0/0/0
[r2-GigabitEthernet0/0/0]ip address 12.1.1.2 24
[r2]interface g0/0/1
[r2-GigabitEthernet0/0/1]ip address 23.1.1.1 24
3、 ... and 、 utilize OSPF agreement , Divide three routers into one area
With routers r2 For example :
[r2]ospf 100 router-id 2.2.2.2
[r2-ospf-100]area 1
[r2-ospf-100-area-0.0.0.1]network 0.0.0.0 255.255.255.255
Four 、 test

The above process is what we want , Welcome friends to correct ! Thank you very much !
边栏推荐
- Research summary of voice self-monitoring pre training model CNN encoder
- 8. SHELL file processing Three Musketeers sed
- The ultimate summary of jsonobject parsing JSON format
- 3、 Five operation modes of unittest test cases
- 9.shell文本处理三剑客之awk
- 安装mysql时,string the service 安装失败>mysql80启动失败
- User preferences
- 2.介绍部署LAMP平台+DISCUZ论坛
- Use of mongodb
- Idea overall font size modification
猜你喜欢
随机推荐
Strut2 form label
5.NFS共享服务和ssh远程控制服务
TCP transmission
Vscode latex workshop set xelatex compilation
Fastdfs offline deployment (Graphic)
Add CONDA virtual environment env to the Jupiter kernel
Ansible部署指南
Bug分类和定级
Set up lnmp+discuz Forum
Storage, computing, distributed Virtualization (collection and sorting is suitable for Xiaobai)
4.FTP服务配置与原理
Trojaning Attack on Neural Networks 论文阅读笔记
5. This simple "echo" usage, can the child next door!
Swing component Icon
2、 What does the unittest framework do
存储、计算、分布式虚拟化篇(收集整理适合小白)
Ansible Deployment Guide
2.shell脚本之条件语句
Storage, computing, distributed storage (collection and sorting is suitable for Xiaobai)
Duplicate SSL_ Anti spoofing, spoofing attacks and deep forgery detection using wav2vec 2.0 and data enhanced automatic speaker authentication







