Get the App
SLTechnology News&Howtos  ›  Servers  › 

Huawei DHCP configuration and DHCP Relay

Shulou Source: shulou.com Published: 2022-06-03 04:58:14 11月14日 Update

Huawei dhcp and Relay

Configuration:

Train of thought:

1. Configure the DHCP client

Make sure that each PC is the way to automatically obtain IP addresses

2. Configure SW1

# create VLAN 10,20

# put the relevant ports into the corresponding VLAN

# configure the interconnection link between switches-Trunk

3. Configure SW2

# create VLAN 10,20,30pr 40

# put the relevant ports into the corresponding VLAN

# configure the interconnection link between switches-Trunk

# configure SW2 as the gateway for each VLAN

& enable routing function

& configure the SVI corresponding to each VLAN

& configure the Internet segment with R1 as a layer 3 port

4. Configure the relevant interface address of R1

5. Configure R1: DHCP server related parameters:

# create a DHCP address pool

-vlan 10

-vlan 20

-vlan 30

# enable DHCP service

7. Configure DHCP relay under SVI on SW2:

Interface vlan 10-> dhcp select relay

Dhcp relay server-ip 192.168.88.88

Interface vlan 20-> dhcp select relay

Dhcp relay server-ip 192.168.88.88

Interface vlan 30While-> dhcp select relay

Dhcp relay server-ip 192.168.88.88

Steps:

1.SW1: create vlan10 20

Add e0Accord 2 e0Accord 1 to VLAN10 VLAN 20

Configure e0swap 3 to trunk mode

2.SW2: create vlan10 20 30 40

Add e0Accord 1 to VLAN30

E0swap 2 is in trunk mode (sw2 is a layer 3 switch)

E0Accord 1 add vlan30 g0Accord 3 add vlan 40

Vlan10 Gateway: 192.168.10.254 255.255.255.0

Vlan20 Gateway: 192.168.20.254 255.255.255.0

Vlan30 Gateway: 192.168.20.254 255.255.255.0

Ip:192.168.88.66 255.255.255.0 for vlan40

3. Configure R1 to configure ip:192.168.88.88 255.255.255.0 for g0amp 0

Enable the dhcp function

Create an address pool:

1. Ip pool vlan10

Network 192.168.10.0 mask 255.255.255.0

Gateway-list 192.168.10.254

Dns-list 1.1.1.1

Lesae day 3

2. Ip pool vlan20

Network 192.168.20.0 mask 255.255.255.0

Gateway-list 192.168.10.254

Dns-list 1.1.1.1

Lesae day 3

3. Ip pool vlan30

Network 192.168.30.0 mask 255.255.255.0

Gateway-list 192.168.10.254

Dns-list 1.1.1.1

Lesae day 3

Configure on the interface g0swap 0:

Dhcp select global

4. Turn on the routing function:

Ip route-static 0.0.0.0 0.0.0.0 192.168.88.66

4. Configure DHCP trunking under SVI on SW2:

Enable the dhcp function first

Interface vlan 10-> dhcp select relay

Dhcp relay server-ip 192.168.88.88

Interface vlan 20-> dhcp select relay

Dhcp relay server-ip 192.168.88.88

Interface vlan 30While-> dhcp select relay

Dhcp relay server-ip 192.168.88.88

5. Check the configuration on the PC and ping each other

Pc1:

Pc2:

Pc3:

All PCs can communicate with each other through ping

Tags: Configuration function address gateway trunk inter-switch port interconnection interface mode route link service Huawei parameter customer client idea method Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info OPPO Reno MySQL Huawei MariaDB