Description

This article provides information on how to verify the IP address of an interface via the shell on EX switches.

Symptoms

  • How to verify the interface MTU, MAC address, and IP address via the shell mode. At times, this information is helpful during troubleshooting.
  • The show interface terse command is issued in the operational mode to check the IP address that is assigned to the interface/interfaces of EX switches.

Solution

The following commands are issued in the shell mode of the switch:
 

  • user@switch > start shell
  • user@switch % ifconfig <interface_name> to obtain the information of any specific interface.
  • user@switch% ifconfig to obtain the information of all the interfaces.                 

The following example shows the MAC address, MTU, and IP address, which are configured for the me0 interface:
user@switch% ifconfig me0

me0: encaps: ether; framing: ether
flags=0x3/0x8000
curr media: i802 0:19:e2:57:e9:bf > MAC address
me0.0: flags=0x8000
inet primary mtu 1500 local=10.9.221.45 dest=10.9.221.0/24 bcast=10.9.221.255 > MTU and IP address

Modification History

2020-04-15: Article reviewed for accuracy. No changes made. Article is correct and complete.