Symptom
Nexus N9k 93180YC-FX3 running 10.2.4 is not able to add dhcp configuration under a layer3 interface once the vrf is change on the interface.
Original configuration:
interface Ethernet1/1
medium p2p
vrf member test ---->> original vrf
ip address x.x.x.x/x
ipv6 address x:x:x:x:x:x:x:x/x
ip dhcp relay address x.x.x.x
ip dhcp relay source-interface Vlan158
no shutdown
After changing the vrf member:
switch(config)# int eth1/1
switch(config-if)# vrf member test1
Warning: Deleted all L3 config on interface Ethernet1/1
switch(config-if)# medium p2p
switch(config-if)# ip address x.x.x.x/x
switch(config-if)# ipv6 address x:x:x:x:x:x:x:x/x
switch(config-if)# ip dhcp relay address x.x.x.x -----> commands taken but not seen on the running config
switch(config-if)# ip dhcp relay source-interface Vlan158
switch(config-if)# no shutdown
switch(config-if)# exit
switch(config)# sh run int e1/1
interface Ethernet1/1
medium p2p
vrf member test1
ip address x.x.x.x/x
ipv6 address x:x:x:x:x:x:x:x/x
no shutdown
Conditions
This occurs when we change the vrf member from the layer3 interface
Workaround
in order to recover and be able to configure back the interface with another vrf member and the DHCP commands we need to change the interface to a layer2 interface (switchport) and back to a layer3 interface (no switchport).
After this, the interface should be able to accept the commands.
Further Problem Description