show vsx ip route

Syntax

show vsx ip route [<IP-ADDR> | <IP-ADDR>/<MASK> | unique] 
     [vrf <VRF-NAME> | all-vrfs] [vsx-peer]

Description

Displays a specified LAG or all configured LAGs along with VSX LAGs.

Command context

Operator (>) or Manager (#)

Parameters

<IP-ADDR> | <IP-ADDR>/<MASK> | unique]

Selects one of the following: <IP-ADDR>, <IP-ADDR>/<MASK> , or unique

<IP-ADDR>

Specifies the route information for an IPv4 address based on the parameters provided.

<IP-ADDR>/<MASK>

Specifies the route information for an IPv4 address and its specified subnet. Optional. Syntax: A.B.C.D/M

unique

Specifies routes that are present only on the primary switch or only on the secondary switch. The routes that are present on both the primary and secondary switch are excluded. Optional. Syntax string.

vrf <VRF-NAME> | all-vrfs

Selects the VRF name or all VRFs.

<VRF-NAME>

Shows the IPv4 route information for a specified VRF.

all-vrf

Shows the IPv4 route information for all VRFs.

[vsx-peer]

Shows the output from the VSX peer switch. If the switches do not have the VSX configuration or the ISL is down, the output from the VSX peer switch is not displayed.

Authority

Administrators

Example

Displaying IPv4 routes on a VSX switch:

switch# show vsx ip route

IPv4 Forwarding Routes

'[x/y]' denotes [distance/metric]

192.0.2.0/32, vrf default 
    via  192.0.2.1,  [1/0],  static on vsx1
    via  192.0.2.2,  [1/0],  static on vsx2

Displaying IPv4 routes on a VSX switch:

switch# show vsx ip route

IPv4 Forwarding Routes

'[x/y]' denotes [distance/metric]

192.0.2.3/24, vrf default 
    via  1/1/3,  [0/0],  connected on vsx1
    via  192.0.2.2,  [110/2],  ospf on vsx2
192.0.2.4/32, vrf default 
    via  1/1/3,  [0/0],  local on vsx1
192.0.2.5/24, vrf default 
    via  1/1/4,  [0/0],  connected on vsx1
    via  192.0.2.2,  [110/3],  ospf on vsx2
192.0.2.6/32, vrf default 
    via  1/1/4,  [0/0],  local on vsx1
192.0.2.7/32, vrf default 
    via  192.0.2.8,  [110/1],  ospf on vsx1
    via  192.0.2.1,  [110/1],  ospf on vsx1
    via  loopback1,  [0/0],  local on vsx2

Displaying IPv4 unique routes on a VSX switch:

switch# show vsx ip route unique

IPv4 Forwarding Routes

'[x/y]' denotes [distance/metric]

192.0.2.0/32, vrf default 
    via  192.0.2.2,  [1/0],  static on vsx2
192.0.2.9/32, vrf default 
    via  192.0.2.1,  [1/0],  static on vsx1

Displaying IPv4 routes on a VSX switch for 192.0.2.10:

switch# show vsx ip route 192.0.2.10

IPv4 Forwarding Routes

'[x/y]' denotes [distance/metric]

192.0.2.10/32, vrf default 
    via  192.0.2.1,  [1/0],  static on vsx1
    via  192.0.2.2,  [1/0],  static on vsx2