cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
9280
Views
5
Helpful
2
Replies

Difference between Sh interface and sh run intface

deepak.nayak1
Level 1
Level 1

HI,

When I am checking sh run int gi0/0 duplex is auto, but when checked in sh int gi0/0 duplex is full.

Please let me know what is the meaning.

#sh run int Gi0/0
Building configuration...
Current configuration : 243 bytes
!
interface GigabitEthernet0/0

 ip nat outside
 ip virtual-reassembly in
 duplex auto
 speed auto

end
#sh int Gi0/0
GigabitEthernet0/0 is up, line protocol is up
  Hardware is CN Gigabit Ethernet, address is 78da.6e83.5c20 (bia 78da.6e83.5c20)
 
     reliability 255/255, txload 14/255, rxload 174/255
  Encapsulation ARPA, loopback not set
  Keepalive set (10 sec)
  Full Duplex, 100Mbps, media type is RJ45
  output flow-control is XON, input flow-control is XON
  ARP type: ARPA, ARP Timeout 04:00:00

2 Replies 2

B.kablawi90
Level 1
Level 1

Sho run interface

Displays the the configured value of the interface, so instead of making show run and find out the particular interface you can use the command #sho run interface Gi0/0 and it will tell you what is the running configuration under this port


show interface

Displays the the values and the statistics of the interface and the operational values such us IP address, MAC address, Media type, input / output error ...etc

So, you configured the port duplex auto, and shown in the show interface that it's duplex Full which mean it telling you the operational state of it. You make it auto and allowed it to negotiate with the connected port and based-on it chose to bell duplex Full

Try to configure 

interface g0/0

duplex full or duplex half

and check the result

exaclty B.kablawi90 and it applies on the speed as well.

Review Cisco Networking for a $25 gift card