Based on the previous two sections, we have mastered the DHCP Server configuration of the Huawei 3COM router and the DHCP Relay configuration of the Huawei 3COM router. Here we will talk about the last part: the configuration steps and content of the DHCP Client on the Huawei 3COM router are as follows:
DHCP Client configuration for Huawei 3COM vrodhcp 1. Requirement
The vrodhcp acts as the DHCP Client to obtain the dynamic IP address of the interface.
It is mainly used to connect a vro's Ethernet interface to a public network through a LAN.
DHCP Client configuration for Huawei 3COM vrodhcp 2. Networking Diagram
DHCP Client configuration for Huawei 3COM vrodhcp 3. Configuration script
- Routeconfig script
- #
- Sysname roupid
- #
- Radius scheme system
- #
- Domain system
- #
- Interface Ethernet1/0/0
- Ip address dhcp-alloc/configure DHCP to obtain the address/
- #
- Interface Ethernet1/0/1
- Ip address 192.168.0.1 255.255.255.0
- #
- Interface NULL0
- #
- Ip route-static 0.0.0.0 0.0.0.0 202.101.68.1 preference 60
- /Specify the default egress route/
- #
- User-interface con 0
- User-interface vty 0 4
- #
- Return
DHCP Client configuration of Huawei 3COM router 4. Verify
You can use disp int to view the IP addresses obtained by the interface.
- [Quidway]disp int e 1/0/0
- Ethernet1/0/0 current state :UP
- Line protocol current state :UP
- Description : Ethernet1/0/0 Interface
- The Maximum Transmit Unit is 1500, Hold timer is 10(sec)
- Internet Address is 202.101.xx.4/24, acquired via DHCP
- IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc45-2ca7
- Media type is twisted pair, loopback not set, promiscuous mode not set
- 100Mb/s, Full-duplex, link type is autonegotiation
- Output flow-control is disabled, input flow-control is disabled
- Output queue : (Urgent queue : Size/Length/Discards) 0/50/0
- Output queue : (Protocol queue : Size/Length/Discards) 0/500/0
- Output queue : (FIFO queuing : Size/Length/Discards) 0/75/0
- Last 300 seconds input rate 0.00 bytes/sec, 0.00 packets/sec
- Last 300 seconds output rate 0.00 bytes/sec, 0.00 packets/sec
- Input: 406 packets, 57174 bytes, 406 buffers
- 218 broadcasts, 0 multicasts, 0 pauses
- 0 errors, 0 runts, 0 giants
- 0 crc, 0 align errors, 0 overruns
- 0 dribbles, 0 drops, 0 no buffers
- Output:268 packets, 37113 bytes, 269 buffers
- 86 broadcasts, 19 multicasts, 0 pauses
- 0 errors, 0 underruns, 0 collisions
- 0 deferred, 0 lost carriers
DHCP Client configuration of Huawei 3COM router 5. Prompt
1. The default router must be specified to implement the Internet access function. The gateway address can be obtained through debugDHCPclient packet. Point the default route of the device to the gateway. The default gateway is usually fixed and will not change with the address acquisition and release.
2. This configuration often needs to be combined with the NAT configuration to enable Intranet users to access the Internet.