当前位置:网站首页>Detailed explanation of DHCP distribution address of routing / layer 3 switch [Huawei ENSP]
Detailed explanation of DHCP distribution address of routing / layer 3 switch [Huawei ENSP]
2022-07-28 08:52:00 【Shangjin vegetable pig】
List of articles
One . Preface
DHCP: Two computers connected to the Internet communicate with each other , Must have their own IP Address , because IP Limited address resources , Broadband access operators can't allocate a fixed number of broadband subscribers IP Address , So use DHCP Method to assign temporary address to the users on the Internet .
Recently, there is a class design demand . Let's look at the demand first :
Existing demand of a company 500 This device can be connected to the external network , The company has 5 Departments , Namely A\B\C\D\E,
Every department needs 100 device , And the second floor is required to be isolated .
As we can see above , We have finished task one :
1. Make a reasonable plan IP( Use private IP) With subnets .
Now let's solve demand two :
2. It is proposed to adopt DHCP Distribution address ( expand )
At the layer 3 switch DHCP Before sending the address , We need to have a general understanding of routing DHCP Distribution address , as follows :
Two . route DHCP Distribution address
Take a look at the topology :
First step , Go to the router first :
Get into 0/0/0
int GigabitEthernet 0/0/0
Add gateway and mask
[R1-GigabitEthernet0/0/0]ip address 192.168.1.254 24
go back to R1
Create an address pool
[R1]ip pool PC
Input gateway
[R1-ip-pool-PC]gateway-list 192.168.1.254
Input network segment
[R1-ip-pool-PC]network 192.168.1.0 mask 24
Return to R1
Turn on DHCP
[R1]dhcp enable
Get into 0/0/0
[R1]int GigabitEthernet 0/0/0
Turn on global overall situation
[R1-GigabitEthernet0/0/0]dhcp select global
testing :
ipconfig

3、 ... and . Switch DHCP Distribution address ( Lord )
3.1 The detailed steps
Take a look at the topology first :
We have done subnet division before , as follows :
To configure DHCP Here comes the step : high energy alert !
Step 1 access layer :
First configure the access layer switch LSW1~LSW5:
First configure vlan
vlan batch 10 20 30 40 50
Set the interface of the access terminal to access Pattern , release vlan10 adopt
int Eth0/0/1
port link-type access
port default vlan 10
Set other 3 Interfaces are trunk Pattern , Let go of all vlan adopt
port-group group-member Ethernet 0/0/2 to Ethernet 0/0/3
port link-type trunk
port trunk allow-pass vlan all
The above steps configure LSW1~LSW5, Be careful port default vlan 10 Switches in different access layers need to be changed
Step 1 convergence layer :
Configure the aggregation layer switch , has SWL6 For example .
stay LSW6 Upper opening VLAN
vlan batch 10 20 30 40 50
Set interface group , Set to trunk Pattern :
port-group group-member GigabitEthernet 0/0/1 to GigabitEthernet 0/0/9
port link-type trunk
Release all vlan:
port trunk allow-pass vlan all

Switch on DHCP
dhcp enable
Write logical interface ,ip The address is the terminal gateway address , Mask 25 position
int vlanif 10
ip address 192.168.10.126 25
Create five ip pool , And assign ip paragraph , Distribute gateway
ip pool 1
network 192.168.10.0 mask 25
gateway-list 192.168.10.126
Select the global address pool for DHCP Client side usage
int Vlan 10
dhcp select global

The terminal device is set to DHCP
Input ipconfig
DHCP Address distribution succeeded !
3.2 Convenient command collection
Access layer switch
vlan batch 10 20 30 40 50
int Eth0/0/1
port link-type access
port default vlan 10
port-group group-member Ethernet 0/0/2 to Ethernet 0/0/3
port link-type trunk
port trunk allow-pass vlan all
Convergent layer switch
vlan batch 10 20 30 40 50
port-group group-member GigabitEthernet 0/0/1 to GigabitEthernet 0/0/9
port link-type trunk
port trunk allow-pass vlan all
Switch on DHCP
dhcp enable
int vlanif 10
ip address 192.168.10.126 25
int vlanif 20
ip address 192.168.10.254 25
int vlanif 30
ip address 192.168.20.126 25
int vlanif 40
ip address 192.168.20.254 25
int vlanif 50
ip address 192.168.30.126 25
Switch on DHCP
[sw1]dhcp enable
dhcp enable
Create five ip pool , And assign ip paragraph , Distribute gateway
ip pool 1
network 192.168.10.0 mask 25
gateway-list 192.168.10.126
ip pool 2
network 192.168.10.128 mask 25
gateway-list 192.168.10.254
ip pool 3
network 192.168.20.0 mask 25
gateway-list 192.168.20.126
ip pool 4
network 192.168.20.128 mask 25
gateway-list 192.168.20.254
ip pool 5
network 192.168.30.0 mask 25
gateway-list 192.168.30.126
Select the global address pool for DHCP Client side usage
int Vlan 10
dhcp select global
int Vlan 20
dhcp select global
int Vlan 30
dhcp select global
int Vlan 40
dhcp select global
int Vlan 50
dhcp select global
边栏推荐
- Will sqlserver CDC 2.2 generate table locks when extracting large tables from the source
- (13) Simple temperature alarm device based on 51 single chip microcomputer
- 第2章-14 求整数段和
- JS inheritance method
- Kubernetes technology and Architecture (VII)
- How to configure phpunit under window
- 思迈特软件Smartbi完成C轮融资,推动国产BI加速进入智能化时代
- Oracle SQL problems
- MySQL怎么查询可以同时判断多个字段值是否存在
- [activity registration] User Group Xi'an - empowering enterprise growth with modern data architecture
猜你喜欢

阿里技术四面+交叉面+HR面,成功拿到offer,双非本科进不了大厂?

Top all major platforms, 22 versions of interview core knowledge analysis notes, strong on the list

Gb/t 41479-2022 information security technology network data processing security requirements map overview

第2章-14 求整数段和

Vk1620 temperature controller / smart meter LED digital display driver chip 3/4-wire interface with built-in RC oscillator to provide technical support

Hcip day 9_ BGP experiment

1w5字详细介绍分布式系统的那些技术方案

Shell编程规范与变量

Warehouse of multiple backbone versions of yolov5

Machine learning how to achieve epidemic visualization -- epidemic data analysis and prediction practice
随机推荐
Wechat applet - wechat applet browsing PDF files
leetcode刷题,我推荐B站这个妹子学霸的视频
Deployment of kubernetes
SQL injection - pre Foundation
[mindspire YiDianTong robot-01] you may have seen many Knowledge Q & A robots, but this is a little different
There is a bug in installing CONDA environment
oracle sql 问题
Chapter 2-14 sum integer segments
置顶各大平台,22版面试核心知识解析笔记,强势上榜
机器学习如何做到疫情可视化——疫情数据分析与预测实战
How CI framework integrates Smarty templates
Gbase appears in Unicom cloud Tour (Sichuan Station) to professionally empower cloud ecology
No one wants to tell the truth about kubernetes secret
Among China's top ten national snacks, it is actually the first
Smart software completed round C financing, making Bi truly "inclusive"
微服务架构 Sentinel 的服务限流及熔断
Image batch processing | necessary skills
招贤纳士,GBASE高端人才招募进行中
Day112. Shangyitong: Mobile verification code login function
In addition to exporting the incremental data captured by Oracle golden gate to Oracle, where can it be exported? Can be similar




