With the following steps we disable interface FastEthernet 0/1
Linuxsource-switch1> enable Linuxsource-switch1# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Linuxsource-switch1(config)# interface fastEthernet 0/1 Linuxsource-switch1(config-if)# shutdown %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to administratively down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down Linuxsource-switch1(config-if)# end
As shown above, the interface is now administratively down, verify this:
Linuxsource-switch1# show interfaces fastEthernet 0/1 FastEthernet0/1 is administratively down, line protocol is down (disabled)
To enable this interface, do the following and verify it:
Linuxsource-switch1# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Linuxsource-switch1(config)# interface fastEthernet 0/1 Linuxsource-switch1(config-if)# no shutdown %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
Show interfaces status with:
Linuxsource-switch1# show ip interface brief Interface IP-Address OK? Method Status Protocol FastEthernet0/1 unassigned YES manual up up