当前位置:网站首页>DHCP experiment demonstration (Huawei switch device configuration)
DHCP experiment demonstration (Huawei switch device configuration)
2022-07-28 11:20:00 【51CTO】
One 、DHCP Introduce
DHCP(Dynamic Host Configuration Protocol) Dynamic Host Configuration Protocol , It can automatically assign IP Address 、 Subnet mask and default gateway 、DNS Server's IP Address, etc .
ps: Huawei equipment dhcp The default allocation of address pool is from large to small .
Two 、DHCP The experiment purpose
Realization PC1 and PC2 Get IP Address ;
PC1 You can talk to PC2 Interworking .
3、 ... and 、 The topology

Four 、 Experimental configuration
(1)PC1,PC2 Choose as DHCP Automatic access to .


(2) Access switch configuration
<Huawei>sys
# Enter the system view
[Huawei]sysname acsw
# Change the switch name to acsw
[acsw]vlan batch 10 20
# establish vlan10 and 20
[acsw]un in en
# Turn off log prompt
[acsw]interface g0/0/1
# Access interface
[acsw-GigabitEthernet0/0/1]port link-type access
# Interface configuration access Pattern
[acsw-GigabitEthernet0/0/1]port default vlan 10
# Configure interface VLAN 10
[acsw-GigabitEthernet0/0/1]int g0/0/2
[acsw-GigabitEthernet0/0/2]port link-type access
[acsw-GigabitEthernet0/0/2]port default vlan 20
[acsw-GigabitEthernet0/0/2]q
[acsw]int g0/0/3
[acsw-GigabitEthernet0/0/3]port link-type trunk
# Interface configuration trunk Pattern
[acsw-GigabitEthernet0/0/3]port trunk allow-pass vlan all
# Allow all vlan adopt
[acsw-GigabitEthernet0/0/3]q
# sign out
(3) Core switch configuration
<Huawei>system-view
[Huawei]sysname coresw
[coresw]un in en
[coresw]int g0/0/1
[coresw-GigabitEthernet0/0/1]port link-type trunk
[coresw-GigabitEthernet0/0/1]q
[coresw]dhcp enable
[coresw]ip pool vlan10
# The name of the address pool created is vlan10
[coresw-ip-pool-vlan10]network 192.168.10.0 mask 24
# Address pool distribution network segment
[coresw-ip-pool-vlan10]gateway-list 192.168.10.254
# Address pool distribution gateway
[coresw-ip-pool-vlan10]dns-list 8.8.8.8
# Address pool distribution dns Address
[coresw-ip-pool-vlan10]excluded-ip-address 192.168.10.101 192.168.10.253
# The address does not include the distribution range
[coresw-ip-pool-vlan10]lease day 3
# The lease term is 3 God
[coresw-ip-pool-vlan10]q
[coresw]ip pool vlan20
[coresw-ip-pool-vlan20]network 192.168.20.0 mask 24
[coresw-ip-pool-vlan20]gateway-list 192.168.20.254
[coresw-ip-pool-vlan20]dns-list 114.114.114.114
[coresw-ip-pool-vlan20]excluded-ip-address 192.168.20.101 192.168.20.253
[coresw-ip-pool-vlan20]lease day 5
[coresw-ip-pool-vlan20]q
[coresw]vlan batch 10 20
[coresw]int Vlanif 10
[coresw-Vlanif10]ip add 192.168.10.254 24
[coresw-Vlanif10]dhcp select global
# stay vlan10 Enable dhcp service
[coresw-Vlanif10]q
[coresw]int Vlanif 20
[coresw-Vlanif20]ip add 192.168.20.254 24
[coresw-Vlanif20]dhcp select global
[coresw-Vlanif20]q
[coresw]interface g0/0/1
[coresw-GigabitEthernet0/0/1]port link-type trunk
[coresw-GigabitEthernet0/0/1]port trunk allow-pass vlan all
(4) verification


PC1 and PC2 Automatically get IP Address .


PC1 and PC2 Interworking , Configuration is successful .
边栏推荐
- Cortex-M内核管理全局中断的三种方式
- 栈和队列
- Learn how to do e-commerce data analysis (with operation analysis index framework)
- 做数据分析,你还不懂RFM分析方法(模型)?
- ctf技能树----文件上传
- 使用共用体union及指针测试大小端
- 学会使用MySQL的Explain执行计划,SQL性能调优从此不再困难
- JWT login authentication + token automatic renewal scheme, well written!
- The 10th Landbridge cup embedded electronic provincial competition
- Generation and use of Lib library files in keil and IAR
猜你喜欢

Sword finger offer 30. stack containing min function

MySQL Architecture Principle
![Leetcode:1300. the sum of the array closest to the target value after transforming the array [dichotomy]](/img/da/51c4051464d52eae10d93e881cfdf5.png)
Leetcode:1300. the sum of the array closest to the target value after transforming the array [dichotomy]

Remote shutdown of computer with mobile phone

GIS数据漫谈(五)— 地理坐标系统

Two dimensional prefix and

Blue Bridge Cup embedded Hal library systick

PHP发送移动MAS短信乱码的解决方法

分体式测斜探头安装要点及注意事项

Do you want to enroll in class for advanced soft exam
随机推荐
【MySQL从入门到精通】【高级篇】(十)MyISAM的索引方案&&索引的优缺点
JSON初步理解
2021-03-24
分体式测斜探头安装要点及注意事项
[MySQL from introduction to proficiency] [advanced chapter] (IX) precautions for InnoDB's b+ tree index
A solution to the problem that ThinkPad fingerprint verification cannot be used in win7
Use the statement object to execute DDL statements to create tables
Learn how to do e-commerce data analysis (with operation analysis index framework)
Tree shaking and DCE
CTF skill tree - file upload
21. Merge two ordered linked lists
Remote shutdown of computer with mobile phone
BOM part attributes and understanding
Clo********e: project management notes
BC35 NB模块AT指令开发总结
Inventory: 6 books teach you the necessary skills for career promotion
Understanding of the return value of the structure pointer function passed to the structure pointer
Why should coding and modulation be carried out before transmission
Two dimensional prefix and
Nodejs:mongodb 简单模糊+分页查询实例