You can remove complete interface configuration of Cisco router easily by using default interface configuration command. Default interface configuration command
For example, if you have configured Frame Relay with sub interfaces…
Router#interface Serial0/0no ip addressencapsulation frame-relayload-interval 60Router#interface Serial0/0.10 point-to-pointbandwidth 2000ip address 10.10.10.1 255.255.255.252ip load-sharing per-packetip ospf cost 50 frame-relay interface-dlci 100And now erase all interface-specific configuration …Router(config)#default interface s0/0Building configuration...Interface Serial0/0 set to default configuration
Router(config)#
Now recheck the main and sub interface configuration by using show ip interface brief,
You can find the main interface has no IP address and the sub interface is deleted.Router#show ip interfaces brief InterfaceIP-Address OK? Method Status Protocol ... non-relevant lines deleted ...Serial0/0/0 unassigned YES TFTP up upSerial0/0/0.10 unassigned YES manual deleted down