OcNOS-SP : System Management Guide : System Management Configuration Guide : DHCP Relay Agent Configuration : DHCP Relay for IPv6 Configuration with different VRFs
DHCP Relay for IPv6 Configuration with different VRFs
DHCP Agent
 
#configure terminal
Enter configure mode.
(config)#feature dhcp
Enable the feature dhcp. This is enabled in default.
(config)#ipv6 dhcp relay
By default, this will be enabled. It starts the ipv6 dhcp relay service.
(config)#ip vrf vrf1
Configure vrf1
(config)#ipv6 dhcp relay address 2001::2 global
The relay address configured should be server interface address which is in default vrf , connected to DUT machine.
(config)#interface xe1
Enter interface mode.
(config-if)#ipv6 address 2001::1/64
Configure ipv6 address on the interface xe1.
(config-if)#ipv6 dhcp relay uplink
Configure relay uplink on the device connecting the server.
(config-if)#exit
Exit interface mode.
(config)#commit
Commit the candidate configuration to the running configuration
(config)#interface xe2
Enter interface mode.
(config-if)# ip vrf forwarding vrf1
Attach vrf1 under downlink interface
(config-if)#ipv6 address 2002::1/64
Configure ipv6 address on the interface xe2.
(config-if)#ipv6 dhcp relay
 
 
Relay should be configured on the interface connecting client.
(config-if)#exit
 
Exit interface mode.
(config)#commit
 
Commit the candidate configuration to the running configuration
Validation Commands
#show ipv6 dhcp relay address
VRF Name: vrf1
DHCPv6 Servers configured:
2001::2 default
#show running-config dhcp
interface eth0
ip address dhcp
!
ip vrf vrf1
ipv6 dhcp relay address 2001::1 global
interface xe2
ipv6 dhcp relay
!
interface xe1
ipv6 dhcp relay uplink
!
 
#show ipv6 dhcp relay
IPv6 DHCP relay service is Enabled.
VRF Name: vrf1
DHCPv6 Servers configured:
2001::2 default
DHCPv6 IA_PD Route injection: Disabled
Interface Uplink/Downlink
--------- -------------
Xe2 Downlink
DHCPv6 IA_PD Route injection: Disabled
Interface Uplink/Downlink
--------- -------------
Xe1 Uplink
 
 
 
Last modified date: 10/19/2023