Rename network interface ?
Posted: 07 Jun 2024 09:55
General AOS6/8 question as I'm inheriting a brownfield environment where everything was done manually and I'm trying to normalize things. Specifically I have a wide variety of interface names being used like :
(not to mention all of the misspellings - sigh)
I can't seem to find any methods for renaming the interfaces. If I use the same IP with a different name I'll get a conflict. The two options I've thought of so far are :
Code: Select all
ip interface "Administration" address x.y.z.a mask 255.255.255.0 vlan 1 ifindex 1
ip interface "administration" address x.y.z.a mask 255.255.255.0 vlan 1 ifindex 1
ip interface "admin" address x.y.z.a mask 255.255.255.0 vlan 1 ifindex 1
ip interface "management" address x.y.z.a mask 255.255.255.0 vlan 1 ifindex 1
ip interface "MGMT" address x.y.z.a mask 255.255.255.0 vlan 1 ifindex 1
I can't seem to find any methods for renaming the interfaces. If I use the same IP with a different name I'll get a conflict. The two options I've thought of so far are :
- Manually modifying the configuration file and rebooting (hard to find maintenance windows for reboots)
- Adding a new IP address, connecting via the new address, doing a no ip on old conf and then replacing, reconnecting and deleting the new IP (tedious but looks fairly safe)