ip l3
ip l3 [force] Enables IP routing capabilities. | ||
Syntax Description | N/A | |
Default | L3 | |
Configuration Mode | config | |
History | 3.4.1802 | |
3.9.2000 | Added note | |
Example | switch (config) # ip l3 force | |
Related Commands | ||
Note | "no ip l3" command does not remove management VRF or management services that are configured in it. |
vrf definition
vrf definition <vrf-name> [force] Creates the VRF. | ||
Syntax Description | vrf-name | VRF session name |
force | "force" option was added on VRF creation command to bypass user confirmation for creating "mgmt" VRF | |
Default | N/A | |
Configuration Mode | config | |
History | 3.4.2008 | |
3.6.6000 | Updated the notes section | |
3.9.2000 | Added force option | |
Example | switch (config) # vrf definition my-vrf | |
Related Commands | ||
Notes |
|
routing-context vrf
routing-context vrf <vrf-name> Enters the active-context of the specified session. | ||
Syntax Description | vrf-name | VRF session name |
Default | N/A | |
Configuration Mode | config | |
History | 3.4.2008 | |
Example | switch (config) # routing-context vrf my-vrf | |
Related Commands | ||
Notes |
|
ip routing
ip routing [vrf <vrf-name>] Enables L3 forwarding between high speed interfaces. | ||
Syntax Description | vrf-name | VRF session name |
Default | N/A | |
Configuration Mode | config | |
History | 3.4.1802 | |
3.4.2008 | Added VRF parameter | |
Example | switch (config) # ip routing vrf my-vrf | |
Related Commands | ||
Notes |
|
description
description <description> no description forceAdds description for the VRF. The no form of the command removes the description of the VRF. | ||
Syntax Description | description | Text string |
force | Forces deletion (no confirmation needed if configuration exists inside the VRF) | |
Default | N/A | |
Configuration Mode | config vrf definition | |
History | 3.4.2008 | |
Example | switch (config vrf definition my-vrf) # description vrf-description | |
Related Commands | ||
Notes |
rd
rd [<ip addr>:<0-65,535> | <AS Number>:<0-4,294,967,295> | <AS Number>:<ip addr>] Adds a Route Distinguisher (RD) to the VRF configuration mode. | ||
Syntax Description | ip-addr | IPv4 address |
AS Number | Asynchronous machine number | |
Default | N/A | |
Configuration Mode | config vrf definition | |
History | 3.4.2008 | |
Example | switch (config vrf definition my-vrf) # rd 10.10.10.10:2 | |
Related Commands | ||
Notes |
|
vrf forwarding
vrf forwarding <vrf-name> Maps an interface to VRF. | ||
Syntax Description | vrf-name | VRF session name |
Default | N/A | |
Configuration Mode | config interface ethernet set as router port interface | |
History | 3.4.2008 | |
Example | switch (config interface ethernet 1/2) # vrf forwarding my-vrf | |
Related Commands | ||
Notes |
clear ip routing counters
clear ip routing counters Clears counters, related to NULL interface and dropped packets by router. | ||
Syntax Description | N/A | |
Default | N/A | |
Configuration Mode | config | |
History | 3.6.6102 | |
Example | switch (config) # clear ip routing counters | |
Related Commands | ||
Notes |
show ip routing
show ip routing [vrf <vrf-name> | all] Displays IP routing information per VRF. | ||
Syntax Description | vrf | Displays information for specific VRF |
all | Displays information on all VRFs | |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.2.0230 | |
3.4.2008 | Added VRF parameter | |
3.6.8008 | Updated example | |
3.9.0500 | Updated example | |
Example | switch (config) # show ip routing VRF Name default: switch (config) # show ip routing vrf all VRF Name default: VRF Name new: | |
Related Commands | ||
Notes | If no routing-context is specified, the “routing-context” VRF is automatically displayed. |
show ip routing counters
show ip routing [vrf <vrf-name> | all] counters Display counters, related to NULL interface and dropped packets by router. | ||
Syntax Description | N/A | |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.6.6102 | |
3.9.1300 | Updated example | |
Example | switch (config) # show ip routing counters 0 packets discarded by router 0 bytes discarded by router 0 packets to null interface 0 bytes to null interface | |
Related Commands | ||
Notes |
show routing-context vrf
show routing-context vrf Displays VRF active context. | ||
Syntax Description | N/A | |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.4.2008 | |
Example | switch (config) # show routing-context vrf | |
Related Commands | ||
Notes |
show vrf
show vrf [<vrf-name> | all] Displays VRF information. | ||
Syntax Description | all | Displays information for all VRF instances |
vrf-name | Name of VRF instance | |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.4.2008 | |
3.6.6000 | Updated example | |
3.9.1900 | Updated example | |
Example | switch (config) # show vrf my-vrf | |
Related Commands | ||
Notes | If no routing-context is specified, the “routing-context” VRF is automatically displayed. |
IP Interface
switchport
switchport [force] Configures the Ethernet interface as a regular switchport. | ||
Syntax Description | force | Forces configuration even if the interface’s admin state is enabled |
Default | N/A | |
Configuration Mode | config interface ethernet | |
History | 3.3.5200 | |
3.6.4006 | Added storm-control support | |
Example | switch (config interface ethernet 1/10)# no switchport force | |
Related Commands | ||
Notes |
|
encapsulation dot1q vlan
encapsulation dot1q vlan <vlan-id> [force] Enables L2 802.1Q encapsulation of traffic on a specified router port interface in a VLAN. | ||
Syntax Description | vlan-id | Enables L2 802.1Q encapsulation of traffic on a router port interface in a VLAN |
force | Forces admin state down | |
Default | N/A | |
Configuration Mode | config interface ethernet | |
History | 3.3.5200 | |
Example | switch (config interface ethernet 1/10)# encapsulation dot1q vlan 10 | |
Related Commands | ||
Notes |
interface ip enable
interface <vlan | ethernet | port-channel> <ifname> ip enable Enables IP forwarding on the interface. | ||
Syntax Description | vlan | VLAN type interface |
ethernet | Ethernet type interface | |
port-channel | LAG type interface | |
ifname | interface id | |
Default | Disabled | |
Configuration Mode | config | |
History | 3.9.0300 | |
Example | switch (config interface vlan 10)# ip enable | |
Related Commands | show ip interface vrf | |
Notes |
Interface VLAN
interface vlan
interface vlan <vid> Creates a VLAN interface and enters the interface VLAN configuration mode. | ||
Syntax Description | vid | VLAN ID |
Default | N/A | |
Configuration Mode | config | |
History | 3.2.0230 | |
Example | switch (config) # interface vlan 10 switch (config interface vlan 10) # | |
Related Commands | ip routing | |
Notes |
|
interface vlan no-autostate
interface vlan <vid> no-autostate Disables the VLAN interface autostate such that its operational state remains up as long as its admin state is up, even if no port in the relevant VLAN egress-list is operationally up. | ||
Syntax Description | vid | |
Default | N/A | |
Configuration Mode | config | |
History | 3.6.4006 | |
Example | switch (config) # interface vlan 10 no-autostate switch (config) # interface vlan 10-13 no-autostate | |
Related Commands | show ip interface vlan | |
Notes |
ip address
ip address <ip-address> <mask> no ip address [<ip-address> [<mask>]] Enters user-defined IPv4 address for the interface. The no form of the command removes the specified IPv4 address. If no address is specified, then all IPv4 addresses of this interface are removed. | ||
Syntax Description | ip-address | |
mask | There are two possible ways to the mask:
The mask length may be configured without a space (i.e. <ipv4-address>/<length>) | |
Default | 0.0.0.0/0 | |
Configuration Mode | config interface vlan | |
History | 3.2.0230 | |
Example | switch (config interface vlan 10) # ip address 10.10.10.10 /24 | |
Related Commands | interface vlan show interfaces vlan | |
Notes | An interface may have up to 16 IPv4 address assignments |
counters
counters no counters Enables counters on the IP interface. The no form of the command disables counters gathering on the IP interface. | ||
Syntax Description | N/A | |
Default | Disabled | |
Configuration Mode | config interface vlan | |
History | 3.2.0230 | |
Example | switch (config interface vlan 10) # counters | |
Related Commands | interface vlan show interfaces vlan | |
Notes |
|
description
description <string> Enters a description for the interface. | ||
Syntax Description | string | User defined string |
Default | “” | |
Configuration Mode | config interface vlan | |
History | 3.2.0230 | |
Example | switch (config interface vlan 10) # description my-ip-interface | |
Related Commands | interface vlan show interfaces vlan | |
Notes |
mtu
mtu <size> [force] Sets the Maximum Transmission Unit for the interface. | ||
Syntax Description | size | Range: 1500-9216 bytes |
Default | 9216 bytes | |
Configuration Mode | config interface vlan | |
History | 3.2.0230 | |
3.9.2000 | Changed default MTU size and added note | |
Example | switch (config interface vlan 10)# mtu 9216 | |
Related Commands | interface vlan show interfaces vlan | |
Notes | In switches that perform upgrade to version 3.9.2000, existing L3 interfaces will stay with MTU 1500 (or any other value that was configured). Newly created interfaces will be created with MTU 9216 (the new default). |
shutdown
shutdown Disables the interface. | ||
Syntax Description | N/A | |
Default | Enabled | |
Configuration Mode | config interface vlan | |
History | 3.1.0000 | |
Example | switch (config interface vlan 20) # shutdown | |
Related Commands | interface vlan show interfaces vlan | |
Notes |
clear counters
clear counters Clears the interface counters. | ||
Syntax Description | N/A | |
Default | N/A | |
Configuration Mode | config interface vlan | |
History | 3.2.0230 | |
Example | switch (config interface vlan 10) # clear counters | |
Related Commands | counters interface vlan show interfaces vlan | |
Notes |
ip icmp redirect
ip icmp redirect Enables ICMP redirect. | ||
Syntax Description | N/A | |
Default | Enabled | |
Configuration Mode | config interface vlan | |
History | 3.4.0010 | |
Example | switch (config interface vlan 10) # no ip icmp redirect | |
Related Commands | interface vlan show interfaces vlan | |
Notes | ICMP redirect transmits messages to hosts alerting them about the existence of more efficient routes to a specific destination |
show interfaces
show interfaces [brief] Displays interface configuration. | ||
Syntax Description | brief | Displays brief output |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.2.3000 | |
3.6.8008 | Updated example | |
Example | ||
switch (config) # show interfaces Interface lo status: Comment : Admin up : yes Link up : yes DHCP running : no ... Interface mgmt0 status: Comment : Admin up : yes Link up : yes DHCP running : yes ... Interface mgmt1 status: Comment : Admin up : yes Link up : yes DHCP running : yes (but no valid lease) ... Eth1/1: Admin state : Enabled Operational state : Up Last change in operational status: 0:22:11 ago (5 oper change) Boot delay time : 0 sec ... | ||
Related Commands | interface vlan show interfaces vlan | |
Notes | ICMP redirect transmits messages to hosts alerting them about the existence of more efficient routes to a specific destination |
show interfaces vlan
show interfaces vlan [<id>] Displays interface configuration. | ||
Syntax Description | id | Specifies the VLAN ID for which to display data |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.2.3000 | |
3.6.8008 | Updated example | |
3.9.3100 | Updated example to reflect ARP responder and ARP cache-update | |
Example | switch (config) # show interfaces vlan 100 | |
Related Commands | ||
Notes |
show ip interface
show ip interface [vrf <vrf-name>] Displays IP interfaces information. | ||
Syntax Description | vrf | VRF name |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.4.2008 | |
3.6.8008 | Updated example | |
3.9.3100 | Updated example to reflect Arp timeout, Arp responder, Disabled Arp cache-update | |
Example | switch (config) # show ip interface ethernet 1/1 … | |
Related Commands | ||
Notes |
show ip interface brief
show ip interface <vrf vrf_name> brief Displays IP interfaces' brief information. | ||
Syntax Description | vrf | VRF name |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.4.2008 | |
3.6.8008 | Updated example | |
3.9.0300 | Updated example | |
Example | ||
switch (config) # show ip interface vrf default brief ------------------------------------------------------------------------------------------------- | ||
Related Commands | ||
Notes |
show interfaces configured
show interfaces [<type> <id>] configured Displays interface configuration. | ||
Syntax Description | <type> <id> | Specifies the interface for which to display data |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.4.2008 | |
3.6.8008 | Updated example | |
Example | switch (config) # show interfaces mgmt0 configured Interface mgmt0 configuration: Comment : Enabled : yes DHCP : yes DHCP Hostname : yes Zeroconf : no IP address : Netmask : IPv6 enabled : yes Autoconf enabled: no Autoconf route : yes Autoconf privacy: no DHCPv6 enabled : yes IPv6 addresses : 0 Speed : auto Duplex : auto MTU : 1500 | |
Related Commands | ||
Notes |
show ip
show ip interface [vrf <vrf-name>] ethernet <slot>/<port> Displays information on the specified Ethernet interface in the routing-context VRF. | ||
Syntax Description | <slot>/<port> | Port number |
vrf | VRF name | |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.4.2008 | |
3.6.8008 | Updated example | |
Example | ||
switch (config) # show ip interface ethernet 1/1 Eth1/1: Admin state : Enabled Operational state : Up Last change in operational status: 0:11:14 ago (5 oper change) Boot delay time : 0 sec Description : N/A Mac address : 24:8a:07:83:30:c8 MTU : 1500 bytes (Maximum packet size 1522 bytes) Fec : auto Flow-control : receive off send off Supported speeds : 1G 10G 25G Advertised speeds : 1G 10G 25G Actual speed : 25G (auto) Auto-negotiation : Enabled Width reduction mode : Unknown DHCP client : Disabled Autoconfig : Disabled IPv4 address: 192.168.50.254/24 [primary] 192.168.60.254/24 Broadcast address: 192.168.50.255 [primary] 192.168.60.255 IPv6 address: 2000::1/64 [primary] 3000::1/64 fe80::268a:7ff:fe83:30c8/64 Arp responder : Disabled Arp timeout : 1500 seconds VRF : default Forwarding mode: inherited cut-through | ||
Related Commands | ||
Notes |
show ip interface mgmt0
show ip interface [vrf <vrf-name>] mgmt0 Displays management interface information. | ||
Syntax Description | vrf | VRF name |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.4.2008 | |
3.6.8008 | Updated example | |
Example | switch (config) # show ip interface mgmt0 Interface mgmt0 status: Comment : Admin up : yes Link up : yes DHCP running : yes IP address : 10.12.67.33 Netmask : 255.255.255.128 IPv6 enabled : yes Autoconf enabled: no Autoconf route : yes Autoconf privacy: no DHCPv6 running : yes (but no valid lease) IPv6 addresses : 1 IPv6 address: fe80::268a:7ff:fe53:3d8e/64 Speed : 1000Mb/s (auto) Duplex : full (auto) Interface type : ethernet Interface source: bridge MTU : 1500 HW address : 24:8A:07:53:3D:8E Rx: 1843422 bytes 25627 packets 0 mcast packets 0 discards 0 errors 0 overruns 0 frame | |
Related Commands | ||
Notes |
show ip interface port-channel
show ip interface [vrf <vrf-name>] port-channel <id> Displays information on the specified LAG in the routing-context VRF. | ||
Syntax Description | id | LAG ID |
vrf | VRF name | |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.4.2008 | |
3.6.8008 | Updated example | |
3.7.1000 | Updated example | |
3.9.3100 | Updated example to reflect Arp timeout, Arp responder, Arp cache-update | |
Example | ||
switch (config) # show ip interface port-channel 1 IPv4 address: | ||
Related Commands | ||
Notes |
show ip interface vrf
show ip interface vrf {<vrf-name> | all | ethernet <slot>/<port> | loopback <id> | port-channel <id> | vlan <vid>} [brief] Displays IP interface information per VRF. | ||
Syntax Description | vrf | Displays IP interface information per VRF |
all | Displays information on all VRF | |
ethernet | Displays Ethernet interface information per VRF | |
loopback | Displays loopback interface information per VRF | |
port-channel | Displays LAG information per VRF | |
vlan | Displays VLAN interface information per VRF | |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.4.2008 | |
3.6.5000 | Updated example | |
3.6.6000 | Updated example | |
3.6.8008 | Updated example | |
3.7.1000 | Updated example | |
Example | switch (config) # show ip interface vrf default port-channel 1 Po1: Admin state : Enabled Operational state : Down Description : N/A Mac address : 24:8a:07:83:30:c8 MTU : 1500 bytes (Maximum packet size 1522 bytes) lacp-individual mode: Disabled Flow-control : receive off send off Actual speed : 25G (auto) Auto-negotiation : N/A Width reduction mode: Not supported DHCP client : Disabled Autoconfig : Disabled ... | |
Related Commands | ||
Notes | If no routing-context is specified, the “routing-context” VRF is automatically displayed. |
show ip interface vrf vrf
show ip interface vrf <vrf-name> vrf Displays VRF loopback information for a specific VRF. | ||
Syntax Description | vrf-name | VRF name |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.9.0300 | |
Example | switch (config) # show ip interface vrf default | |
Related Commands | show ip interface vrf | |
Notes |
show ipv6 interface
show ipv6 interface Displays IPv6 interface information. | ||
Syntax Description | vrf | VRF name |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.6.8008 | |
Example | switch (config) # show ipv6 interface Eth1/1: VRF : default Admin state: enabled IPv6 : enabled IPv6 address: 2000::1/64 [primary] 3000::1/64 Local Link Address: fe80::268a:7ff:fe83:30c8/64 Joined group address: ff02::1:ff00:1 ND retransmit interval (usec): 1000 ND DAD : enabled Number of DAD attempts : 1 ND reachable time : 0 Po1: VRF : default Admin state: enabled IPv6 : enabled IPv6 address: 6000::1/64 [primary] 7000::1/64 ND retransmit interval (usec): 1000 ND DAD : enabled Number of DAD attempts : 1 ND reachable time : 0 vlan100: VRF : default Admin state: enabled IPv6 : enabled IPv6 address: 4000::1/64 [primary] 5000::1/64 ICMPv6 redirect : enabled ND retransmit interval (usec): 1000 ND DAD : enabled Number of DAD attempts : 1 ND reachable time : 0 loopback1: VRF : default Admin state: enabled IPv6 : enabled IPv6 address: 2001::1/128 [primary] 2002::1/128 Local Link Address: fe80::4c01:40ff:feb3:b753/64 Joined group address: ff02::1:ff00:1 | |
Related Commands | ||
Notes |
show ipv6 interface brief
show ipv6 interface [vrf <vrf-name>] brief Displays IPv6 interface information. | ||
Syntax Description | vrf | VRF name |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.6.8008 | |
Example | ||
switch (config) # show ipv6 interface brief ------------------------------------------------------------------------------------------------------------------- Interface Address/Mask Primary Address-state Admin-state Oper-state MTU VRF ------------------------------------------------------------------------------------------------------------------- mgmt0 fe80::268a:7ff:fe53:3d8e/64 valid Enabled Up 1500 default mgmt1 fe80::268a:7ff:fe53:3d8f/64 valid Enabled Up 1500 default Eth1/1 2000::1/64 primary valid Enabled Up 1500 default Eth1/1 3000::1/64 valid Eth1/1 fe80::268a:7ff:fe83:30c8/64 valid Po1 6000::1/64 primary valid Enabled Down 1500 default Po1 7000::1/64 valid vlan100 4000::1/64 primary valid Enabled Down 1500 default vlan100 5000::1/64 valid loopback1 2001::1/128 primary valid Enabled Up 1500 default loopback1 2002::1/128 valid loopback1 fe80::4c01:40ff:feb3:b753/64 valid | ||
Related Commands | ||
Notes |
show ipv6
show ipv6 interface [vrf <vrf-name>] ethernet <slot>/<port> Display IPv6 information of the specified Ethernet interface. | ||
Syntax Description | <slot>/<port> | Port number |
vrf | VRF name | |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.6.8008 | |
Example | switch (config) # show ipv6 interface ethernet 1/1 Eth1/1: VRF : default Admin state: enabled IPv6 : enabled IPv6 address: 2000::1/64 [primary] 3000::1/64 Local Link Address: fe80::268a:7ff:fe83:30c8/64 Joined group address: ff02::1:ff00:1 ND retransmit interval (usec): 1000 ND DAD : enabled Number of DAD attempts : 1 ND reachable time : 0 | |
Related Commands | ||
Notes |
show ipv6 interface loopback
show ipv6 interface [vrf <vrf-name>] loopback <id> Display IPv6 information of the specified loopback interface. | ||
Syntax Description | id | Loopback port ID |
vrf | VRF name | |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.6.8008 | |
Example | switch (config) # show ipv6 interface loopback 1 loopback1: VRF : default Admin state: enabled IPv6 : enabled IPv6 address: 2001::1/128 [primary] 2002::1/128 Local Link Address: fe80::4c01:40ff:feb3:b753/64 Joined group address: ff02::1:ff00:1 | |
Related Commands | ||
Notes |
show ipv6 interface port-channel
show ipv6 interface [vrf <vrf-name>] port-channel <id> Display IPv6 information of the specified LAG interface. | ||
Syntax Description | id | LAG ID |
vrf | VRF name | |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.6.8008 | |
Example | switch (config) # show ipv6 interface port-channel 1 Po1: VRF : default Admin state: enabled IPv6 : enabled IPv6 address: 6000::1/64 [primary] 7000::1/64 ND retransmit interval (usec): 1000 ND DAD : enabled Number of DAD attempts : 1 ND reachable time : 0 | |
Related Commands | ||
Notes |
show ipv6 interface vlan
show ipv6 interface [vrf <vrf-name>] vlan <vid> Display IPv6 information of the specified VLAN interface. | ||
Syntax Description | vid | VLAN ID |
vrf | VRF name | |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.6.8008 | |
Example | switch (config) # show ipv6 interface vlan 100 vlan100: VRF : default Admin state: enabled IPv6 : enabled IPv6 address: 4000::1/64 [primary] 5000::1/64 ICMPv6 redirect : disabled ND retransmit interval (usec): 1000 ND DAD : enabled Number of DAD attempts : 1 ND reachable time : 0 | |
Related Commands | ||
Notes |
show ipv6 interface vrf
show ipv6 interface vrf <vrf-name> Display IPv6 information of the specified VRF. | ||
Syntax Description | name | VRF name |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.6.8008 | |
Example | switch (config) # show ipv6 interface vrf default Eth1/1: VRF : default Admin state: enabled IPv6 : enabled ... Po1: VRF : default Admin state: enabled IPv6 : enabled ... vlan100: VRF : default Admin state: enabled IPv6 : enabled ... loopback1: VRF : default Admin state: enabled IPv6 : enabled ... | |
Related Commands | ||
Notes |
show ipv6 interface vrf brief
show ipv6 interface vrf <name> brief Display IPv6 information of the specified VRF in brief form. | ||
Syntax Description | name | VRF name |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.6.8008 | |
Example | ||
switch (config) # show ipv6 interface vrf default brief ----------------------------------------------------------------------------------------------------------------- | ||
Related Commands | ||
Notes |
Loopback Interface
interface loopback
interface loopback <id> Creates a loopback interface and enters the interface configuration mode. | ||
Syntax Description | id | Range: 0-31 |
Default | N/A | |
Configuration Mode | config | |
History | 3.2.3000 | |
Example | switch (config) # interface loopback 10 | |
Related Commands | ||
Notes |
|
interface vrf ip address alias
interface vrf <vrf-name> ip address alias <loopback<N> | loopback N> Copies addresses from given loopback interface. | ||
Syntax Description | vrf-name | VRF name |
loopback<N> | loopback N | Loopback interface with specified loopback number | |
Default | Disabled | |
Configuration Mode | config | |
History | 3.9.0300 | |
Example | switch (config)# interface vrf vrf-default ip address alias loopback1 | |
Related Commands | show ip interface [vrf] | |
Notes |
ip address
ip address <ip-address> <mask> Enters user-defined IPv4 address for the interface. | ||
Syntax Description | ip-address | IPv4 address |
mask | There are two possible ways to the mask:
The mask length may be configured without a space (i.e. <ipv4-address>/<length>). | |
Default | 0.0.0.0/0 | |
Configuration Mode | config | |
History | 3.3.5006 | |
Example | switch (config interface loopback 10) # ip address 10.10.10.10 /32 | |
Related Commands | interface loopback | |
Notes | An interface may have up to 16 IPv4 address assignments. |
description
description <string> Enters a description for the interface. | ||
Syntax Description | string | User defined string |
mask | There are two possible ways to the mask:
The mask length may be configured without a space (i.e. <ipv4-address>/<length>). | |
Default | “” | |
Configuration Mode | config interface loopback | |
History | 3.3.5006 | |
Example | switch (config interface loopback 10) # description my-ip-interface | |
Related Commands | interface loopback | |
Notes |
show interfaces loopback
show interface loopback <id> Displays the attribute of the interface loopback. | ||
Syntax Description | id | Range: 1-32 |
Default | N/A | |
Configuration Mode | config interface loopback | |
History | 3.2.3000 | |
3.6.8008 | Updated example | |
Example | switch (config) # show interfaces loopback 1 | |
Related Commands | interface loopback | |
Notes |
Routing and ECMP
ip route
ip route [vrf <vrf-name>] <ip-prefix> <netmask> {<next -hop-ip-address> | null0} [<distance>] Configures a static route inside VRF. | ||
Syntax Description | vrf-name | VRF session name |
ip-prefix | IP address | |
netmask | There are two possible ways to input the mask:
| |
next-hop-ip-address | IP address of the next hop | |
null0 | Sets a static drop-route | |
distance | Administrative distance assigned to route. Options include:
| |
Default | N/A | |
Configuration Mode | config | |
History | 3.1.0000 | |
3.4.2008 | Added VRF parameter | |
3.9.1600 | Removed ethernet, port-channel, and vlan parameters | |
Example | switch (config) # ip route vrf my-vrf 80.80.80.0 /24 20.20.20.2 | |
Related Commands | ||
Notes | If no routing-context is specified, the “routing-context” VRF is automatically configured. |
ip load-sharing
ip load-sharing <type> [ecmp-group-size <size> [ max-ecmp-groups <max>]] This command sets the ECMP load sharing mode. | ||
Syntax Description | type |
|
ecmp-group-size | Configures ECMP consistent hashing group size | |
max-ecmp-groups | Configures max groups of ECMP consistent hashing | |
Default | all | |
Configuration Mode | config | |
History | 3.2.0230 | |
3.5.1000 | Added flow-label parameter | |
3.7.1100 | Updated syntax | |
Example | switch (config) # ip load-sharing all switch (config) # ip load-sharing consistent [ecmp-group-size<size>] | |
Related Commands | ip route | |
Notes | If no routing-context is specified, the “routing-context” VRF is automatically configured. |
show ip route
show ip route [vrf <vrf-name] [[<ip-address> | <ip-address>/<length>] [longer-prefixes]] [connected | bgp | static] Displays routing table. | ||
Syntax Description | ip-address | Performs longest prefix match (LPM) and displays best route |
<ip-address>/<length> | Displays next hop for the specified network. If the network does not exist in routing table, it is not shown. Note: It is the user’s responsibility to calculate the mask and enter it correctly. For example:
| |
longer-prefixes | Displays the routes to the specified destination and any routes to a more specific destination. (Only available if both IP and mask are specified.) | |
connected | Displays entries for routes to networks directly connected to the switch | |
bgp | Display BGP routes | |
static | Displays entries added through CLI commands | |
Default | N/A | |
History | 3.6.5000 | Updated example |
3.6.6000 | Updated example | |
3.6.8008 | Updated example | |
3.7.1100 | Updated example | |
Example | ||
switch (config) # show ip route Flags: F: Failed to install in H/W B: BFD protected (static route) i: BFD session initializing (static route) x: protecting BFD session failed (static route) c: consistent hashing p: partial programming in H/W VRF Name default: ----------------------------------------------------------------------------------- Destination Mask Flag Gateway Interface Source AD/M ----------------------------------------------------------------------------------- default 0.0.0.0 10.12.67.126 mgmt0 DHCP 1/1 10.12.67.0 255.255.255.128 0.0.0.0 mgmt0 direct 0/0 192.168.2.0 255.255.255.0 c 0.0.0.0 vlan1 direct 0/0 | ||
Related Commands | ip route | |
Notes |
|
show ip route vrf
show ip route vrf {<vrf-name> | all} Displays routing table of VRF instance. | ||
Syntax Description | all | Displays routing tables for all VRF instances |
vrf-name | Name of VRF | |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.4.2008 | |
3.6.4070 | Added support for BFD and updated notes | |
3.6.5000 | Updated example | |
3.6.8008 | Updated example | |
Example | ||
switch (config) # show ip route vrf default Flags: F: Failed to install in H/W B: BFD protected (static route) i: BFD session initializing (static route) x: protecting BFD session failed (static route) VRF Name default: ----------------------------------------------------------------------------------- Destination Mask Flag Gateway Interface Source AD/M ----------------------------------------------------------------------------------- default 0.0.0.0 10.12.67.126 mgmt0 DHCP 1/1 10.12.67.0 255.255.255.128 0.0.0.0 mgmt0 direct 0/0 switch (config) # show ip route vrf my-vrf static Flags: F: Failed to install in H/W B: BFD protected (static route) i: BFD session initializing (static route) x: protecting BFD session failed (static route) VRF Name my-vrf: ----------------------------------------------------------------------------------- Destination Mask Flag Gateway Interface Source AD/M ----------------------------------------------------------------------------------- 80.80.80.0 255.255.255.0 20.20.20.2 vlan20 static 1/1 | ||
Related Commands | ip route | |
Notes |
|
show ip route -a
show ip route [vrf {<vrf-name> | all}] -a Displays routing table of VRF instance. | ||
Syntax Description | vrf-name | Name of VRF |
all | Displays routing tables for all VRF instances | |
-a | Displays static routes currently inactive due to the interface being down | |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.4.0000 | |
Example | ||
switch (config) # show ip route vrf my-vrf -a VRF Name: my-vrf ----------------------------- Destination Mask Gateway Interface Source Distance/Metric 90.90.90.0 255.255.255.0 1.1.1.2 NA static 1/0 | ||
Related Commands | ip route | |
Notes |
|
show ip route failed
show ip route [vrf {<vrf-name> | all}] failed Displays failed routes of VRF instance. | ||
Syntax Description | vrf-name | Name of VRF |
all | Displays routing tables for all VRF instances | |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.6.6000 | |
3.6.8008 | Updated example | |
Example | ||
switch (config) # show ip route failed Flags: F: Failed to install in H/W B: BFD protected (static route) i: BFD session initializing (static route) x: protecting BFD session failed (static route) Warning: Number of HW failed routes is 2 These routes are marked with 'f' flag VRF Name default: ----------------------------------------------------------------------------------- Destination Mask Flag Gateway Interface Source AD/M ----------------------------------------------------------------------------------- 20.20.20.0 255.255.255.0 f 0.0.0.0 vlan20 direct 0/0 80.80.80.0 255.255.255.0 f 20.20.20.2 vlan20 static 1/1 | ||
Related Commands | ip route | |
Notes |
|
show ip route static
show ip route [vrf {<vrf-name> | all}] static Displays static routes of VRF instance. | ||
Syntax Description | vrf-name | Name of VRF |
all | Displays routing tables for all VRF instances | |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.1.0000 | |
3.6.5000 | Updated example | |
3.6.8008 | Updated example | |
Example | ||
switch (config) # show ip route static Flags: F: Failed to install in H/W B: BFD protected (static route) i: BFD session initializing (static route) x: protecting BFD session failed (static route) VRF Name default: ----------------------------------------------------------------------------------- Destination Mask Flag Gateway Interface Source AD/M ----------------------------------------------------------------------------------- 80.80.80.0 255.255.255.0 20.20.20.2 vlan20 static 1/1 | ||
Related Commands | ip route | |
Notes |
|
show ip route static multicast-override
show ip route [vrf {all | <vrf-name>}] static multicast-override Displays Reverse Path Forwarding (RPF) information for a specific IPv4 multicast source configured via the command “ip mroute”. | ||
Syntax Description | vrf-name | Name of VRF |
all | Displays information for all VRFs | |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.6.6000 | |
3.6.8008 | Updated example | |
Example | ||
switch (config) # show ip route vrf default static multicast-override VRF "default": ---------------------------------------------------------------------- Destination Mask Gateway Route preference ---------------------------------------------------------------------- 50.50.50.0 255.255.255.0 20.20.20.45 1 100.100.8.0 255.255.255.0 20.20.20.9 1 100.100.100.0 255.255.255.0 20.20.20.22 7 100.100.100.100 255.255.255.255 20.20.20.9 1 | ||
Related Commands | ||
Notes |
show ip route summary
show ip route [vrf {<vrf-name> | all}] summary Displays route summary of VRF instance. | ||
Syntax Description | vrf-name | Name of VRF |
all | Displays routing tables for all VRF instances | |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.1.0000 | |
3.6.5000 | Updated example | |
Example | switch (config) # show ip route vrf my-vrf summary VRF Name: default ------------------------ Route Source Routes ------------------------ direct 3 static 0 ospf 0 bgp 0 DHCP 1 Total 4 | |
Related Commands | ip route | |
Notes |
|
show ip route interface
show ip route [vrf {<vrf-name> | all}] interface {ethernet <slot>/<port> | port-channel <lag> | vlan <vlan>} Displays routing table for specific interfaces. | ||
Syntax Description | ethernet | Displays routing table for Ethernet interfaces |
port-channel | Displays routing table for LAG interfaces | |
vlan | Displays routing table for VLAN interfaces | |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.4.2008 | Added VRF parameter |
3.6.5000 | Updated example | |
Example | ||
switch (config) # show ip route interface vlan 10 VRF Name: default Total number of entries: 1 ---------------------------------------------------------------------------- Address Type Hardware Address Interface ---------------------------------------------------------------------------- 15.0.0.2 Static ETH DE:DE:BE:EF:DE:AD vlan 10 | ||
Related Commands | ip route | |
Notes |
show ip load-sharing
show ip load-sharing Displays ECMP hash attribute. | ||
Syntax Description | N/A | |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.4.2008 | |
3.7.1100 | Updated example | |
Example | (config) # show ip load-sharing Load sharing: all Type: static (config) # show ip load-sharing Load sharing: destination-ip-port Type: consistent Operational state: stable Container size: 512 Max number of containers: 40 Used containers: 5 | |
Related Commands | ip load-sharing | |
Notes | The command’s output is different for static & consistent hashing |
Network to Media Resolution (ARP)
ip arp
ip arp [vrf <vrf-name>] <ip-address> <mac-address> Configures IP ARP properties of VRF. | ||
Syntax Description | vrf-name | VRF session name |
IP address | IPv4 address | |
mac-address | MAC address (format XX:XX:XX:XX:XX:XX) | |
Default | N/A | |
Configuration Mode | config | |
History | 3.4.2008 | |
Example | switch (config) # ip arp vrf my-vrf 20.20.20.2 aa:bb:cc:dd:ee:ff | |
Related Commands | ||
Notes | If no routing-context is specified, the “routing-context” VRF is automatically configured. |
ip arp responder
ip arp responder Initiates ARP responder functionality. | ||
Syntax Description | N/A | |
Default | N/A | |
Configuration Mode | config interface ethernet | |
History | 3.6.8008 | |
Example | switch (config interface vlan 10) # ip arp responder | |
Related Commands | ip arp | |
Note |
ip arp timeout
ip arp timeout <timeout-value> Sets the dynamic ARP cache timeout. | ||
Syntax Description | timeout-value | Time that an entry remains in the ARP cache |
Default | 1500 seconds | |
Configuration Mode | config interface ethernet | |
History | 3.2.0230 | |
3.5.1000 | Updated Note section | |
Example | switch (config interface vlan 10) # ip arp timeout 2000 | |
Related Commands | ip arp | |
Note |
|
clear ip arp
clear ip arp [vrf <vrf-name>] [interface <type> | <IP-address>] Clears the dynamic ARP cache for the specific VRF session. | ||
Syntax Description | vrf-name | VRF session name |
interface | Clears dynamic ARP entries for a interface | |
ip-address | Clears dynamic ARP entries for a specific IP address | |
Default | N/A | |
Configuration Mode | config | |
History | 3.2.0230 | |
3.4.2008 | Added VRF parameter | |
Example | switch (config) # clear ip arp vrf my-vrf | |
Related Commands | ip arp | |
Notes | If no routing-context is specified, the “routing-context” VRF is automatically configured. |
show ip arp
show ip arp [vrf [<vrf-name> | all]] [interface <type> | count | timeout] Displays all ARP information for VRF instance. | ||
Syntax Description | all | Displays all ARP information for all VRF |
interface | Displays all ARP information for specific interface | |
count | Displays number of ARPs for specific VRF | |
timeout | Displays value of ARP timeout | |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.3.3000 | |
3.4.2008 | Added VRF parameter | |
3.6.5000 | Updated example output | |
3.8.2000 | Added example of "show ip arp timeout" | |
3.9.0500 | Updated output example: "Flags" column was added | |
Example | ||
switch (config) # show ip arp Flags: VRF Name default:
| ||
Example (show ip arp timeout) | ||
switch (config)# show ip arp timeout --------------------------------------- VRF Timeout(in seconds) --------------------------------------- vrf-default 1500 | ||
Related Commands | ip arp | |
Notes | If no routing-context is specified, the “routing-context” VRF is automatically displayed. |
IP Diagnostic Tools
ping
ping [vrf <vrf-name>] [-LRUbdfnqrvVaA] [-c count] [-i interval] [-w deadline] [-p pattern] [-s packetsize] [-t ttl] [-I interface or address] [-M mtu discovery hint] [-S sndbuf] [-T timestamp option ] [-Q tos ] [hop1 ...] destination Sends ICMP echo requests to a specified host. | ||
Syntax Description | vrf | Specifies VRF instance name |
Linux Ping options | ||
Default | N/A | |
Configuration Mode | config | |
History | 3.1.0000 | |
3.4.2008 | Added VRF parameter | |
Example | ||
switch (config) # ping 172.30.2.2 PING 172.30.2.2 (172.30.2.2) 56(84) bytes of data. 64 bytes from 172.30.2.2: icmp_seq=1 ttl=64 time=0.703 ms 64 bytes from 172.30.2.2: icmp_seq=2 ttl=64 time=0.187 ms 64 bytes from 172.30.2.2: icmp_seq=3 ttl=64 time=0.166 ms 64 bytes from 172.30.2.2: icmp_seq=4 ttl=64 time=0.161 ms 64 bytes from 172.30.2.2: icmp_seq=5 ttl=64 time=0.153 ms 64 bytes from 172.30.2.2: icmp_seq=6 ttl=64 time=0.144 ms ^C --- 172.30.2.2 ping statistics --- 6 packets transmitted, 6 received, 0% packet loss, time 5004ms rtt min/avg/max/mdev = 0.144/0.252/0.703/0.202 ms | ||
Related Commands | traceroute | |
Notes | When using -I option use the interface name + interface number, for example “ping -I vlan10” |
traceroute
traceroute [vrf <vrf-name>] [-46dFITUnrAV] [-f first_ttl] [-g gate,...] [-i device] [-m max_ttl] [-N squeries] [-p port] [-t tos] [-l flow_label] [-w waittime] [-q nqueries] [-s src_addr] [-z sendwait] host [packetlen] Traces the route packets take to a destination. | ||
Syntax Description | vrf | Specifies VRF instance name |
-4 | Uses IPv4 | |
-6 | Uses IPv6 | |
-d | Enables socket level debugging | |
-F | Sets DF (“do not fragment” bit) on | |
-I | Uses ICMP ECHO for tracerouting | |
-T | Uses TCP SYN for tracerouting | |
-U | Uses UDP datagram (default) for tracerouting | |
-n | Does not resolve IP addresses to their domain names | |
-r | Bypasses the normal routing and send directly to a host on an attached network | |
-A | Performs AS path lookups in routing registries and print results directly after the corresponding addresses | |
-V | Prints version info and exit | |
-f | Starts from the first_ttl hop (instead from 1) | |
-g | Routes packets throw the specified gateway (maximum 8 for IPv4 and 127 for IPv6) | |
-i | Specifies a network interface to operate with | |
-m | Sets the max number of hops (max TTL to be reached) Default: 30 | |
-N | Sets the number of probes to be tried simultaneously Default: 16 | |
-p | Uses destination port. It is an initial value for the UDP destination port (incremented by each probe, default is 33434), for the ICMP seq number (incremented as well, default from 1), and the constant destination port for TCP tries (default is 80). | |
-t | Sets the TOS (IPv4 type of service) or TC (IPv6 traffic class) value for outgoing packets | |
-l | Uses specified flow_label for IPv6 packets | |
-w | Sets the number of seconds to wait for response to a probe (default is 5.0). Non-integer (float point) values allowed too. | |
-q | Sets the number of probes per each hop Default: 3 | |
-s | Uses source src_addr for outgoing packets | |
-z | Sets minimal time interval between probes (default is 0). If the value is more than 10, then it specifies a number in milliseconds, else it is a number of seconds (float point values allowed too). | |
Default | N/A | |
Configuration Mode | config | |
History | 3.1.0000 | |
3.4.2008 | Added VRF parameter | |
Example | ||
switch (config) # traceroute 192.168.10.70 traceroute to 192.168.10.70 (192.168.10.70), 30 hops max, 40 byte packets 1 172.30.0.1 (172.30.0.1) 3.632 ms 2.849 ms 3.544 ms 2 10.222.128.46 (10.222.128.46) 3.176 ms 3.289 ms 3.656 ms 3 10.158.128.30 (10.158.128.30) 15.331 ms 15.819 ms 16.388 ms 4 10.158.128.65 (10.158.128.65) 20.468 ms 7.893 ms 12.27 ms 5 10.7.34.115 (10.7.34.115) 16.405 ms 11.985 ms 12.264 ms 6 192.168.10.70 (192.168.10.70) 16.377 ms 16.091 ms 20.475 ms | ||
Related Commands | ||
Notes |
|
tcpdump
tcpdump [vrf <vrf-name>] [-aAdeflLnNOpqRStuUvxX] [-c count] [-C file_size] [-E algo:secret] [-F file] [-i interface] [-M secret] [-r file] [-s snaplen] [-T type] [-w file] [-W filecount] [-y datalinktype] [-Z user] [expression] Invokes standard binary, passing command line parameters straight through. Runs in foreground, printing packets as they arrive, until the user hits Ctrl+C. | ||
Syntax Description | vrf | Specifies VRF instance name |
Default | N/A | |
Configuration Mode | config | |
History | 3.1.0000 | |
3.4.2008 | Added VRF parameter | |
Example | ||
switch (config) # tcpdump ...... 09:37:38.678812 IP 192.168.10.7.ssh > 192.168.10.1.54155: P 1494624:1494800(176) ack 625 win 90 <nop,nop,timestamp 5842763 858672398> 09:37:38.678860 IP 192.168.10.7.ssh > 192.168.10.1.54155: P 1494800:1495104(304) ack 625 win 90 <nop,nop,timestamp 5842763 858672398> ... 9141 packets captured 9142 packets received by filter 0 packets dropped by kernel | ||
Related Commands | ||
Notes |
|
QoS
qos map dscp-to-pcp preserve-pcp
qos map dscp-to-pcp preserve-pcp Configures the router to copy PCP bits when transferring data from one subnet to another. | ||
Syntax Description | N/A | |
Default | Disabled | |
Configuration Mode | config | |
History | 3.3.4000 | |
Example | switch (config) # qos map dscp-to-pcp preserve-pcp | |
Related Commands | ||
Notes |
PBR
nexthop-group direct
<ip|ipv6> pbr nexthop-group <group_name> [recursive] Creates direct or recursive nexthop-group and enter to the nexthop-group CLI context. | ||
Syntax Description | group_name | Name of the desired nexthop-group |
Default | Disabled | |
Configuration Mode | config | |
History | 3.9.2000 | |
Example | switch (config) # ip pbr nexthop-group n_ggg_v4 | |
Related Commands | show pbr nexthop-group | |
Notes | Maximum number of created nexthop-groups is 1000. Name for the nexthop-group with different IP family also should be different. |
nexthop-group direct nexthop interface
<ip|ipv6> pbr nexthop-group <group_name> nexthop interface {ethernet <port/slot>|port-channel <ID> | vlan <ID>} <next-hop IP address> Adds nexthop (L3 interface and nexthop IP address) to requested nexthop-group. | ||
Syntax Description | group_name | Name of the desired nexthop-group |
port/slot | Physical port | |
port-channel <ID> | LAG | |
vlan <ID> | VLAN ID | |
Default | Disabled | |
Configuration Mode | config | |
History | 3.9.2000 | |
Example | switch (config) # ip pbr nexthop-group n_ggg_v4 nexthop interface ethernet 1/4 10.10.10.23 | |
Related Commands | show pbr nexthop-group | |
Notes | Maximum number of configured direct nexthops in one group is 128. One nexthop can be configured only once in one nexthop-group. |
nexthop-group recursive nexthop
<ip|ipv6}>pbr nexthop-group <group_name> recursive nexthop vrf <vrf_name> <next-hop IP address> Adds recursive nexthop to requested nexthop-group. | ||
Syntax Description | group_name | Name of the desired nexthop-group |
vrf_name | VRF where the desired nexthop is placed | |
next-hop IP address | IP/IPv6 address of desired nexthop | |
Default | N/A | |
Configuration Mode | config | |
History | 3.9.2000 | |
Example | switch (config) # ip pbr nexthop-group n_ggg_v4 recursive nexthop vrf default 10.10.10.23 | |
Related Commands | show pbr nexthop-group | |
Notes | Maximum number of configured recursive nexthops in one nexthop-group is 1. |
route-map
<ip|ipv6> pbr route-map <map_name> Creates route-map and enter to the route-map CLI context. | ||
Syntax Description | map_name | Name of the desired nexthop-group |
vrf_name | VRF where the desired nexthop is placed | |
next-hop IP address | IP/IPv6 address of desired nexthop | |
Default | N/A | |
Configuration Mode | config | |
History | 3.9.2000 | |
Example | switch (config) # ip pbr route-map r_ttt_v4 | |
Related Commands | show pbr route-map | |
Notes | Maximum number of configured route-maps is 200. Name for the route-map with different IP family also should be different. |
route-map sequence match rule
<ip|ipv6> pbr route-map <map_name> seq <number> match {dest-addr <IP address/prefix length>|source-addr <IP address/prefix length>|protocol <tcp|udp>|source-port <port>|dest-port<port>|dscp <value>} Create or modify sequence with new match rule. No form deletes match rule from the sequence. | ||
Syntax Description | map_name | Name of the desired nexthop-group |
number | ID of sequence inside of the route-map | |
IP address/prefix length | IPv4/IPv6 subnet to be matched on the packet | |
tcp|udp | Protocol type to be matched on the packet | |
port | Desired TCP or UDP protocol to be matched on the packet | |
value | DSCP value to be matched on the packet | |
Default | N/A | |
Configuration Mode | config | |
History | 3.9.2000 | |
Example | switch (config) # ip pbr route-map r_ttt_v4 seq 3 match dest-addr 1.2.3.0/24 source-addr 4.5.6.0/24 dest-port 656 source-port 757 protocol tcp | |
Related Commands | show pbr route-map | |
Notes | Match for source/destination IP address should be specified according to route-map IP family. Maximum number of sequences is 2000 (totally in the system). Maximum number of IPv6 sequences is 2000. Sequence field can be omitted, in this case system with generate new sequence number with index +10 for the last created. Currently DSCP value can be only {0,1,2,3,4}. |
route-map sequence nexthop-group
<ip|ipv6> pbr route-map <map_name> seq <number> set nexthop-group <group_name> Specify desired nexthop-group for sending matched traffic. | ||
Syntax Description | map_name | Name of the desired nexthop-group |
number | ID of sequence inside of the route-map | |
group_name | Name of the desired nexthop-group | |
Default | N/A | |
Configuration Mode | config | |
History | 3.9.2000 | |
Example | switch (config) # ip pbr route-map r_ttt_v4 seq 3 set nexthop-group n_ggg_v4 | |
Related Commands | show pbr route-map | |
Notes | One nexthop-group can be specified in more than one sequence. |
route-map sequence counter
<ip|ipv6> pbr route-map <map_name> seq <number> counter Request counter to be allocated and count matched packets by match rule. | ||
Syntax Description | map_name | Name of the desired nexthop-group |
number | ID of sequence inside of the route-map | |
Default | N/A | |
Configuration Mode | config | |
History | 3.9.2000 | |
Example | switch (config) # ip pbr route-map r_ttt_v4 seq 3 counter | |
Related Commands | show pbr route-map | |
Notes |
bind/unbind route-map on interface
interface {ethernet <slot/port>|port-channel <ID> | vlan <ID>} {ip|ipv6} pbr route-map <map_name> Bind requested route-map on the ingress router port. | ||
Syntax Description | map_name | Name of the desired nexthop-group |
ethernet <port/slot> | Physical port | |
port-channel <ID> | LAG | |
vlan <ID> | VLAN ID | |
Default | N/A | |
Configuration Mode | config | |
History | 3.9.2000 | |
Example | switch (config) # interface ethernet 1/2 ip pbr route-map r_ttt_v4 | |
Related Commands | show ip interface | |
Notes | In one time one IPv4 and one IPv6 route-map can be bound on interface |
show nexthop-groups
show {ip|ipv6} pbr nexthop-group brief | <name> Shows brief information about the all configured nexthop-groups. In case of specifying nexthop-group name show details. | ||
Syntax Description | name | Name of the desired nexthop-group |
Default | N/A | |
Configuration Mode | config | |
History | 3.9.2000 | |
Example | switch (config) # show ip pbr nexthop-group brief | |
Related Commands | ||
Notes | In case of any misconfiguration field “Notes” will reflect it. |
show route-maps
show {ip|ipv6} pbr route-map brief |<name> Shows brief information about the all configured route-maps. In case of specifying route-map name show details. | ||
Syntax Description | name | Name of the desired nexthop-group |
Default | N/A | |
Configuration Mode | config | |
History | 3.9.2000 | |
Example | switch (config) # show ip pbr route-map brief | |
Related Commands | ||
Notes | In case of any misconfiguration field “Notes” will reflect it. |
route-map to interface bind
show {ip|ipv6} interface {ethernet <slot/port>| port-channel <ID> | vlan <ID>} Show binding the route-map to interface and its route-map state. | ||
Syntax Description | ethernet <port/slot> | Physical port |
port-channel <ID> | LAG | |
vlan <ID> | VLAN ID | |
Default | N/A | |
Configuration Mode | config | |
History | 3.9.2000 | |
Example | switch (config) # show ip interface vlan 3 | |
Related Commands | ||
Notes | In case of any misconfiguration field “Notes” will reflect it. |
show pbr general information
show ip pbr [exceptions [nexthop-group | route-map | interface]] Shows number of configured nexthop-groups and route-maps. Also shows misconfiguration for all PBR configuration or per selected category. | ||
Syntax Description | N/A | |
Default | N/A | |
Configuration Mode | config | |
History | 3.9.2000 | |
Example | switch (config) # show ip pbr | |
Related Commands | ||
Notes | Information about the total amount of configured nexthop-groups and route-maps includes both IPv4 and IPv6 families and does not depend on the specified IP family in CLI command. |