On hp h3c devices .
#
Dhcp enable
#
-----------------------------------------
#
dhcp relay server-group 1 ip 10.96.59.4
#
=============================================
#
interface Vlan-interface861
ip address 10.96.92.254 255.255.255.0
dhcp select relay
dhcp relay server-select 1
#
=============================================
#
Create vlan for dhcp services
interface Vlan-interface2
ip address 192.168.1.1 255.255.255.0
#
#
Create dhcp pool for Vlan 2 and link to 192.168.1.1 ip address
dhcp server ip-pool 1
network 192.168.1.0 mask 255.255.255.0
gateway-list 192.168.1.1
dns-list 208.67.222.222
#
interface Vlan-interface2
ip address 192.168.1.1 255.255.255.0
#
return
#
Assing vlan to interface.
[Air]interface Vlan-interface 2
[Air-Vlan-interface2]qu
[Air]vlan 2
[Air-vlan2] port ?
Ethernet Ethernet interface
[Air-vlan2] port Ethernet 0/1 to Ethernet 0/4
[Airl-vlan2]
#
[Air]dis arp
Type: S-Static D-Dynamic A-Authorized
IP Address MAC Address VLAN ID Interface Aging Type
192.168.1.2 60eb-699a-e74f 2 Eth0/1 16 D
#
#
Dhcp enable
#
-----------------------------------------
#
dhcp relay server-group 1 ip 10.96.59.4
#
=============================================
#
interface Vlan-interface861
ip address 10.96.92.254 255.255.255.0
dhcp select relay
dhcp relay server-select 1
#
=============================================
DHCP services for msr 20-11
#
Create vlan for dhcp services
interface Vlan-interface2
ip address 192.168.1.1 255.255.255.0
#
#
Create dhcp pool for Vlan 2 and link to 192.168.1.1 ip address
dhcp server ip-pool 1
network 192.168.1.0 mask 255.255.255.0
gateway-list 192.168.1.1
dns-list 208.67.222.222
#
interface Vlan-interface2
ip address 192.168.1.1 255.255.255.0
#
return
#
Assing vlan to interface.
[Air]interface Vlan-interface 2
[Air-Vlan-interface2]qu
[Air]vlan 2
[Air-vlan2] port ?
Ethernet Ethernet interface
[Air-vlan2] port Ethernet 0/1 to Ethernet 0/4
[Airl-vlan2]
#
[Air]dis arp
Type: S-Static D-Dynamic A-Authorized
IP Address MAC Address VLAN ID Interface Aging Type
192.168.1.2 60eb-699a-e74f 2 Eth0/1 16 D
#