show interface

To display the usability status of interfaces configured for IP, use the show interface command in the EXEC mode.

show interface [GigabitEthernet] |

Syntax Description

show interface

The command to display interface information.

GigabitEthernet

Shows the Gigabit Ethernet interface. Enter <0-3>.

|

Output modifier variables:

 • begin—Matched pattern. Supports up to 80 alphanumeric characters.

 • count—Count the number of lines in the output. Add number after the word count.

 • end—End with line that matches. Supports up to 80 alphanumeric characters.

 • exclude—Exclude lines that match. Supports up to 80 alphanumeric characters.

 • include—Include lines that match. Supports up to 80 alphanumeric characters.

 • last—Display last few lines of output. Add number after the word last. Supports up to 80 lines to display. Default 10.

Defaults

No default behavior or values.

Command Modes

EXEC

Usage Guidelines

In the show interface GigabitEthernet 0 output, you can find that the interface has three IPv6 addresses. The first internet address (starting with 3ffe) is the result of using stateless autoconfiguration. For this to work, you need to have IPv6 route advertisement enabled on that subnet. The next address (starting with fe80) is a link local address that does not have any scope outside the host. You always see a link local address regardless of the IPv6 autoconfiguration or DHCPv6 configuration. The last address (starting with 2001) is the result obtained from a IPv6 DHCP server.

Examples

Example 1

/admin# show interface

eth0 Link encap:Ethernet HWaddr 00:0C:29:6A:88:C4

inet addr:172.23.90.113 Bcast:172.23.90.255 Mask:255.255.255.0

inet6 addr: fe80::20c:29ff:fe6a:88c4/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:48536 errors:0 dropped:0 overruns:0 frame:0

TX packets:14152 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:6507290 (6.2 MiB) TX bytes:12443568 (11.8 MiB)

Interrupt:59 Base address:0x2000

 

lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0

inet6 addr: ::1/128 Scope:Host

UP LOOPBACK RUNNING MTU:16436 Metric:1

RX packets:1195025 errors:0 dropped:0 overruns:0 frame:0

TX packets:1195025 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:649425800 (619.3 MiB) TX bytes:649425800 (619.3 MiB)

 

sit0 Link encap:IPv6-in-IPv4

NOARP MTU:1480 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

/admin#

Example 2

/admin# show interface GigabitEthernet 0

eth0 Link encap:Ethernet HWaddr 00:0C:29:AF:DA:05

inet addr:172.23.90.116 Bcast:172.23.90.255 Mask:255.255.255.0

inet6 addr: 3ffe:302:11:2:20c:29ff:feaf:da05/64 Scope:Global

inet6 addr: fe80::20c:29ff:feaf:da05/64 Scope:Link

inet6 addr: 2001:558:ff10:870:8000:29ff:fe36:200/64 Scope:Global

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:77848 errors:0 dropped:0 overruns:0 frame:0

TX packets:23131 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:10699801 (10.2 MiB) TX bytes:3448374 (3.2 MiB)

Interrupt:59 Base address:0x2000

/admin#

Related Commands

Command

Description

interface

Configures an interface type and enters the interface configuration submode.

ipv6 address autoconfig

Enables IPv6 stateless autoconfiguration on an interface.

ipv6 address dhcp

Enables IPv6 address DHCP on an interface.