how to disable a switchport?


the swps would be admin down by default, and we would use net add interface swp or swp to enable them. i would like to know how to disable those back. i tried net delete interface swp, restarted switchd, and also tried removing auto and iface commands of a particular swp under /etc/network/interfaces

2 replies

Userlevel 1
TIMTOWDI.
You can use "ifdown $interface", "ip link set $interface down" or "net add interface $interface link down" to ADMNDN an interface but restarting switchd is definitely not an option. 😉
Note that last command (net add...) permanently ADMDN the interface with a "link-down yes" in /etc/network/interfaces.

Userlevel 3
Hi Shakir, Alberto has it right. Here's the documentation on doing this: https://docs.cumulusnetworks.com/display/DOCS/Interface+Configuration+and+Management#InterfaceConfig...

Reply