sh interface VS sh ip interface

datchchadatchcha Member Posts: 265
What are the differences between sh interface and sh ip interface, and when would you use them?
Arrakis

Comments

  • mobri09mobri09 Users Awaiting Email Confirmation Posts: 723
    Show interfaces gives you a detail overview of the specific interface your requesting.
    Show ip interface just gives you a quick summary of the layer 3 characteristics of the interface.
  • datchchadatchcha Member Posts: 265
    mobri09 wrote:
    Show interfaces gives you a detail overview of the specific interface your requesting.
    Show ip interface just gives you a quick summary of the layer 3 characteristics of the interface.

    Ok, great thanks.
    Arrakis
  • NetstudentNetstudent Member Posts: 1,693 ■■■□□□□□□□
    "show ip int brief" will give you a quick summary.
    "show ip int" will actually give you a rather legthy output.

    Router# show ip interface g 0/3
    GigabitEthernet0/3 is up, line protocol is up
    Internet address is 10.1.1.1/16
    Broadcast address is 255.255.255.255
    Address determined by setup command
    MTU is 1500 bytes
    Helper address is not set
    Directed broadcast forwarding is disabled
    Outgoing access list is not set
    Inbound access list is not set
    Proxy ARP is enabled
    Local Proxy ARP is disabled
    Security level is default
    Split horizon is enabled
    ICMP redirects are always sent
    ICMP unreachables are always sent
    ICMP mask replies are never sent
    IP fast switching is enabled
    IP fast switching on the same interface is disabled
    IP Flow switching is disabled
    IP CEF switching is enabled
    IP Feature Fast switching turbo vector
    IP VPN Flow CEF switching turbo vector
    IP multicast fast switching is enabled
    IP multicast distributed fast switching is disabled
    IP route-cache flags are Fast, CEF
    Router Discovery is disabled
    IP output packet accounting is disabled
    IP access violation accounting is disabled
    TCP/IP header compression is disabled
    RTP/IP header compression is disabled
    Policy routing is enabled, using route map PBR
    Network address translation is disabled
    BGP Policy Mapping is disabled
    IP Multi-Processor Forwarding is enabled <======== MPF information
    IP Input features, "PBR",
    are not supported by MPF and are IGNORED
    IP Output features, "NetFlow",
    are not supported by MPF and are IGNORED



    Router# show ip interface brief
    Interface IP-Address OK? Method Status Protocol
    Ethernet0 10.108.00.5 YES NVRAM up up
    Ethernet1 unassigned YES unset administratively down down
    Loopback0 10.108.200.5 YES NVRAM up up
    Serial0 10.108.100.5 YES NVRAM up up
    Serial1 10.108.40.5 YES NVRAM up up
    Serial2 10.108.100.5 YES manual up up
    Serial3 unassigned YES unset administratively down down


    When to use these commands can vary greatly. the show int and and show ip int tell you different things. Knowing what you are looking for is key to knowing which command to use.
    There is no place like 127.0.0.1 BUT 209.62.5.3 is my 127.0.0.1 away from 127.0.0.1!
  • datchchadatchcha Member Posts: 265
    Netstudent wrote:
    "show ip int brief" will give you a quick summary.
    "show ip int" will actually give you a rather legthy output.
    Arrakis
  • NetstudentNetstudent Member Posts: 1,693 ■■■□□□□□□□
    they key there would be whether the question was referring to a detailed IP related parameter. If it was asking for more general info like encapsulation, bandwidth, keepalives, then it was probably referring to show int. If it was wanting to know how to find an ACL then it would be show ip int. Show commands to find ACL's and to see what interfaces they are applied to are very common practice questions.
    There is no place like 127.0.0.1 BUT 209.62.5.3 is my 127.0.0.1 away from 127.0.0.1!
  • IristheangelIristheangel Mod Posts: 4,133 Mod
    @OP, Do you have a test lab or GNS3/Packet Tracer installed? You should think about getting one of those installed so you can sample the differences between all the commands
    BS, MS, and CCIE #50931
    Blog: www.network-node.com
  • LvSrikanthLakshmanLvSrikanthLakshman Member Posts: 1 ■■□□□□□□□□
    it more looks like show ip interfaces gives more information related to layer 3, like how ip is obtained, acl info, MTU size, and lots of IP based configs, split horizon etc.

    show interfaces details more on layer 2 level : like mac address, duplex, connector type, etc
Sign In or Register to comment.