Commands For Layer 3 Forwarding

Table of Contents

6.1 Commands for Layer 3 Forwarding

6.1.1 Commands for Layer 3 Interface

6.1.1.1 bandwidth

Command: bandwidth <bandwidth>
no bandwidth
Function: Configure the interface VLAN bandwidth. The no command recovers to the default value. The interface VLAN bandwidth is used for the protocol account and not to control the port bandwidth. For instance, if the interface bandwidth is set to 1,000,000,000 for the OSPF account link cost, the change in the bandwidth can result in a change in the OSPF link cost.
Parameters:

  • <bandwidth>: bandwidth for the interface VLAN. The valid range is from 1 to 10,000,000,000 bits. Valid units include ?k, m, g?. There are no decimal numbers after conversion.

Command mode: VLAN Interface Mode
Default: The interface VLAN bandwidth is 100,000,000 bit.
Usage guide: This command can only be used in Interface VLAN Mode. The unit conversion is: 1g = 1,000m = 1,000,000k = 1,000,000,000bit.
Example: Configure the bandwidth for VLAN1 to 50,000,000 bits.

active500EM(config-if-vlan1)#bandwidth 50m

 

6.1.1.2 description

Command: description <text>
no description
Function: Configure the VLAN interface description. The no command will cancel the VLAN interface description.
Parameters:

  • <text>: VLAN interface description. The valid length should not exceed 256 characters.

Command mode: VLAN Interface Mode
Default: Do not configure.
Usage guide: Configures the VLAN interface description.
Example: Configure the VLAN interface description as ?test VLAN?.

active500EM(config)#interface vlan 2
active500EM(config-if-vlan2)#description test VLAN

 

6.1.1.3 description (VRF mode)

Command: description <text>
no description
Function: Configure the VRF description to identify the relationship of the VPN instance. The no command cancels the VPN description.
Parameters:

  • <text>: Description text. The valid range is from 1 to 256 characters.

Command mode: VRF mode
Default: Not configured.
Usage guide: VRF description information is shown under the configured VRF to supply the relative information.
Example: Configure the VRF description information as ?associate with VRF-B VRF-C?.

active500EM(config)#ip vrf VRF-A
active500EM(config-vrf)#description associate with VRF-B VRF-C

 

6.1.1.4 interface loopback

Command: interface loopback <loopback-id>
no interface loopback <loopback-id>
Function: Create a loopback interface. The no command will delete the specified loopback interface.
Parameters:

  • <loopback-id>: ID of the newly created loopback interface.

Command mode: Global Configuration Mode.
Default: There is no loopback interface.
Usage guide: IDs of the VLANs included in the loopback interfaces start from 1006. If a loopback includes a VLAN whose ID is larger than or equal to 1006, users are forbidden to configure the corresponding VLAN. If a VLAN equal to or after 1006 is already configured, such as VLAN 1006, then the loopback interface will take the first available VLAN, such as VLAN 1007.
Example: Enter the interface configuration mode of Loopback 1.

active500EM(config)#interface loopback 1
active500EM(config-if-loopback1)#

 

6.1.1.5 interface VLAN

Command: interface VLAN <VLAN-id>
no interface VLAN <VLAN-id>
Function: Create a VLAN interface (a Layer 3 interface). The no command deletes the Layer 3 interface specified.
Parameters:

  • <VLAN-id>: VLAN ID of the established VLAN. The valid range is from 1 to 4094.

Command mode: Global Mode
Default: No Layer 3 interface is configured.
Usage guide: When creating a VLAN interface (Layer 3 interface), VLANs should be configured first. For details, please refer to the VLAN chapters. When a VLAN interface (Layer 3 interface) is created with this command, the VLAN interface (Layer 3 interface) configuration mode will be entered. After the creation of the VLAN interface (Layer 3 interface), the interface VLAN command can still be used to enter Layer 3 Port Mode.
Example: Create a VLAN interface (Layer 3 interface).

active500EM(config)#interface VLAN 1
active500EM(config-if-vlan1)#

 

6.1.1.6 ip vrf

Command: ip vrf <vrf-name>
no ip vrf <vrf-name>
Function: Configure the corresponding VPN instance. The no command cancels this VPN instance.
Parameters:

  • <vrf-name>: Configure the name of the VPN instance. The valid range is from 1 to 64.

Command mode: Global Configuration Mode
Default: Not configured.
Usage guide: Configure the corresponding VPN instance. There is no default VPN instance on PE. A PE can create multiple VPN instances and the name distinguishes the capital letter and small letter. Note: VPN instances takes effect after configuring RD.
Example: Configure the corresponding VPN instance.

active500EM(config)#ip vrf VRF-A
active500EM(config-vrf)#

 

6.1.1.7 ip vrf forwarding vrfName

Command: ip vrf forwarding <vrfName> [fallback global] no ip vrf forwarding <vrfName> [fallback global] Function: Relate the interface to the specific VRF and set the fallback global option. If the interface is the ingress of the IP packet, a query binding the VRF route table will fail and the query will move to the global route table.
Parameters:

  • <vrf-name>: configure the name of the VPN instance. The valid length is less than 32 characters.
  • fallback global: query the global route table. After the fallback global option is specified and a query to the binding VRF route table fails, the query will move to the global route table.

Command mode: Interface Configuration Mode.
Default: Bind the interface to the master VRF.
Usage guide: If the interface needs to access the internet, this command can be configured and an interface (or multiple interfaces) binds a VRF. This command supports binding between the IGP record interface and VRF. The received route from the binding interface will join in the corresponding VRF route table. In default, the interface is not related with any VRF and instead belongs to the public interface.
Example: Relate the interface to the specific VRF and set the fallback global option.

active500EM(config)#interface vlan 9
active500EM(config-if-vlan9)#ip vrf forwarding vpn1 fallback global

 

6.1.1.8 no interface IFNAME

Command: no interface IFNAME
Function: Delete the interface. This relates specifically to the interface VLAN and interface loopback only.
Parameters:

  • IFNAME: interface name.

Command mode: Global Mode.
Default: None.
Usage guide: This command is used to delete the Layer 3 interface. IFNAME can match in a variety of ways, such as VLAN1, Vlan1, v1, V1, etc.
Example: Delete the interface VLAN1.

active500em(config)#no interface vlan 1

 

6.1.1.9 rd

Command: rd <ASN:nn-or-IP-address:nn>
Function: Configure VRF RD (Route Distinguish).
Parameters:

  • <ASN:nn-or-IP-address:nn>: the IP address format of the route identification label.

Command mode: VRF Mode
Default: Not configured.
Usage guide: The configured RD identifies unique VPNs which have a unique RD. The VPN instance creates the space independence and repeat address through RD. Please note that this setting is created by an AS number and an arbitrary number; RD cannot be deleted directly.
Example: Configure VRF RD (Route Distinguish).

active500EM(config)#ip vrf VRF-A
active500EM(config-vrf)#rd 300:3

 

6.1.1.10 route-target

Command: route-target {import | export | both} <rt-value>
no route-target {import | export | both} <rt-value>
Function: Configure the Route-Target of the specific VRF. The no command deletes this configuration.
Parameters:

  • import: Filter the route to determine whether the VPN route joins this VRF.
  • export: the additional Route-Target when this VRF route is sent to the outside as a VPNv4 route, it is used to filter the port.
  • both: import and export using the same Route-Target value.
  • <rt-value>: the Route-Target value.

Command mode: VRF Mode
Default: Not configured.
Usage guide: RT is a BGP extended community. It is used to filter the VPN route and implement the control of the VPN member relation of the direct-link site and the route rule. For the configured import rules, it checks the route received by all BGP and adds the matched route to BGP. It sends the route update message to the BGP private network neighbor. For the configured export rules, it checks all BGP routes stored by the BGP, adds an export route-target to these routes and sends the route update message to the public network. If the import route-target of other VRFs matches with this export route-target, it copies the route to the matched VRF and sends the route update to the BGP private network neighbor.
Example: Configure the Route-Target of the specific VRF.

active500EM(config)#ip vrf VRF-A
active500EM(config-vrf)#route-target both 100:1

 

6.1.1.11 show ip route vrf

Command: show ip route vrf <vrf-name> [bgp | datebase] Function: Show the specific route protocol.
Parameters:

  • <vrf-name>: VRF name is created by vrf <vrf-name>.
  • bgp: Import the route through BGP.
  • database: The IP database route table.

Command mode: Any Mode
Default: None.
Usage guide: Shows the specific route protocol.
Example: Show the specific route protocol.

active500EM#show ip route vrf vrf-a bgp
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 100:10 (Default for VRF test)
*> 11.1.1.0/24 11.1.1.64 0 0 200 ?
*> 20.1.1.0/24 11.1.1.64 0 0 200 ?

 

6.1.1.12 show ip vrf

Command: show ip vrf [<vrf-name>] Function: Show the related RIP instance with the VPN route/forwarding instance. The fallback global option can be shown.
Parameters:

  • <vrf-name>: specify the name of the VPN route/forwarding instance.

Command mode: Any mode.
Default: Not displayed.
Usage guide: This command exists in other route protocols. When using this command, the information of other related route protocols will be shown.
Example: Show the related RIP instance with the VRF route/forwarding instance of IPI.

active500EM#show ip vrf IPI
  VRF IPI, FIB ID 1
  Router ID: 11.1.1.1 (automatic)
  Interfaces:
  Vlan1
  VRF IPI; (id=1); RIP enabled Interfaces:
  Ethernet1/0/8
  Name     Interfaces
  IPI      Vlan1
  Name     Default RD     Interfaces
  IPI                     Vlan1

 

6.1.1.13 shutdown

Command: shutdown
no shutdown
Function: Shut down the specified VLAN interface of the switch. The no command enables the VLAN interface.
Parameters: None.
Command mode: VLAN Interface Configuration Mode.
Default: The VLAN interface is enabled.
Usage guide: If the VLAN interface of the switch is shut down, it will not send data frames. If this interface needs to obtain an IP address via BOOTP/DHCP protocol, it should be enabled.
Example: Enable the VLAN1 interface of the switch.

active500EM(config-if-vlan1)#no shutdown

 

6.1.1.14 clear ip traffic

Command: clear ip traffic
Function: Clear the IP protocol statistics.
Parameters: None.
Command mode: Admin Mode
Default: None.
Usage guide: Clear the receiving and sending packet statistics for the IP kernel protocol. This includes the receiving packet statistics, sending and dropping packets, and the sending/receiving packet error information for the IP, ICMP, TCP, and UDP protocols.
Example: Clear IP protocol statistics.

active500EM#clear ip traffic

 

6.1.1.15 clear ipv6 neighbor

Command: clear ipv6 neighbors
Function: Clear the IPv6 neighbor cache.
Parameters: None.
Command mode: Admin Mode
Default: None.
Usage guide: Clear the IPv6 neighbor cache. This command cannot clear a static neighbor.
Example: Clear the IPv6 neighbor list.

active500EM#clear ipv6 neighbors

 

6.1.1.16 debug ip icmp

Command: debug ip icmp
no debug ip icmp
Function: Debugging for receiving and sending ICMP packets.
Parameters: None.
Command mode: Admin Mode
Default: None.
Usage guide: Debugging for receiving and sending ICMP packets.
Example: Debug receiving and sending ICMP packets.

active500EM#debug ip icmp
IP ICMP: sent, type 8, src 0.0.0.0, dst 20.1.1.1
Display Description
IP ICMP: sent Send ICMP packets
type 8 Type is 8?PING request?
src 0.0.0.0 Source IPv4 address
dst 20.1.1.1 Destination IPv4 address

 

6.1.1.17 debug ip packet

Command: debug ip packet
no debug ip packet
Function: Enable the IP packet debug function. The no command disables this debug function.
Parameters: None.
Command mode: Admin Mode
Default: IP packet debugging information is disabled.
Usage guide: Displays statistics for IP packets received/sent, including source/destination address and bytes.
Example: Enable IP packet debug.

active500EM #debug ip packet
IP PACKET: sent, src 200.1.1.35, dst 224.0.0.9, size 312, proto 17, vrf 0
IP PACKET: rcvd, src 101.1.1.1, dst 224.0.0.9, size 312, proto 17, from Vlan200, vrf 0

 

6.1.1.18 debug ipv6 packet

Command: debug ipv6 packet
no debug ipv6 packet
Function: Show the IPv6 data packets receive/send debug message.
Parameters: None.
Command mode: Admin Mode
Default: None.
Usage guide: Shows the IPv6 data packets receive/send debug message.
Example: Show the IPv6 data packets receive/send debug message.

active500EM#debug ipv6 packet
IPv6 PACKET: rcvd, src <fe80::203:fff:fe01:2786>, dst <fe80::1>, size <64>,
proto <58>, from Vlan1
Displayed information Explanation
IPv6 PACKET: rcvd Receive IPv6 data report
Src <fe80::203:fff:fe01:2786> Source IPv6 address
Dst <fe80::1> Destination IPv6 address
size <64> Size of the data report
proto <58> Protocol field in the IPv6 header
from Vlan1 IPv6 data report is collected from the Layer 3 port VLAN1

 

6.1.1.19 debug ipv6 icmp

Command: debug ipv6 icmp
no debug ipv6 icmp
Function: Show the IPv6 ICMP data packets receive/send debug message.
Parameters: None.
Command mode: Admin Mode
Default: None.
Usage guide: Shows the IPv6 ICMP data packets receive/send debug message.
Example: Show the IPv6 ICMP data packets receive/send debug message.

active500EM#debug ipv6 icmp
IPv6 ICMP: sent, type <129>, src <2003::1>, dst <2003::20a:ebff:fe26:8a49> from Vlan1
Displayed information Explanation
IPv6 ICMP: sent Send IPv6 data report
type <129> Ping protocol No.
Src <2003::1> Source IPv6 address
Dst <2003::20a:ebff:fe26:8a49> Destination IPv6 address
from Vlan1 Layer 3 port being sent

 

6.1.1.20 debug ipv6 nd

Command: debug ipv6 nd [ ns | na | rs | ra | redirect ] no debug ipv6 nd [ ns | na | rs | ra | redirect ] Function: Enable the receiving and sending debug operation for specified types of IPv6 ND messages. No specification means to enable the debug for all five types of ND messages. The no command disables receiving and sending debug operations for specified types of IPv6 ND messages, while no specification means to disable that for all five types of the ND messages.
Parameters:

  • ns: neighbor solicitation.
  • na: neighbor advertisement.
  • rs: route solicitation.
  • ra: route advertisement.
  • redirect: route redirect.

Command mode: Admin Mode
Default: The receiving and sending debug operation for all five types of the IPv6 ND messages is disabled.
Usage guide: The ND protocol is an essential part of IPv6. This command can display the ND message of a specified type for troubleshooting.
Example: Enable the receiving and sending debug operations for specified types of IPv6 ND messages.

active500EM#debug ipv6 nd
IPv6 ND: rcvd, type <136>, src <fe80::203:fff:fe01:2786>, dst <fe80::203:fff:fe01:59ba>
Displayed information Explanation
IPv6 ND: rcvd Receive ND data report
type <136> ND Type
src <fe80::203:fff:fe01:2786> Source IPv6 address
dst <fe80::203:fff:fe01:59ba> Destination IPv6 address

 

6.1.1.21 debug ipv6 tunnel packet

Command: debug ipv6 tunnel packet
no debug ipv6 tunnel packet
Function: Show the tunnel data packet receive/send debug message.
Parameters: None.
Command mode: Admin Mode
Default: None.
Usage guide: Shows the tunnel data packet receive/send debug message.
Example: Show the tunnel data packet receive/send debug message.

active500EM#debug ipv6 tunnel packet
IPv6 tunnel: rcvd, type <136>, src <fe80::203:fff:fe01:2786>, dst
<fe80::203:fff:fe01:59ba>
IPv6 tunnel packet : rcvd src 178.1.1.1 dst 179.2.2.2 size 128 from tunnel1
Displayed information Explanation
IPv6 tunnel packet : rcvd Receive tunnel data report
type <136> ND type
src 178.1.1.1 Tunnel source IPv4 address
dst 179.2.2.2 Tunnel destination IPv4 address

 

6.1.1.22 description

Command: description <desc>
no description
Function: Configure the tunnel description. The no command deletes the tunnel description.
Parameters:

  • <desc>: tunnel description. The valid length can not exceed 256 characters.

Command mode: Tunnel Configuration Mode
Default: There is no tunnel description.
Usage guide: When there is more than one tunnel in the system, configuring the description will help the user with identifying the purposes of the different tunnels.
Example: Set the tunnel description as toCernet2.

active500EM(config-if-tunnel1)#description toCernet2

 

6.1.1.23 ipv6 proxy enable

Command: ipv6 proxy enable
no ipv6 proxy enable
Function: This command enables the IPv6 proxy function of the switch. The no command disables the IPv6 proxy function.
Parameters: None.
Command mode: Global Configuration Mode
Default: The IPv6 proxy function in the system is disabled.
Usage guide: IPv6 proxy function means that the board cards supporting IPV4 will only forward the IPv6 packets to the IPV6-supporting board cards in the system, implementing a process of wire-speed forwarding. The proxy provided by IPv6 board cards indirectly detects the Ipv6 hardware routing and forwarding function implemented by earlier board cards which only supported IPv4. Note: If the IPv6 proxy function is enabled, at least one ipv6 proxy enable board card supporting the IPv6 hardware forwarding should be plugged into the switch. If all board cards in the switch support IPv6 hardware forwarding, there would be no need to use the IPv6 proxy function. At present, the IPv6 proxy function does not support the proxy forwarding of IPv6 tunnel messages and multicast data messages.
Example: Enable the IPv6 proxy function.

active500EM(config)#ipv6 proxy enable

 

6.1.1.24 ip address

Command: ip address <ip-address> <mask> [secondary] no ip address [<ip-address> <mask>] [secondary] Function: Set the IP address and net mask of the switch. The no command deletes the IP address configuration.
Parameters:

  • <ip-address>: IP address. The valid format is dotted decimal notation.
  • <mask>: subnet mask. The valid format is dotted decimal notation.
  • secondary: indicates that the IP address is configured as a secondary IP address.

Command mode: VLAN Interface Configuration Mode
Default: No IP address configuration.
Usage guide: This command manually configures the IP address on the VLAN interface. If the optional parameter secondary is not configured, then it is configured as the primary IP address of the VLAN interface. If the optional parameter secondary is configured, then the IP address is the secondary IP address of the VLAN. One VLAN interface can only have one primary IP address but it can have more than one secondary IP address. Primary IP and Secondary IP can be used on SNMP/Web/Telnet management. The switch also provides BOOTP/DHCP to get an IP address.
Example: Set the IP address of the switch VLAN1 interface to 192.168.1.10/24.

active500EM(config-if-vlan1)#ip address 192.168.1.10 255.255.255.0

 

6.1.1.25 ipv6 address

Command: ipv6 address <ipv6-address|prefix-length> [eui-64] no ipv6 address <ipv6-address|prefix-length> [eui-64] Function: Configure the aggregate global unicast address, site-local address, and link-local address for the interface.
Parameters:

  • <ipv6-address>: IPv6 address prefix.
  • <prefix-length>: IPv6 address prefix. The valid length is between 3 and 128.
  • eui-64: IPv6 address is generated automatically based on the eui64 interface identifier.

Command mode: Interface Configuration Mode
Default: None.
Usage guide: The IPv6 address prefix cannot be a multicast address or any other specific IPv6 address. Layer 3 interfaces cannot configure the same address prefix. For the global unicast address, the valid length of the prefix must be greater than or equal to 3. For the site-local address and link-local address, the valid length of the prefix must be greater than or equal to 10. For interface loopback port, the valid length of the prefix must be equal to 128.
Example: Configure an IPv6 address on VLAN1 Layer 3 interface as follows: the prefix is 2001:3f:ed8::99 and the length of the prefix is 64.

active500EM(config-if-vlan1)#ipv6 address 2001:3f:ed8::99/64

 

6.1.1.26 ipv6 route

Command: ipv6 route <ipv6-prefix | prefix-length> {<ipv6address> | <interface-type interface-number> | {<ipv6address> <interface-type interface-number>} | tunnel <tunnel no> } [<precedence>] no ipv6 route <ipv6-prefix | prefix-length> {<ipv6address> | <interface-type interface-number> | {<ipv6address> <interface-type interface-number>} | tunnel <tunnel no> } [<precedence>] Function: Set the IPv6 static route.
Parameters:

  • <ipv6-prefix>: IPv6 static route destination prefix.
  • <prefix-length>: IPv6 prefix length.
  • <ipv6-address>: reachable network next hop IPv6 address.
  • <interface-type interface-number>: interface name to reach the destination.
  • <tunnel no>: output tunnel number of the tunnel route.
  • <precedence>: weight of this route. The valid range is from 1 to 255, the default is 1.

Command mode: Global Mode
Default: No IPv6 static route configured.
Usage guide: When the next hop IPv6 address is a link-local address, the interface name must be specified. When the next hop IPv6 address is a global aggregated unicast address and site-local address, and if no exit interface name is specified, the IP address of the next hop and the address of the interface of the switch must be in the same network segment. An interface name can be directly specified for the tunnel route.
Example: Configure the static route 1 with a destination address 3ffe:589:dfc::88, prefix length 64 and next hop 2001:8fd:c32::99 (the router has been configured to IPv6 address of 2001:8fd:c32::34/64).

active500EM(config)#ipv6 route 3ffe:589:dfc::88/64 2001:8fd:c32::99

Configure static route 2 with destination 3ffe:ff7:123::55, prefix length 64, next hop fe80::203:ff:89fd:46ac and exit the interface Vlan1.

active500EM(config)#ipv6 route 3ffe:ff7:123::55/64 fe80::203:ff:89fd:46ac Vlan1

 

6.1.1.27 ipv6 redirect

Command: ipv6 redirect
no ipv6 redirect
Function: Enable the IPv6 router redirect function. The no command disables the function.
Parameters: None.
Command mode: Global Configuration Mode
Default: IPv6 router redirect function is disabled.
Usage guide: If router A, router B, and node C are on the same network link, and router A forwards IPv6 packets from node C to router B, router B will continue forwarding. Router A will send an IPv6 ICMPv6 redirect message to the node C source of the packet. The message from router A serves as a notification that the best next hop of this destination address is router B. This process allows the forwarding overhead of router A to be decreased, thereby decreasing the node C network transmission delay.
Example: Enable the IPv6 router redirect function.

active500EM(config)# ipv6 redirect

 

6.1.1.28 ipv6 nd dad attempts

Command: ipv6 nd dad attempts <value>
no ipv6 nd dad attempts
Function: Set the interface number of successively sent Neighbor Solicitation Messages when setting Duplicate Address Detection.
Parameters:

  • <value>: number of successively sent Neighbor Solicitation Messages when setting Duplicate Address Detection. The valid value is between 0 and 10. The no command restores to the default value of 1.

Command mode: Interface Configuration Mode
Default: The default request message number is 1.
Usage guide: When configuring an IPv6 address, IPv6 Duplicate Address Detection must be processed. This command is used to configure the number of sent ND message Duplicate Address Detections. A value of 0 means no Duplicate Address Detection is processed.
Example: Set the interface number of successively sent Neighbor Solicitation Messages when setting Duplicate Address Detection to 3.

active500EM(config-if-vlan1)#ipv6 nd dad attempts 3

 

6.1.1.29 ipv6 nd ns-interval

Command: ipv6 nd ns-interval <seconds>
no ipv6 nd ns-interval
Function: Set the Neighbor Solicitation Message time interval for the interface.
Parameters:

  • <seconds>: the number of seconds for the sending Neighbor Solicitation Message time interval. Value must be between 1-3600 seconds. The no command restores the default value to 1 second.

Command mode: Interface Configuration Mode
Default: The default Request Message time interval is 1 second.
Usage guide: The value to be set will be included in the interface routing announcement. Generally, a very short time interval is not recommended.
Example: Set the Vlan1 interface Neighbor Solicitation Message time interval to be 8 seconds.

active500EM(config-if-vlan1)#ipv6 nd ns-interval 8

 

6.1.1.30 ipv6 nd suppress-ra

Command: ipv6 nd suppress-ra
no ipv6 nd suppress-ra
Function: Prohibit the router announcement. The no command enables the router announcement function.
Parameters: None.
Command mode: Interface Configuration Mode
Default: Router Announcement function is disabled.
Usage guide: Prohibits the router announcement.
Example: Enable the router announcement function.

active500EM(config-if-vlan1)#no ipv6 nd suppress-ra

 

6.1.1.31 ipv6 nd ra-lifetime

Command: ipv6 nd ra-lifetime <seconds>
no ipv6 nd ra-lifetime
Function: Configure the router announcement lifetime.
Parameters:

  • <seconds>: the router announcement lifetime in seconds. The valid value is between 0 and 9000.

Command mode: Interface Configuration Mode
Default: The router default announcement lifetime in seconds is 1800.
Usage guide: This command is used to configure the lifetime of the router on the Layer 3 interface. If seconds is set to 0, the interface cannot be used as the default router. Otherwise, the value should not be smaller than the sending router announcement maximum time interval. If no configuration is set, this value is equal to 3 times the sending routing announcement maximum time interval.
Example: Set the routing announcement lifetime to 100 seconds.

active500EM(config-if-vlan1)#ipv6 nd ra-lifetime 100

 

6.1.1.32 ipv6 nd min-ra-interval

Command: ipv6 nd min-ra-interval <seconds>
no ipv6 nd min-ra-interval
Function: Set the sending routing message minimum time interval.
Parameters:

  • <seconds>: number of seconds for the sending routing message minimum time interval. The valid value is between 3 and 1350 seconds.

Command mode: Interface Configuration Mode
Default: The sending routing message minimum time interval is 200 seconds.
Usage guide: The sending routing message minimum time interval cannot exceed 3/4 of the maximum time interval.
Example: Set the sending routing message minimum time interval to 10 seconds.

active500EM(config-if-vlan1)#ipv6 nd min-ra-interval 10

 

6.1.1.33 ipv6 nd max-ra-interval

Command: ipv6 nd max-ra-interval <seconds>
no ipv6 nd max-ra-interval
Function: Set the sending routing announcement maximum time interval.
Parameters:

  • <seconds>: the sending routing announcement maximum time interval time in seconds. The valid value is between 4 and 1800 seconds.

Command mode: Interface Configuration Mode
Default: 600 seconds.
Usage guide: The sending routing announcement maximum time interval should be smaller than the lifetime value routing announcement.
Example: Set the sending routing announcement maximum time interval to 20 seconds.

active500EM(config-if-vlan1)#ipv6 nd max-ra-interval 20

 

6.1.1.34 ipv6 nd prefix

Command: ipv6 nd prefix <ipv6-prefix | prefix-length>{ [<valid-lifetime> <preferred-lifetime>] [ no-autoconfig | off-link[no-autoconfig] ]}
no ipv6 nd prefix <ipv6-prefix | prefix-length>
Function: Configure the address prefix and relative parameters for the router announcement.
Parameters:

  • <ipv6-prefix>: specified announcement address prefix.
  • <prefix-length>: length of the specified announcement address.
  • <valid-lifetime>: valid lifetime of the prefix.
  • <preferred-lifetime>: preferred lifetime of the prefix. The valid lifetime must be no smaller than the preferred lifetime.
  • no-autoconfig: this prefix cannot be used to automatically configure the IPv6 address on the host for link-local.
  • off-link: prefix specified by the router announcement message is not assigned to be link-local. The node which sends data to the address, including this prefix, considers link-local as unreachable.

Command mode: Interface Configuration Mode
Default: The default value of valid-lifetime is 2,592,000 seconds (30 days). The default value of preferred-lifetime is 604,800 seconds (7 days). off-link is off by default, no-autoconfig is off.
Usage guide: This command allows control of the router announcement parameters for every IPv6 prefix. Note that the valid lifetime and preferred lifetime must be configured simultaneously.
Example: Configure the IPv6 announcement prefix to 2001:410:0:1::/64 on Vlan1. The valid lifetime of this prefix is 8,640 seconds and its preferred lifetime is 4,320 seconds.

active500EM(config-if-vlan1)#ipv6 nd prefix 2001:410:0:1::/64 8640 4320

 

6.1.1.35 ipv6 nd ra-hoplimit

Command: ipv6 nd ra-hoplimit <value>
Function: Set the sending router advertisement hoplimit.
Parameters:

  • <value>: sending router advertisement hoplimit. The valid range is from 0 to 255.

Command mode?Interface Configuration Mode
Default: The default sending router advertisement hoplimit is 64.
Usage guide: Sets the sending router advertisement hoplimit.
Example: Set the sending router advertisement hoplimit in interface VLAN1 to 128.

active500EM#(config-if-vlan1)#ipv6 nd ra-hoplimit 128

 

6.1.1.36 ipv6 nd ra-mtu

Command: ipv6 nd ra-mtu <value>
Function: Set the sending router advertisement mtu.
Parameters:

  • <value>: sending router advertisement mtu. The valid range is from 0 to 1500.

Command mode?Interface Configuration Mode
Default: The default sending router advertisement mtu is 1500.
Usage guide: Sets the sending router advertisement mtu.
Example: Set the sending router advertisement mtu in interface VLAN1 to 500.

active500EM#(config-if-vlan1)#ipv6 nd ra-mtu 500

 

6.1.1.37 ipv6 nd reachable-time

Command: ipv6 nd reachable-time <seconds>
Function: Set the sending router advertisement reachable-time.
Parameters:

  • <value>: sending router advertisement reachable-time. The valid range is from 0 to 3600000 milliseconds.

Command mode: Interface Configuration Mode
Default: The default sending router advertisement reachable-time is 30000 milliseconds.
Usage guide: Sets the sending router advertisement reachable-time.
Example: Set the sending router advertisement reachable-time in interface VLAN 1 to 100000 milliseconds.

active500EM(config-if-vlan1)#ipv6 nd reachable-time 100000

 

6.1.1.38 ipv6 nd retrans-timer

Command: ipv6 nd retrans-timer <seconds>
Function: Set the sending router advertisement retrans-timer.
Parameters:

  • <value>: sending router advertisement retrans-timer. The valid range is from 0 to 4294967295 milliseconds.

Command mode: Interface Configuration Mode
Default: The default sending router advertisement retrans-timer is 1000 milliseconds.
Usage guide: Sets the sending router advertisement retrans-timer.
Example: Set the sending router advertisement retrans-timer in interface VLAN 1 to 10000 milliseconds.

active500EM(config-if-vlan1)#ipv6 nd retrans-timer 10000

 

6.1.1.39 ipv6 nd other-config-flag

Command: ipv6 nd other-config-flag
Function: Set the flag representing whether information other than the address information will be obtained via DHCPv6.
Parameters: None.
Command mode: Interface Configuration Mode
Default: Information other than the address information won?t be obtained via DHCPv6.
Usage guide: Sets the flag representing whether information other than the address information will be obtained via DHCPv6.
Example: Set the flag so that IPv6 information, other than the address information in interface VLAN 1, will be obtained via DHCPv6.

active500EM(config-if-vlan1)#ipv6 nd other-config-flag

 

6.1.1.40 ipv6 nd managed-config-flag

Command: ipv6 nd managed-config-flag
Function: Set the flag representing whether the address information will be obtained via DHCPv6.
Parameters: None.
Command mode: Interface Configuration Mode
Default: The address information won?t be obtained via DHCPv6.
Usage guide: Set the flag representing whether the address information will be obtained via DHCPv6.
Example: Set IPv6 address information in interface VLAN 1 to be obtained via DHCPv6.

active500EM(config-if-vlan1)#ipv6 nd managed-config-flag

 

6.1.1.41 ipv6 neighbor

Command: ipv6 neighbor <ipv6-address> <hardware-address> interface <interface-type interface-name>
no ipv6 neighbor <ipv6-address>
Function: Set the static neighbor table entry.
Parameters:

  • <ipv6-address>: static neighbor IPv6 address.
  • <hardware-address>: static neighbor hardware address.
  • <interface-type>: Ethernet type.
  • <interface-name>: Layer 2 interface name.

Command mode: Interface Configuration Mode
Default: No static neighbor table entry.
Usage guide: The IPv6 address, multicast address, and local address cannot be set as the neighbor.
Example: Set the static neighbor 2001:1:2::4 on port E1/0/1 and the hardware MAC address to 00-03-0f-89-44-bc.

active500EM(config-if-vlan1)#ipv6 neighbor 2001:1:2::4 00-03-0f-89-44-bc

 

6.1.1.42 interface tunnel

Command: interface tunnel <tnl-id>
no interface tunnel <tnl-id>
Function: Create/Delete tunnel.
Parameters:

  • <tnl-id>: tunnel number.

Command mode: Global Mode
Default: None.
Usage guide: This command creates a virtual tunnel interface. Information such as the specific tunnel mode and tunnel source is shown. show ipv6 tunnel does not show the tunnel. Enter tunnel mode after creating the tunnel to specify the tunnel source and destination. The no command deletes a tunnel.
Example: Create tunnel 1.

active500EM(config)#interface tunnel 1

 

6.1.1.43 show ip interface

Command: show ip interface [<ifname> | VLAN <VLAN-id>] brief
Function: Show the configured Layer 3 interface information.
Parameters:

  • <ifname>: Interface name.
  • <VLAN-id>: VLAN ID.

Command mode: All Modes
Default: Show all configured Layer 3 interface information when no parameter is specified.
Usage guide: Shows the configured Layer 3 interface information.
Example: Show the configured Layer 3 interface information for Vlan 1.

active500EM#show ip interface VLAN1 brief
Index   Interface   IP-Address     Protocol
3001    Vlan1       192.168.2.11   up

 

6.1.1.44 show ip traffic

Command: show ip traffic
Function: Display IP packet statistics.
Parameters: None.
Command mode: Admin Mode
Default: None.
Usage guide: Display IP, ICMP, TCP, UDP packet statistics that are received/sent.
Example: Display IP packets statistics.

active500EM#show ip traffic
IP statistics:
Rcvd:  3249810 total, 3180 local destination
       0 header errors, 0 address errors
       0 unknown protocol, 0 discards
Frags: 0 reassembled, 0 timeouts
       0 fragment rcvd, 0 fragment dropped
       0 fragmented, 0 couldn't fragment, 0 fragment sent
Sent:  0 generated, 3230439 forwarded
       0 dropped, 0 no route
ICMP statistics:
Rcvd:  0 total 0 errors 0 time exceeded
       0 redirects, 0 unreachable, 0 echo, 0 echo replies
       0 mask requests, 0 mask replies, 0 quench
       0 parameter, 0 timestamp, 0 timestamp replies
Sent:  0 total 0 errors 0 time exceeded
       0 redirects, 0 unreachable, 0 echo, 0 echo replies
       0 mask requests, 0 mask replies, 0 quench
       0 parameter, 0 timestamp, 0 timestamp replies
TCP statistics:
 TcpActiveOpens 0, TcpAttemptFails 0
 TcpCurrEstab 0, TcpEstabResets 0
 TcpInErrs 0, TcpInSegs 3180
 TcpMaxConn 0, TcpOutRsts 3
 TcpOutSegs 0, TcpPassiveOpens 8
 TcpRetransSegs 0, TcpRtoAlgorithm 0
 TcpRtoMax 0, TcpRtoMin 0
UDP statics:
 UdpInDatagrams 0, UdpInErrors 0
 UdpNoPorts 0, UdpOutDatagrams 0
Displayed information Explanation
IP statistics? IP packet statistics.
Rcvd: 3249810 total, 3180 local destination, 0 header errors, 0 address errors, 0 unknown protocol, 0 discards Statistics for total packets received. Statistics include: the number of packets that reached the local destination, number of packets that have header errors, number of addresses with errors, number of unknown protocols packets, and number of packets dropped.
Frags? 0 reassembled, 0 timeouts, 0 fragment rcvd, 0 fragment dropped, 0 fragmented, 0 couldn’t fragment, 0 fragment sent Fragmentation statistics: number of packets reassembled, timeouts, fragments received, fragments discarded, packets that cannot be fragmented, and number of fragments sent.
Sent? 0 generated, 0 forwarded, 0 dropped, 0 no route Total packets sent statistics including number of local packets, forwarded packets, dropped packets, and packets with no route found.
ICMP statistics? ICMP packet statistics.
Rcvd? 0 total 0 errors 0 time exceeded, 0 redirects, 0 unreachable, 0 echo, 0 echo replies, 0 mask requests, 0 mask replies, 0 quench, 0 parameter, 0 timestamp, 0 timestamp replies Total ICMP packets received and associated information.
Sent? 0 total 0 errors 0 time exceeded, 0 redirects, 0 unreachable, 0 echo, 0 echo replies, 0 mask requests, 0 mask replies, 0 quench, 0 parameter, 0 timestamp, 0 timestamp replies Statistics of total ICMP packets sent and classified information.
TCP statistics: TCP packet statistics.
UDP statistics: UDP packet statistics.

 

6.1.1.45 show ipv6 interface

Command: show ipv6 interface {brief|<interface-name>}
Function: Show interface IPv6 parameters.
Parameters:

  • brief: the brief summarization of IPv6 status and configuration.
  • interface-name: Layer 3 interface name.

Command mode: Admin and Configuration Mode
Default: None.
Usage guide: If only the parameter of brief is specified, then all L3 information is displayed. A named Layer 3 interface can also be specified.
Example: Show interface IPv6 parameters.

active500EM#show ipv6 interface Vlan1
Vlan1 is up, line protocol is up, dev index is 2004
Device flag 0x1203(UP BROADCAST ALLMULTI MULTICAST)
IPv6 is enabled
Link-local address(es):
 fe80::203:fff:fe00:10 PERMANENT
Global unicast address(es):
 3001::1 subnet is 3001::1/64 PERMANENT
Joined group address(es):
 ff02::1
 ff02::16
 ff02::2
 ff02::5
 ff02::6
 ff02::9
 ff02::d
 ff02::1:ff00:10
 ff02::1:ff00:1
MTU is 1500 bytes
ND DAD is enabled, number of DAD attempts is 1
ND managed-config-flag is unset
ND other-config-flag is unset
ND NS interval is 1 second(s)
ND router advertisements is disabled
ND RA min-interval is 200 second(s)
ND RA max-interval is 600 second(s)
ND RA hoplimit is 64
ND RA lifetime is 1800 second(s)
ND RA MTU is 0
ND advertised reachable time is 0 millisecond(s)
ND advertised retransmit time is 0 millisecond(s)
Displayed information Explanation
Vlan1 Layer 3 interface name
[up/up] Layer 3 interface status
dev index Internal index number
fe80::203:fff:fe00:10 Automatically configured Layer 3 interface IPv6 addresses
3001::1 Configured Layer 3 interface IPv6 address

 

6.1.1.46 show ipv6 route

Command: show ipv6 route [<destination>|<destination >|<length>| database| fib [local]| nsm [connected | static | rip| ospf | bgp | isis| kernel| database]|statistics] Function: Display the IPv6 routing table.
Parameters:

  • <destination>: destination network address.
  • <destination>|<length>: destination network address and prefix length.
  • connected: directly connected to the router.
  • static: static router.
  • rip: RIP router.
  • ospf: OSPF router.
  • bgp: BGP router.
  • isis: ISIS router.
  • kernel: kernel router.
  • statistics: shows router number.
  • database: router database.

Command mode: Admin and Configuration Mode
Default: None.
Usage guide: ?show ipv6 route? only shows the IPv6 kernal routing table (routing table in tcpip). ?database? shows all routers except the local router. ?fib local? shows the local router. ?statistics? shows router statistic information.
Example: Display the IPv6 routing table.

active500EM#show ipv6 route
Codes: C - connected, L - Local, S - static, R - RIP, O - OSPF,
       I - IS-IS, B - BGP
C  ::/0 via ::, tunnel3 256
S  2001:2::/32 via fe80::789, Vlan2 1024
S  2001:2:3:4::/64 via fe80::123, Vlan2 1024
O  2002:ca60:c801:1::/64 via ::, Vlan1 1024
C  2002:ca60:c802:1::/64 via ::, tunnel49 256
C  2003:1::/64 via ::, Vlan4 256
C  2003:1::5efe:0:0/96 via ::, tunnel26 256
S  2004:1:2:3::/64 via fe80:1::88, Vlan2 1024
O  2006:1::/64 via ::, Vlan1 1024
S  2008:1:2:3::/64 via fe80::250:baff:fef2:a4f4, Vlan1 1024
C  2008:2005:5:8::/64 via ::, Ethernet0 256
S  2009:1::/64 via fe80::250:baff:fef2:a4f4, Vlan1 1024
C  2022:1::/64 via ::, Ethernet0 256
O  3333:1:2:3::/64 via fe80::20c:ceff:fe13:eac1, Vlan12 1024
C  3ffe:501:ffff:1::/64 via ::, Vlan4 256
O  3ffe:501:ffff:100::/64 via ::, Vlan5 1024
O  3ffe:3240:800d:1::/64 via ::, Vlan1 1024
O  3ffe:3240:800d:2::/64 via ::, Vlan2 1024
O  3ffe:3240:800d:10::/64 via ::, Vlan12 1024
O  3ffe:3240:800d:20::/64 via fe80::20c:ceff:fe13:eac1, Vlan12 1024
C  fe80::/64 via ::, Vlan1 256
C  fe80::5efe:0:0/96 via ::, tunnel26 256
C  ff00::/8 via ::, Vlan1 256
Displayed information Explanation
IPv6 Routing Table IPv6 routing table status.
Codes: K – kernel route, C – connected, S – static, R – RIP, O – OSPF, I – IS-IS, B – BGP > – selected route, * – FIB route, p – stale info Abbreviation for each entry.
S 2009:1::/64 via fe80::250:baff:fef2:a4f4, Vlan1 1024 The static router in FIB table, of which the destination network segment is 2002::/64. via means passing, fe80::250:baff:fef2:a4f4 is the next hop, VLAN1 is the exit interface name, 1024 is router weight.

 

6.1.1.47 show ipv6 neighbors

Command: show ipv6 neighbors [{VLAN|ethernet|tunnel } interface-number |
interface-name | address <ipv6address>] Function: Display neighbor table entry information.
Parameters:

  • {VLAN|ethernet|tunnel} interface-number|interface-name: specify the lookup based on the interface.
  • ipv6-address: specifies the lookup based on the IPv6 address. The entire neighbor table entry is displayed if no parameter is entered.

Command mode: Admin and Configuration Mode
Default: None.
Usage guide: Displays the neighbor table entry information.
Example: Display the neighbor table entry information.

active500EM#show ipv6 neighbors
IPv6 neighbor unicast items: 14, valid: 11, matched: 11, incomplete: 0, delayed: 0, manage items 5
IPv6 Address                         Hardware Addr    Interface   Port          State
2002:ca60:c801:1:250:baff:fef2:a4f4  00-50-ba-f2-a4-f4  Vlan1   Ethernet1/0/2   reachable
3ffe:3240:800d:1::100                00-03-0f-01-27-86  Vlan1   Ethernet1/0/3   reachable
3ffe:3240:800d:1::8888               00-02-01-00-00-00  Vlan1   Ethernet1/0/1   permanent
3ffe:3240:800d:1:250:baff:fef2:a4f4  00-50-ba-f2-a4-f4  Vlan1   Ethernet1/0/4   reachable
3ffe:3240:800d:2::8888               00-02-01-00-01-01  Vlan2   Ethernet1/0/16  permanent
3ffe:3240:800d:2:203:fff:fefe:3045   00-03-0f-fe-30-45  Vlan2   Ethernet1/0/15  reachable
fe80::203:fff:fe01:2786              00-03-0f-01-27-86  Vlan1   Ethernet1/0/5   reachable
fe80::203:fff:fefe:3045              00-03-0f-fe-30-45  Vlan2   Ethernet1/0/17  reachable
fe80::20c:ceff:fe13:eac1             00-0c-ce-13-ea-c1  Vlan12  Ethernet1/0/20  reachable
fe80::250:baff:fef2:a4f4             00-50-ba-f2-a4-f4  Vlan1   Ethernet1/0/6   reachable
IPv6 neighbour table: 11 entries
Displayed information Explanation
IPv6 Address Neighbor IPv6 address
Hardware Addr Neighbor MAC address
Interface Exit interface name
Port Exit interface name
State Neighbor status (reachable, stable, delay, probe, permanent, incomplete, unknown)

 

6.1.1.48 show ipv6 traffic

Command: show ipv6 traffic
Function: Display IPv6 transmission data packets statistics.
Parameters: None.
Command mode: Admin and Configuration Mode
Default: None.
Usage guide: Displays IPv6 transmission data packets statistics.
Example: Display IPv6 transmission data packets statistics.

active500EM#show ipv6 traffic
IP statistics:
Rcvd:  90 total, 17 local destination
       0 header errors, 0 address errors
       0 unknown protocol, 13 discards
Frags: 0 reassembled, 0 timeouts
       0 fragment rcvd, 0 fragment dropped
       0 fragmented, 0 couldn't fragment, 0 fragment sent
Sent:  110 generated, 0 forwarded
       0 dropped, 0 no route
ICMP statistics:
Rcvd:  0 total 0 errors 0 time exceeded
       0 redirects, 0 unreachable, 0 echo, 0 echo replies
Displayed information Explanation
IP statistics IPv6 data report statistics
Rcvd: 90 total, 17 local destination, 0 header errors, 0 address errors, 0 unknown protocol, 13 discards IPv6 received packet statistics
Frags: 0 reassembled, 0 timeouts, 0 fragment rcvd, 0 fragment dropped, 0 fragmented, 0 couldn’t fragment, 0 fragment sent IPv6 fragmenting statistics
Sent: 110 generated, 0 forwarded, 0 dropped, 0 no route IPv6 sent packet statistics

 

6.1.1.49 show ipv6 redirect

Command: show ipv6 redirect
Function: Display the IPv6 redirect switch state.
Parameters: None.
Command mode: Admin and Configuration Mode
Default: None.
Usage guide: This command can be used to check whether the IPv6 redirect function is enabled.
Example: Display the IPv6 redirect switch state.

active500EM#show ipv6 redirect
ipv6 redirect is disabled

 

6.1.1.50 show ipv6 tunnel

Command: show ipv6 tunnel [<tnl-id>] Function: Display tunnel information.
Parameters: <tnl-id>: tunnel number.
Command mode: Admin Mode
Default: None.
Usage guide: If no tunnel number is entered, then information for all tunnels is shown. If a tunnel number is entered, then detailed information of the specified tunnel is shown.
Example: Display tunnel information.

active500EM#show ipv6 tunnel
name     mode   source     destination   nexthop
tunnel3  6to4   178.1.1.1
Displayed information Explanation
Name Tunnel name
Mode Tunnel type
Source ipv4 address for the tunnel source
Destination ipv4 address for the tunnel destination
Nexthop Tunnel next hop (only applies to an ISATAP tunnel)

 

6.1.1.51 tunnel source

Command: tunnel source {<ipaddress> | <ipv6address> | <interface-name>}
no tunnel source
Function: Configure the IPv4/IPv6 address of the tunnel source.
Parameters:

  • <ipaddress>: IPv4 address of the tunnel source. The valid value is a unicast address.
  • <ipv6address>: IPv6 address of the tunnel source.
  • <interface-name>: the tunnel source address is the IPv4 address of the interface.

Command mode: Tunnel Configuration Mode.
Default: There is no IPv4/IPv6 address and tunnel source interface name.
Usage guide: Set the source IPv4/IPv6 address or specify a tunnel source address interface name to configure the tunnel.
Example: Configure the tunnel source with an IPv4 address 202.89.176.6.

active500EM(config-if-tunnel1)#tunnel source 202.89.176.6

 

6.1.1.52 tunnel destination

Command: tunnel destination <ipaddress | ipv6address>
no tunnel destination
Function: Configure the IPv4/IPv6 address of the tunnel destination.
Parameters:

  • <ipaddress>: IPv4 address of the tunnel destination.
  • <ipv6address>: IPv6 address of the tunnel destination.

Command mode: Tunnel Configuration Mode
Default: There is no tunnel destination IPv4/IPv6 address.
Usage guide: This command is used to configure the tunnel destination IPv4/IPv6 address.
Example: Configure the tunnel destination as 203.78.120.5.

active500EM(config-if-tunnel1)#tunnel destination 203.78.120.5

 

6.1.1.53 tunnel nexthop

Command: tunnel nexthop <ipaddress>
no tunnel nexthop
Function: Configure the tunnel nexthop.
Parameters:

  • <ipaddress>: tunnel nexthop IPv4 address.

Command mode: Tunnel Configuration Mode
Default: There is no tunnel nexthop IPv4 address.
Usage guide: This command is for an ISATAP tunnel. Other tunnels won?t check the nexthop configuration. Note: The ISATAP IPv4 address tunnel nexthop and tunnel source IPv4 address should be in the same segment.
Example: Configure the tunnel next hop to 178.99.156.8.

active500EM(config-if-Tunnel1)#tunnel source 178.99.156.7
active500EM(config-if-tunnel1)#tunnel nexthop 178.99.156.8
active500EM(config-if-tunnel1)#tunnel mode ipv6ip isatap

 

6.1.1.54 tunnel 6to4-relay

Command: tunnel 6to4-relay <ipdaddress>
no tunnel 6to4-relay <ipdaddress>
Function: Configure the 6to4 tunnel relay IPv4 address.
Parameters:

  • <ipdaddress>: 6to4 tunnel relay IPv4 address.

Command mode: Tunnel Configuration Mode
Default: None.
Usage guide: This command is used to configure the 6to4 tunnel relay IPv4 address. The address will not be checked when configuring the 6to4 tunnel relay. This relay IPv4 address will only be used when the packet uses the default route with a destination address not starting with a prefix of 2002.
Example: Configure the 6to4 tunnel relay IPv4 address to 178.99.156.8.

active500EM (config-if-tunnel1)#tunnel 6to4-relay 178.99.156.8

 

6.1.1.55 tunnel mode

Command: tunnel mode [[gre] | ipv6ip [6to4 | isatap]] no tunnel mode
Function: Configure Tunnel Mode.
Parameters:

  • gre: GRE tunnel.

Command mode: Tunnel Configuration Mode
Default: None.
Usage guide: In configuring tunnel mode, ipv6ip is configured indicating configuring the tunnel. ?ipv6ip 6to4? indicates it is a 6to4 tunnel and ?ipv6ip isatap? indicates it is an ISATAP tunnel.
Example: Configure tunnel mode.

active500EM(config-if-tunnel1)#tunnel mode ipv6ip
active500EM(config-if-tunnel1)#tunnel mode ipv6ip 6to4
active500EM(config-if-tunnel1)#tunnel mode ipv6ip isatap

 

6.1.2 Commands for IP Route Aggregation

6.1.2.1 ip fib optimize

Command: ip fib optimize
no ip fib optimize
Function: Enables the switch to use optimized IP route aggregation algorithm. The no command disables the optimized IP route aggregation algorithm.
Parameters: None.
Command mode: Global Mode
Default: Optimized IP route aggregation algorithm is disabled.
Usage guide: This command is used to optimize the aggregate algorithm. If the route table contains no default route, the next hop most frequently referred to will be used to construct a virtual default route to simplify the aggregation result. This method has the benefit of more effectively simplifying the aggregated result. However, while adding a virtual default route to the chip segment route table reduces CPU load, it may introduce unnecessary data streams to the next hop switches. Part of the local switch CPU load is transferred to switches of the next hop.
Example: Disable the optimized IP route aggregation algorithm.

active500EM(config)#no ip fib optimize

 

6.1.3 Commands for URPF

6.1.3.1 debug urpf

Command: debug urpf {notice | warn | error}
no debug urpf {notice | warn | error}
Function: Enable the URPF debug function to display error information if failures occur during the installation of URPF rules.
Parameters: None.
Command mode: Admin Mode
Default: None.
Usage guide: Enable the URPF debug function to display error information if failures occur during the installation of URPF rules.
Example: Enable the URPF debug function to display error information if failures occur during the installation of URPF rules.

active500EM#debug urpf error

 

6.1.3.2 ip urpf enable

Command: ip urpf enable {loose | strict} {allow-default-route}
no ip urpf enable
Function: Enable the URPF function on the port.
Parameters:

  • loose: loose mode.
  • strict?strict mode.
  • allow-default-route?allow the default route.

Command mode: Port Mode
Default: The URPF function is disabled on the port.
Usage guide: Users should specify the mode: loose or strict.
Example: Enables the URPF function on the port.

active500EM(config)#interface ethernet 1/0/4
active500EM(config-if-ethernet1/0/4)#ip urpf enable strict
active500EM(config-if-ethernet1/0/4)#interface ethernet 1/0/5
active500EM(config-if-ethernet1/0/5)#ip urpf enable loose
active500EM(config-if-ethernet1/0/5)#interface ethernet 1/0/6
active500EM(config-if-ethernet1/0/6)#ip urpf enable loose allow-default-route
active500EM(config-if-ethernet1/0/6)#interface ethernet 1/0/7
active500EM(config-if-ethernet1/0/7)#ip urpf enable strict allow-default-route

 

6.1.3.3 show urpf rule ipv4 num

Command: show urpf rule ipv4 num interface {ethernet IFNAME | IFNAME}
Function: Display the number of IPv4 rules bonded to the port.
Parameters:

  • IFNAME: specify the port name.

Command mode: Admin and Configuration Mode
Default: None.
Usage guide: Display the number of IPv4 rules bonded to the port.
Example: Display the number of IPv4 rules bonded to the port Ethernet1/0/4.

active500EM#show urpf rule ipv4 num interface ethernet 1/0/4

 

6.1.3.4 show urpf rule ipv6 num

Command: show urpf rule ipv6 num interface {ethernet IFNAME | IFNAME}
Function: Display the number of IPv6 rules bonded to the port.
Parameters:

  • IFNAME: specify the port name.

Command mode: Admin and Configuration Mode
Default: None.
Usage guide: Display the number of IPv6 rules bonded to the port.
Example: Display the number of IPv6 rules bonded to the port Ethernet1/0/4.

active500EM#show urpf rule ipv6 num interface ethernet 1/0/4

 

6.1.3.5 show urpf rule ipv4

Command: show urpf rule ipv4 interface {ethernet IFNAME | IFNAME}
Function: Display the details of the IPv4 rules bonded to the port.
Parameters:

  • IFNAME: specify the port name.

Command mode: Admin and Configuration Mode
Default: None.
Usage guide: Display the currently distributed rules.
Example: Display the details of the IPv4 rules bonded to the port Ethernet1/0/4.

active500EM#show urpf rule ipv4 interface ethernet 1/0/4

 

6.1.3.6 show urpf rule ipv6

Command: show urpf rule ipv6 interface {ethernet IFNAME | IFNAME}
Function: Display the details of the IPv6 rules bonded to the port.
Parameters:

  • IFNAME: specify the port name.

Command mode: Admin and Configuration Mode
Default: None.
Usage guide: Display the currently distributed rules.
Example: Display the details of the IPv6 rules bonded to the port ethernet1/0/4.

active500EM#show urpf rule ipv6 interface ethernet 1/0/4

 

6.1.3.7 show urpf

Command: show urpf
Function: Display which interfaces have been enabled with the URPF function.
Parameters: None.
Command mode: Admin and Configuration Mode
Default: None.
Usage guide: Displays which interfaces have been enabled with the URPF function.
Example: Display which interfaces have been enabled with the URPF function.

active500EM#show urpf

 

6.1.3.8 urpf enable

Command: urpf enable
no urpf enable
Function: Enable global URPF.
Parameters: None.
Command mode: Global Mode
Default: The URPF protocol module is disabled.
Usage guide: Enable global URPF.
Example: Enable global URPF.

active500EM(config)#urpf enable

 

6.1.4 Commands for ARP Configuration

6.1.4.1 arp

Command: arp <ip-address> <mac-address> {interface [ethernet] <portName>}
no arp <ip-address>
Function: Configures a static ARP entry. The no command deletes the ARP entry for the specified IP address.
Parameters:

  • <ip-address>: the IP address.
  • <mac-address>: the MAC address.
  • Interface: type of interface.
  • Ethernet: the Ethernet port.
  • <portName>: name of the layer2 port.

Command mode: VLAN Interface Mode
Default: No static ARP entry is set by default.
Usage guide: Static ARP entries can be configured in the switch.
Example: Configure static ARP for the interface VLAN1.

active500EM(config-if-vlan1)#arp 1.1.1.1 00-03-0f-f0-12-34 interface eth 1/0/2

 

6.1.4.2 clear arp-cache

Command: clear arp-cache
Function: Clears the ARP table.
Parameters: None.
Command mode: Admin Mode
Default: None.
Usage guide: Clears the ARP table.
Example: Clear the ARP table.

active500EM#clear arp-cache

 

6.1.4.3 clear arp traffic

Command: clear arp traffic
Function: Clears the ARP statistic message information on the switch.
Parameters: None.
Command mode: Admin Mode
Default: None.
Usage guide: Clears the ARP statistic message information on the switch.
Example: Clear the ARP statistic message information on the active500EM.

active500EM#clear arp traffic

 

6.1.4.4 debug arp

Command: debug arp {receive|send|state}
no debug arp {receive|send|state}
Function: Enables the ARP debugging Function. The no command disables this debugging Function.
Parameters:

  • receive: debugs the receiving ARP packets on the active500EM switch.
  • send: debugs the sending ARP packets on the active500EM.
  • state: debugs the ARP state changes on the active500EM switch.

Command mode: Admin Mode
Default: ARP debugging is disabled by default.
Usage guide: Display contents for ARP packets received/sent. This display includes the following information: type, source and destination address, etc.
Example: Enable ARP debugging.

active500EM#debug arp receive
%Jan 01 01:05:53 2006 IP ARP: rcvd, type REQUEST, src 172.16.1.251, 00-e0-4c-88-ad-bc, dst 172.16.1.110,
00-00-00-00-00-00 flag 0x0, pkt type 1, intf Vlan100.
%Jan 01 01:05:53 2006 IP ARP: rcvd, type REQUEST, src 172.16.1.251, 00-e0-4c-88-ad-bc, dst 172.16.1.110,
00-00-00-00-00-00 flag 0x0, pkt type 1, intf Vlan100.
e%Jan 01 01:05:53 2006 IP ARP: rcvd, type REQUEST, src 172.16.1.251, 00-e0-4c-88-ad-bc, dst 172.16.1.110,
00-00-00-00-00-00 flag 0x0, pkt type 1, intf Vlan100.
%Jan 01 01:05:53 2006 IP ARP: rcvd, type REQUEST, src 172.16.1.251, 00-e0-4c-88-ad-bc, dst 172.16.1.110,
00-00-00-00-00-00 flag 0x0, pkt type 1, intf Vlan100.

 

6.1.4.5 ip proxy-arp

Command: ip proxy-arp
no ip proxy-arp
Function: Enables proxy ARP for VLAN interfaces. The no command disables proxy ARP.
Parameters: None.
Command mode: VLAN Interface Mode
Default: Proxy ARP is disabled.
Usage guide: If the proxy ARP interface has been enabled and an ARP requests an IP address in the same IP segment of the interface but not the same physical network, the interface will reply to the ARP with its own MAC address and forward the actual packets received. Enabling this function allows switches to be physically separated but in the same IP segment. The switches communicate via the proxy ARP interface as if they were in the same physical network. Proxy ARP will check the route table to determine whether the destination network is reachable before responding to the ARP request. The ARP request will only receive a response if the destination is reachable. The ARP request matching default route will not use a proxy.
Example: Enable proxy ARP for VLAN 1.

active500EM(config-if-vlan1)#ip proxy-arp

 

6.1.4.6 l3 hashselect

Command: l3 hashselect [ <crc16l | crc16u | crc32l | crc32u | lsb >] Function: Set the L3 table (hardware ARP table) HASH algorithm.
Parameters:

  • <crc16l | crc16u | crc32l | crc32u | lsb>: a specified HASH algorithm.

Command mode: Global Configuration Mode.
Default: The system default value is crc32u.
Usage guide: HASH algorithm is a fast searching algorithm. Setting the L3 table will change the storage location and order of ARP entries in the hardware. This command is mainly used to solve ARP entry conflicts in the hardware table. When using the command to change the L3 table HASH algorithms, the new HASH algorithm will take effect after the configuration is saved and the switch is rebooted. The switch will use the primary HASH algorithms before the switch is rebooted. Since all HASH algorithms may have HASH crashes under certain circumstances, particular network configuration requires a particular HASH algorithm. The recommended order of the five HASH algorithms mentioned above is: crc32u?crc32l?crc16u?crc16l. Generally speaking, the lsb algorithm is not recommended. When using this command to change the L3 table HASH algorithms, users should refer to the network ARP configuration. This command should be used by an experienced IT administrator after analyzing the network ARP configuration.
Example: Set the HASH algorithm to crc32u.

active500EM(config-if-vlan1)#l3 hashselect crc32u

 

6.1.4.7 show arp

Command: show arp [<ipaddress>] [<vlan-id>] [<hw-addr>] [type {static | dynamic}] [count] [vrf word] Function: Displays the ARP table.
Parameters:

  • <ipaddress>: a specified IP address.
  • <vlan-id>: the entry for the identifier of the specified VLAN.
  • <hw-addr>: entry of a specified MAC address.
  • Static: static ARP entry.
  • Dynamic: dynamic ARP entry.
  • Count: displays the number of ARP entries.
  • Word: the specified vrf name.

Command mode: Admin Mode
Default: None.
Usage guide: Displays the content of the current ARP table such as IP address, MAC address, hardware type, interface name, etc.
Example: Display the ARP table.

active500EM#show arp
ARP Unicast Items: 7, Valid: 7, Matched: 7, Verifying: 0, Incomplete: 0, Failed: 0, None: 0
Address    Hardware Addr      Interface  Port            Flag
50.1.1.6   00-0a-eb-51-51-38  Vlan50     Ethernet1/0/11  Dynamic
50.1.1.9   00-00-00-00-00-09  Vlan50     Ethernet1/0/1   Static
150.1.1.2  00-00-58-fc-48-9f  Vlan150    Ethernet1/0/4   Dynamic
Displayed information Explanation
Total arp items Total number of ARP entries.
Valid ARP entry number matching the filter conditions and attributing the legality states.
Matched ARP entry number matching the filter conditions.
Verifying ARP entry number verifying the validity for ARP.
InComplete ARP entry number with an ARP request sent without an ARP reply.
Failed ARP entry number at a failed state.
None ARP entry number at begin-found state.
Address IP address of ARP entries.
Hardware Addr MAC address of ARP entries.
Interface Layer 3 interface corresponding to the ARP entry.
Port Physical (Layer2) port corresponding to the ARP entry.
Flag Describes whether the ARP entry is dynamic or static.

 

6.1.4.8 show arp traffic

Command: show arp traffic
Function: Display the APR statistic message information for the switch.
Parameters: None.
Command mode: Admin and Configuration Mode
Default: None.
Usage guide: Display statistics information of received and sent APP messages.
Example: Display the ARP statistic message information for the active500EM.

active500EM#show arp traffic
ARP statistics:
Rcvd: 10 request, 5 response
Sent: 5 request, 10 response

 


Return to Controller Wired CLI Table of Contents