vsx-sync dhcp-relay
Syntax
vsx-sync dhcp-relay
no vsx-sync dhcp-relay
Description
Enables VSX synchronization of DHCPv4 and DHCPv6 relay configurations on the primary VSX node to the secondary peer.
The
no
form of the command disables the VSX synchronization of DHCPv4 and DHCPv6 relay configurations to the secondary peer; however, it does not remove the existing DHCPv4 and DHCPv6 relay configurations from the secondary VSX peer.
Command context
config-vsx
Authority
Administrators
Examples
This example enables VSX synchronization for DHCPv4 relay configurations. The first six lines in the example show DHCPv4 relay configurations. The last two lines show how to enable VSX synchronization for the DHCP relay configurations:
switch(config)# interface 1/1/1 switch(config-if)# ip helper-address 192.168.10.1 switch(config-if)# ip helper-address 192.168.20.1 switch(config)# interface 1/1/2 switch(config-if)# ip helper-address 192.168.30.1 switch(config)# dhcp-relay option 82 switch(config)# vsx switch(config-vsx)# vsx-sync dhcp-relay
This example enables VSX synchronization for DHCPv6 relay configurations. The first seven lines in the example show DHCPv6 relay configurations. The last two lines show how to enable VSX synchronization for the DHCP relay configurations:
switch(config)# dhcpv6-relay switch(config)# interface 1/1/1 switch(config-if)# ipv6 helper-address unicast 2001:db8:0:1:: switch(config-if)# ipv6 helper-address multicast FF01::1:1000 egress 1/1/2 switch(config)# interface 1/1/2 switch(config-if)# ipv6 helper-address unicast 2001:db8:0:2:: switch(config)# dhcpv6-relay option 79 switch(config)# vsx switch(config-vsx)# vsx-sync dhcp-relay
Disabling VSX synchronization for DHCP relay configurations:
switch(config)# vsx switch(config-vsx)# no vsx-sync dhcp-relay