使用一个命令在IOS中取消配置接口


Answers:


21

在全局配置模式下,键入default interface [the interface]将在running-config中清除接口的配置。


每当您重新设置接口用途时,最安全的操作就是将其重置为默认值。这样,您可以确保仅包含所需的设置。
JelmerS,

11
请注意,如果接口上有影响端口组的命令(例如6500上的vlan映射),则默认命令会将这些命令从整个端口组中删除。
scottm32768

3
是的,这是最简单的方法。另外,您可能要关闭端口,“默认接口”对您而言不起作用。
Teun Vink

2
@TeunVink,实际上取决于默认情况下接口是否已关闭,并且将取决于IOS的平台/版本而有所不同。
YLearn
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.