网管须知:华为3COM路由器DHCP Client配置


根据前面两节,我们已经对华为3COM路由器DHCP Server配置和华为3COM路由器DHCP Relay配置的步骤有所掌握了,这里我们就再说一下最后一部分:华为3COM路由器DHCP Client配置,具体步骤和内容如下:

华为3COM路由器DHCP Client配置1。 需求

路由器作为DHCP Client,获取接口的动态IP地址。

主要用在使用路由器的以太网接口通过LAN方式接入公网的组网。

华为3COM路由器DHCP Client配置2。 组网图

华为3COM路由器DHCP Client配置3。 配置脚本

  1. RouterA配置脚本  
  2. #  
  3. sysname RouterA  
  4. #  
  5. radius scheme system  
  6. #  
  7. domain system  
  8. #  
  9. interface Ethernet1/0/0  
  10. ip address dhcp-alloc /配置DHCP方式获取地址/  
  11. #  
  12. interface Ethernet1/0/1  
  13. ip address 192.168.0.1 255.255.255.0  
  14. #  
  15. interface NULL0  
  16. #  
  17. ip route-static 0.0.0.0 0.0.0.0 202.101.68.1 preference 60  
  18. /指定默认出口路由/  
  19. #  
  20. user-interface con 0  
  21. user-interface vty 0 4  
  22. #  
  23. return 

华为3COM路由器DHCP Client配置4。 验证

通过disp int 可以查看接口获取的IP地址

  1. [Quidway]disp int e 1/0/0  
  2. Ethernet1/0/0 current state :UP  
  3. Line protocol current state :UP  
  4. Description :   Ethernet1/0/0 Interface  
  5. The Maximum Transmit Unit is 1500, Hold timer is 10(sec)  
  6. Internet Address is 202.101.xx.4/24, acquired via DHCP  
  7. IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc45-2ca7  
  8. Media type is twisted pair, loopback not set, promiscuous mode not set  
  9. 100Mb/s, Full-duplex, link type is autonegotiation  
  10. Output flow-control is disabled, input flow-control is disabled  
  11. Output queue : (Urgent queue : Size/Length/Discards)   0/50/0  
  12. Output queue : (Protocol queue : Size/Length/Discards) 0/500/0  
  13. Output queue : (FIFO queuing : Size/Length/Discards)   0/75/0  
  14. Last 300 seconds input rate 0.00 bytes/sec, 0.00 packets/sec  
  15. Last 300 seconds output rate 0.00 bytes/sec, 0.00 packets/sec  
  16. Input: 406 packets, 57174 bytes, 406 buffers  
  17. 218 broadcasts, 0 multicasts, 0 pauses  
  18. 0 errors, 0 runts, 0 giants  
  19. 0 crc, 0 align errors, 0 overruns  
  20. 0 dribbles, 0 drops, 0 no buffers  
  21. Output:268 packets, 37113 bytes, 269 buffers  
  22. 86 broadcasts, 19 multicasts, 0 pauses  
  23. 0 errors, 0 underruns, 0 collisions  
  24. 0 deferred, 0 lost carriers 

华为3COM路由器DHCP Client配置5。 提示

1、 为了实现上网功能必须指定默认路由器。该网关的地址可以通过debugDHCPclient packet获得。将设备的默认路由指向该网关就可以了。该默认网关一般都是固定不变的,不会随地址的获取和释放而变化。

2、 该配置经常需要和NAT配置结合起来,实现内网用户上网功能。

相关内容

    暂无相关文章