02-15-2006 01:42 PM - edited 03-03-2019 11:45 AM
What command should I use to delete subinterfaces that are no longer required?
Thanks,
02-15-2006 01:51 PM
no int s1/0.10
will delete the int.
It will still show up in show ip int brief as well as other show outputs. This will be cleared out of the system (after deletion) once you reboot the router.
HTH
PS: please remember to rate posts!
02-15-2006 01:51 PM
Hello,
you can delete the subinterfaces with
Router(config)#no interface Serial0.1
Be aware however, that the subinterface will be still there in software in the state deleted (check with "show ip interface brief"). To get totally rid of the subinterface on a router you need to reboot the router.
Hope this helps! Please rate all posts.
Regards, Martin
02-17-2006 12:39 PM
So I guess there is no way to delete it completely without a router reload.
02-17-2006 02:16 PM
Gibu
The reason that the subinterface remains is that the running config is not a text file in which you can remove the line about the subinterface, but is a binary data structure. When you configure the subinterface a part of the binary data structure is initialized for the subinterface. When you delete the subinterface that part of the data structure is still there. This is also the reason that you can not dynamically change the type of subinterface (from multipoint to point-to-point).
I have been told that there is a workaround if you really want the old subinterface to completely go away. If you change the interface encapsulation from frame relay to hdlc the subinterface may be completely removed (along with all the other subinterfaces that have been configured on that interface). Usually that is more drastic than it is worth. So baasically you should wait till there is reason to reload the router and then the subinterface will go away.
HTH
Rick
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide