H3C设备之DHCP中继代理

 

H3C设备之DHCP中继代理_第1张图片 

使用DHCP中继代理,让DHCP客户端通过代理动态获取地址。

DHCP SERVER: 

[H3C]interface E1/1

          ip address 192.168.1.10 24

[H3C] dhcp enable

           dhcp server forbidden-ip 192.168.2.1 192.168.2.10

           dhcp server ip-pool dhcp1

           network 192.168.2.0 mask 255.255.255.0

           gateway-list 192.168.2.1 

           dns-list 22.22.22.2

           ip route-static 192.168.2.0 255.255.255.0 192.168.1.1

DHCP RELAY:  

 [H3C]interface E1/1

           ipaddress 192.168.1.1 24

           interface E1/0

           ip address 192.168.2.1 24

 [H3C]dhcp enable

          dhcp relay server-group 1 ip 192.168.1.10     配置DHCP地址组,并且指定DHCP server 地址。

           interface E1/0

           dhcp select relay          使接口工作在中继模式下

           dhcp relay server-select 1    将接口与DHCP组关联

 [H3C]ip route-static 192.168.1.0 255.255.255.0 192.168.1.10

此时DHCP CLINET成功通过代理获取到了动态地址信息:

C:\Documents and Settings\xiaofei>ipconfig/all

Windows IP Configuration

        Host Name . . . . . . . . . . . . : xiaofei-d44ab01
        Primary Dns Suffix  . . . . . . . :
        Node Type . . . . . . . . . . . . : Unknown
        IP Routing Enabled. . . . . . . . : No
        WINS Proxy Enabled. . . . . . . . : No
        DNS Suffix Search List. . . . . . : xiaofei

Ethernet adapter 本地连接:

        Connection-specific DNS Suffix  . : xiaofei
        Description . . . . . . . . . . . : VMware Accelerated AMD PCNet Adapter

        Physical Address. . . . . . . . . : 00-0C-29-B7-20-33
        Dhcp Enabled. . . . . . . . . . . : Yes
        Autoconfiguration Enabled . . . . : Yes
        IP Address. . . . . . . . . . . . : 192.168.2.44
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 192.168.2.1
        DHCP Server . . . . . . . . . . . : 192.168.1.10
        DNS Servers . . . . . . . . . . . : 22.22.22.2
        Lease Obtained. . . . . . . . . . : 2012年8月9日 11:31:39
        Lease Expires . . . . . . . . . . : 2012年8月10日 11:31:39

 

                                       

                                     

                           

 

你可能感兴趣的:(h3c,dhcp中继代理)