September 22

Basic Cisco Command Q&A

  1. What is the use of no switch port command in L3 switch?

interface GigabitEthernet1/0/10

description  router port1

no switchport

ip address 10.10.20.1 255.255.255.0

The no switchport command puts the interface in L3 mode (known as “routed port”) and makes it operate more like a router interface rather than a switch port. The ip address command assigns an IP address and network mask to the interface.

  • show ip interface brief
  • show interfaces status
  • show int g1/0/1
  • clear counters g1/0/1
  • show power inline   
  • terminal monitor  (this can show with device is connected or disconnected to the port)Disconnection:

    Mar 9 20:46:53.580 SV: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/44, changed state to down

    Mar 9 20:46:54.594 SV: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/44, changed state to down

    Connection:

    Mar 9 20:47:02.311 SV: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/44, changed state to up
    Mar 9 20:47:03.311 SV: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/44, changed state to up

Conf t
int g1/0/1
power inline never    (stop supply power)

 

 

Category: Cisco | LEAVE A COMMENT