Switch CLI Reference Guide

IP Commands

ip route
Command Objective

This command adds a static route. The Route defines the IP address or interface through which the destination can be reached.

Syntax

ip route <ip_addr> <ip_mask> <ucast_addr> [<short (1-254)>]

no ip route <ip_addr> <ip_mask> <ucast_addr>

Parameter Description
  • <ip-address> - Configures the IP Address of ARP Entry.

  • <mask> - Configures the subnet mask for the IP address. This is a 32-bit number which is used to divide the IP address into network address and host address.

  • ucast_addr - Defines the IP address or IP alias of the next hop that can be used to reach that network.

ModeGlobal Configuration Mode
show ip route
Command Objective

This command displays the IP routing table.

Syntax

show ip route [ { <ip_addr> [<ip_mask>] | connected | static | summary | details} ]

Parameter Description
  • <ip-address> - Displays the IP routing table for the specified destination IP Address.

  • <mask> - Displays the IP routing table for the specified prefix mask address.

  • connected - Displays the Directly Connected Network Routes.

  • static - Displays the Static Routes in the table.

  • summary - Displays the Summary of all routes.

  • details - Displays the details of all routes.

ModePrivileged EXEC Mode
arp
Command Objective

This command add a static entry in the ARP cache.

Syntax

arp <ucast_addr> <ucast_mac> { Vlan <vlan_id> }

no arp {<ucast_addr>}

Parameter Description
  • <ip-address> - Configures the IP Address of ARP Entry.

  • <macaddr> - The MAC address corresponding to the IP address above.

  • <vlan –id> - VLAN ID is a unique value that represents the specific VLAN. This value ranges between 1 and 4094.

ModeGlobal Configuration Mode
arp timeout
Command Objective

This command sets the ARP (Address Resolution Protocol) cache timeout. The arp timeout defines the time period an arp entry remains in the cache. When a new timeout value is assigned, it only affects the new arp entries. All the older entries retain their old timeout values. The timeout values can be assigned to dynamic arp entries only. All static arp entries remain unaltered by the timeout value. This value ranges between 30 and 86400 seconds.

Syntax

arp timeout <integer (30-86400)>

no arp timeout

ModeGlobal Configuration Mode
show ip arp
Command Objective

This command displays IP ARP table.

Syntax

show ip arp [ { Vlan <vlan_id> | <iftype> <ifnum> | <ipiftype>

<ifnum> | <ucast_addr> | <ucast_mac> | summary | information | statistics } ]

Parameter Description
  • Vlan <vlan-id> - VLAN ID is a unique value that represents the specific VLAN. This value ranges between 1 and 4094.

  • <interface-type> - Displays specified type of interface.

  • <ipiftype> - Displays the IP ARP information for the specified L3 Psuedo wire interface in the system.

  • <ip-address> - Displays the IP Address of ARP Entry.

  • <mac-address> - Displays the MAC Address of ARP Entry.

  • summary - Displays IP ARP Table summary.

  • information - Displays the ARP Configuration information regarding maximum retries and ARP cache timeout.

ModePrivileged EXEC Mode

Was This Article Helpful?

Help us to improve our support portal

Techdocs Article Helpful form

Techdocs Article NOT Helpful form

  • Still can't find what you're looking for? Try our knowledge base or ask our community for more help.