Ruijie RG-S29 Series Command Reference Manual

Ruijie RG-S29 Series Command Reference Manual

Rgos command reference
Table of Contents

Advertisement

Quick Links

RG-S29 Series Switch
RGOS Command Reference, Release 11.4(1)B12

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RG-S29 Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Ruijie RG-S29 Series

  • Page 1 RG-S29 Series Switch RGOS Command Reference, Release 11.4(1)B12...
  • Page 2 This document is provided “as is”. The contents of this document are subject to change without any notice. Please obtain the latest information through the Ruijie Networks website. Ruijie Networks endeavors to ensure content accuracy and will not shoulder any responsibility for losses and damages caused due to content omissions, inaccuracies or errors.
  • Page 3 Thank you for using our products. This manual matches the RGOS Release 11.4(1)B12. Audience This manual is intended for:  Network engineers  Technical support and servicing engineers  Network administrators Obtaining Technical Assistance  Ruijie Networks Website: https://www.ruijienetworks.com/  Technical Support Website: https://ruijienetworks.com/support  http://caseportal.ruijienetworks.com Case Portal:  Community: http://community.ruijienetworks.com ...
  • Page 4 · [ x | y | z ] Optional alternative keywords are grouped in brackets and separated by vertical bars. Symbols Means reader take note. Notes contain helpful suggestions or references. Means reader be careful. In this situation, you might do something that could result in equipment damage or loss of data.
  • Page 5 System Configuration Commands 1. Command Line Interface Commands 2. Basic Configuration Management Commands 3. Line Commands 4. File System Commands 5. SYS Commands 6. Time Range Commands 7. HTTP Service Commands 8. Syslog Commands 9. CWMP Commands 10. CA-MONITOR Commands 11.
  • Page 6 The mode of the command represented by the alias is the command mode existing in the current system. In the global configuration mode, you can use the alias ? command to list all the modes under which you can configure alias for commands. Ruijie(config)# alias ? aaa-gs AAA server group mode...
  • Page 7 The following example uses def-route to represent the default route setting of ip route 0.0.0.0 0.0.0.0 Examples 192.168.1.1 in the global configuration mode: Ruijie# configure terminal Ruijie(config)# alias config def-route ip route 0.0.0.0 0.0.0.0 192.168.1.1 Ruijie(config)#def-route? *def-route="ip route 0.0.0.0 0.0.0.0 192.168.1.1" Ruijie(config)# end...
  • Page 8 You can access the CLI window as level-1 user to usef the reload command: Ruijie>reload ? LINE Reason for reload <cr> You can use the key word all to attribute all sub-commands of reload to level-1 users: Ruijie(config)# privilege exec all level 1 reload...
  • Page 9: Show Aliases

    Privileged EXEC mode. Mode Usage Guide This command displays the configuration of all aliases if no command mode is input. Configuration The following example displays the command alias in privileged EXEC mode: Ruijie#show aliases exec Examples exec mode alias: help ping show...
  • Page 10 Command Reference Command Line Interface Commands Platform N/A. Description...
  • Page 11: Banner Exec

    Telnet Client session creation. The <1-99> command is used to restore the session. If the session is created, you can use the show session command to display the session. Configuration The following example restores the suspended Telnet Client session. Ruijie# 1 Examples Related Command...
  • Page 12 The messages are for all lines. If you want to disable display the EXEC message on a specific line, configure the no exec-banner command on the line. The following example configures a welcome message. Configuration Ruijie(config)# banner exec $ Welcome $ Examples Related Command...
  • Page 13: Banner Login

    This command sets the login banner message, which is displayed at login. The system discards all the characters next to the terminating symbol. Configuration The following example configures a login banner. Ruijie(config)# banner login $ enter your password $ Examples Related Command...
  • Page 14: Banner Motd

    Mode This command sets the MOTD, which is displayed at login. The letters that follow the separator will Usage Guide be discarded. Configuration The following example configures the MOTD. Ruijie(config)# banner motd $ hello,world $ Examples Related Command Description Commands...
  • Page 15 The system discards all the characters next to the terminating symbol. When authentication times out, the banner prompt-timeout message is displayed. The following example configures the prompt-timeout message to notify timeout. Configuration Ruijie(config)# banner exec $ authentication timeout $ Examples Related Command...
  • Page 16 Privileged EXEC mode Mode Usage Guide The startup configuration file name follows a slash ''/'', for example, Flash:/ruijie.text. The startup configuration file name consists of a path and a file name. The path is mandatory. Otherwise, configurations cannot be saved by using the write command.
  • Page 17 Parameter Description Description Defaults Command Privileged EXEC mode Mode Usage Guide Configuration The following example enters global configuration mode. Ruijie# configure Examples Ruijie(config)# Related Command Description Commands Platform Description 2.10 disable Use this command to switch from privileged EXEC mode to user EXEC mode or lower the privilege level.
  • Page 18 The privilege level that follows the disable command must be lower than the current level. Configuration The following example lowers the current privilege level of the device to level 10. Ruijie# disable 10 Examples Related Command...
  • Page 19 Specifies source port for Telnet client. Defaults User EXEC mode/Privileged EXEC mode/Interface configuration mode Command Mode Usage Guide Configuration The following example configures destination IPv6 address 2AAA:BBBB::CCCC. Ruijie(config)# do telnet 2AAA:BBBB::CCCC Examples Related Command Description Commands Platform Description 2.13 enable Use this command to enter privileged EXEC mode.
  • Page 20: Enable Password

    Use this command to enter privileged EXEX mode from User EXEC mode. You can raise or lower the Usage Guide privilege level by specifying the privilege level. Configuration The following example lowers the privilege level to 14: Ruijie> enable 14 Examples Password: Related Command...
  • Page 21 EXEC mode. A lost password that has been encrypted using any method cannot be restored. In this case, you can only reconfigure the device password. Configuration The following example configures the password as pw10. Ruijie(config)# enable password pw10 Examples Related Command...
  • Page 22 Command Reference Basic Configuration Management Commands Configuration The following example configures the security password as pw10. Ruijie(config)# enable secret 0 pw10 Examples Related Command Description Commands enable password Sets passwords for different privilege levels. Platform Description 2.16 enable service Use this command to enable or disable a specified service such as SSH Server/Telnet Server/Web Server/SNMP Agent.
  • Page 23 Use this command to return to privileged EXEC mode. Usage Guide Configuration The following example returns to privileged EXEC mode. Ruijie#con Examples Enter configuration commands, one per line. End with CNTL/Z. Ruijie(config)#line vty 0 Ruijie(config-line)#end *May 20 09:49:38: %SYS-5-CONFIG_I: Configured from console by console Ruijie# Related Command Description...
  • Page 24 Telnet sessions and the display cannot be disabled on a specific line. Configuration The following example disables display of the EXEC message on line VTY 1. Ruijie(config)# line vty 1 Examples Ruijie(config-line)no exec-banner Related...
  • Page 25 Ruijie#execute flash:mybin/config.text Examples executing script file mybin/config.text ..executing done Ruijie#config Enter configuration commands, one per line. End with CNTL/Z. Ruijie(config)#interface gigabitEthernet 0/1 Ruijie(config-if-GigabitEthernet 0/1)#ip address 192.168.21.158 24 Ruijie(config-if-GigabitEthernet 0/1)#end *Sep 29 23:35:49: %SYS-5-CONFIG_I: Configured from console by console Ruijie#...
  • Page 26 The following example returns to the upper configuration mode. Ruijie#con Examples Enter configuration commands, one per line. End with CNTL/Z. Ruijie(config)#line vty 0 Ruijie(config-line)#end *May 20 09:49:38: %SYS-5-CONFIG_I: Configured from console by console Ruijie#con Enter configuration commands, one per line. End with CNTL/Z.
  • Page 27 2. Partial help is provided when an abbreviated argument is entered and you want to know what arguments match the input (e.g. 'show pr?'.) The following example displays all available commands in interface configuration mode. Ruijie(config-if-GigabitEthernet 0/0)#? Interface configuration commands: ARP interface subcommands bandwidth...
  • Page 28 Multi-af VPN Routing/Forwarding parameters on the interface vrrp VRRP interface subcommands xconnect Xconnect commands The following example displays the parameters of a specified command. Ruijie(config)#access-list 1 permit ? A.B.C.D Source address Any source host host A single source host Related...
  • Page 29 Description Description name Device hostname, string, number or hyphen, up to 63 characters. Defaults The default is Ruijie. Command Global configuration mode Mode Usage Guide This hostname is mainly used to identify the device and is taken as the username for the local device during dialup and CHAP authentication.
  • Page 30 Configuration The following example configures the IP address of the Loopback1 interface as the source address Examples for global Telnet connection. Ruijie(Config)# ip telnet source-interface Loopback 1 Related Command Description Commands telnet Logs in a Telnet server.
  • Page 31 This command is used to lock a terminal interface in the corresponding line. To lock the terminal, run the lock command in EXEC mode. Run the lockable command before running the lock command. Configuration The following example enables terminal locking at the console port and locks the console. Ruijie(config)# line console 0 Examples Ruijie(config-line)# lockable Ruijie(config-line)# end Ruijie# lock Password: <password>...
  • Page 32 If the AAA security server is inactive, this command enables simple password authentication at login. The password is configured for a VTY or console interface. Configuration The following example sets a login password authentication on VTY.. Ruijie(config)# no aaa new-model Examples Ruijie(config)# line vty 0 Ruijie(config-line)# password 0 normatest...
  • Page 33: Login Authentication

    Command Global configuration mode Mode Usage Guide Configuration The following example configures VTY line authentication with AAA enabled. Ruijie(config)#log access non-aaa Examples Ruijie(config)#aaa new-model Ruijie(config)#line vty 0 4 Ruijie(config-line)#login local Ruijie(config-line)# Related Command Description Commands Platform Description 2.29 login authentication If the AAA is enabled, login authentication must be performed on the AAA server.
  • Page 34: Login Local

    Usage Guide Configuration The following example associates the method list on VTY and perform login authentication on a Examples radius server. Ruijie(config)# aaa new-model Ruijie(config)# aaa authentication login default radius Ruijie(config)# line vty 0 Ruijie(config-line)# login authentication default Related Command Description...
  • Page 35 Command Reference Basic Configuration Management Commands Ruijie(config)# no aaa new-model Examples Ruijie(config)# username test password 0 test Ruijie(config)# line vty 0 Ruijie(config-line)# login local Related Command Description Commands username Configures local user information. Platform Description 2.31 login privilege log Use this command to log privilege change. Use the no form of this command to restore the default setting.
  • Page 36 Telnet sessions and the display cannot be disabled on a specific line. The following example disables display of the MOTD message on VTY 1. Configuration Ruijie(config)# line vty 1 Examples Ruijie(config-line)no motd-banner Related...
  • Page 37 The password is encrypted. Defaults Line configuration mode Command Mode Usage Guide Configuration The following example configures the line login password as "red". Ruijie(config)# line vty 0 Examples Ruijie(config-line)# password red Related Command Description Commands Moves from user EXEC mode to privileged...
  • Page 38 If no prompt string is configured, the system name applies and varies with the system name. The prompt command is valid only in EXEC mode. The following example sets the prompt string to rgnos. Configuration Ruijie(config)# prompt rgnos Examples Ruijie(config)# end RGOS...
  • Page 39 “password” type password and login fails, enhancing security for the system password. The following example sets the password encrypted by irreversible MD5 for line login to vty0. Configuration Ruijie(config)# line vty 0 Examples Ruijie(config-line)# secret vty0 The following displays the encryption outcome by running the show command.
  • Page 40 The following example connects to device1 through session in VSU multiple-device environment (box-type device). Ruijie# session device 1 The following example connects to management module m1 of device1 through session in VSU master-slave environment (card-type device). Ruijie# session device 1 slot m1 Related Command Description Commands...
  • Page 41: Show Debugging

    Privileged EXEC mode Mode Usage Guide Configuration The following example displays the path for saving startup configurations and the corresponding file Examples name.. Ruijie#show boot config Boot config file: [flash:/ruijie.text] Related Command Description Commands Platform Description 2.39 show debugging Use this command to display debugging state.
  • Page 42 Parameter Description Description Defaults Command Privileged EXEC mode Mode Usage Guide The following example displays debugging state. Configuration Ruijie#show debugging Examples debug fw-group detect intf-state Related Command Description Commands Platform Description 2.40 show line Use this command to display the configuration of a line.
  • Page 43: Show Reload

    Command Reference Basic Configuration Management Commands Usage Guide The following example displays the configuration of a console port. Configuration Ruijie# show line console 0 Examples Type speed Overruns 9600 45927 Line 0, Location: "", Type: "vt100" Length: 24 lines, Width: 79 columns...
  • Page 44 Command Reference Basic Configuration Management Commands At 2003-12-29 11:37:42 Reload reason: test. Related Command Description Commands Platform Description 2.42 show running-config Use this command to display how the current device system is configured.. show running-config Parameter Parameter Description Description Defaults Privileged EXEC mode Command Mode...
  • Page 45: Show Sessions

    Command Reference Basic Configuration Management Commands Defaults Command Privileged EXEC mode Mode Usage Guide Configuration The following example displays whether the service is enabled or disabled. Ruijie# show service Examples web-server : disabled web-server(https): disabled snmp-agent : enabled ssh-server : enabled...
  • Page 46 Command Reference Basic Configuration Management Commands 192.168.21.122 Related Command Description Commands Platform Description 2.45 show startup-config Use this command to display the device configuration stored in the Non Volatile Random Access Memory (NVRAM). show startup-config Parameter Parameter Description Description Defaults Privileged EXEC mode Command Mode...
  • Page 47 In vlan range or interface range mode, if the number of VLANs or interfaces exceeds 50, the configuration of the first 50 VLANs or interfaces will be displayed. Use this command to display effective configuration on interface fastEthernet 0/1. Configuration Ruijie (config)#interface fastEthernet 0/1 Examples Ruijie (config-if-FastEthernet 0/1)#show this Building configuration...
  • Page 48 Usage Guide This command is used to set the speed at which the terminal transmits packets. Configuration The following example sets the rate of the serial port to 57600 bps. Ruijie(config)# line console 0 Examples Ruijie(config-line)# speed 57600 Related Command...
  • Page 49 Specifies the source interface used by the Telnet client. Defaults User EXEC mode Command Mode Usage Guide Configuration The following example sets telnet to IPv6 address 2AAA:BBBB::CCCC. Ruijie# telnet 2AAA:BBBB::CCCC Examples Related Command Description Commands Specifies the IP address of the interface as the ip telnet source-interface source address for Telnet connection.
  • Page 50 Configuration The following example configures a username and password and binds the user to level 15. Ruijie(config)# username test privilege 15 password 0 pw15 Examples The following example configures the username and password exclusive to web authentication. Ruijie(config)# username user1 web-auth password 0 pw The following example configures user test with read and write permissions on all files and directories.
  • Page 51 Command Reference Basic Configuration Management Commands directories except the confix.text file. Ruijie(config)# username test permission n /config.text Ruijie(config)# username test permission rwx / Related Command Description Commands login local Enables local authentication Platform Description 2.50 username import Use this command to import user information from the file.
  • Page 52 Defaults Command Privileged EXEC mode Mode Usage Guide This command is used to export user information to the file. Configuration The following example exports user information to the file. Ruijie# username export user.csv Examples Related Command Description Commands Platform Description 2.52 write...
  • Page 53 Configuration The following example enables the zero configuration function. Ruijie# zcm enable Examples %% Warning: After switching mode the device will automatically restart! % Do you want to switch to zero configuration mode? [yes/no]:y...
  • Page 54 Command Reference Basic Configuration Management Commands non-zero configuration mode switch. Related Command Description Commands Platform Description...
  • Page 55: Line Commands

    Before the terminal logs out, a message is displayed to prompt the remaining time. Terminal will be login out after 20 second Configuration The following example sets the timeout period for the line between two consoles to 2 minutes. Ruijie(config)# line console 0 Examples Ruijie(config-line)#absolute-timeout 2 Related...
  • Page 56: Accounting Commands

    Usage Guide Configuration The following example uses ACL 20 to filter the incoming connections in line VTY 0 5. Ruijie(config)# line vty 0 5 Examples Ruijie(config-line)access-list 20 in The following example uses the ACL named “test” to filter the outgoing connections in line VTY 6 7.
  • Page 57: Accounting Exec

    The following example enables command accounting in line VTY 1 and sets the command level to 15. Ruijie(config)# aaa new-model Examples Ruijie(config)# aaa accounting commands 15 default start-stop group tacacs+ Ruijie(config)# line vty 1 Ruijie(config-line)# accounting commands 15 default Related...
  • Page 58 Command Reference Line Commands The following example enables user access accounting in line VTY 1. Configuration Ruijie(config)# aaa new-model Examples Ruijie(config)# aaa accounting exec default start-stop group radius Ruijie(config)# line vty 1 Ruijie(config-line)# accounting exec default Related Command Description Commands...
  • Page 59: Authorization Exec

    Configuration The following example enables authorization on commands of level 15 in line VTY 1. Ruijie(config)# aaa new-model Examples Ruijie(config)# aaa authorization commands 15 default group tacacs+ Ruijie(config)# line vty 1 Ruijie(config-line)# authorization commands 15 default Related Command...
  • Page 60 Usage Guide then apply it on the line. Configuration The following example performs EXEC authorization to line VTY 1. Ruijie(config)# aaa new-model Examples Ruijie(config)# aaa authorization exec default group radius Ruijie(config)# line vty 1 Ruijie(config-line)# authorization exec default Related Command Description...
  • Page 61: Clear Line

    Usage Guide obtain the specified app-based terminal service. Configuration The following example enables automatic command execution and connects to line vty 0. Ruijie(config)# line vty 0 Examples Ruijie(config-line)# autocommand telnet 192.168.21.100 //Initiates connection to line vty 0: Trying 192.168.21.100, 23...
  • Page 62 Configuration The following example clears connection status of line VTY 13. The connected session on the client Examples (such as Telnet and SSH) in the line is disconnected immediately. Ruijie# clear line vty 13 Related Command Description Commands...
  • Page 63 0 to 9. Otherwise, the terminal service cannot operate properly. Configuration The following example sets the hot key that disconnects the terminal service connection on line VTY Examples 0 5 to Ctrl+E (0x05). Ruijie(config)# line vty 0 5 Ruijie(config-line)# disconnect-character 5 Related Command Description...
  • Page 64 After configuring this command, press the key combination of the escape character and then press x, the current session is disconnected to return to the original session. Configuration The following example sets the escape character for the line to 23 (Ctrl+w). Ruijie(config)# line vty 0 Examples Ruijie(config-line)# escape-character 23 Related...
  • Page 65 Command Reference Line Commands enter the command line interface through other lines, The following example bans line VTY 1 from entering the command line interface. Configuration Ruijie(config)# line vty 1 Examples Ruijie(config-line)# no exec Ruijie# show users Line User Host(s)
  • Page 66 The stop and start characters are Ctrl+S ( XOFF, ASCII: 19) and Ctrl+Q (XON, ASCII: 17) respectively. Configuration The following example configures software flow control for the async line. Ruijie(config)#line console 0 Examples Ruijie(config-line)#flowcontrol software Related...
  • Page 67 Usage Guide Configuration The following example sets the number of commands in the command history to 20 for line VTY 0 5. Ruijie(config)# line vty 0 5 Examples Ruijie(config-line)# history size 20 The following example disables the command history for line VTY 0 5.
  • Page 68 Line configuration mode Mode Usage Guide The following example uses the ACL named “test” to filter the outgoing IPv6 connections in line VTY 0 Configuration Examples Ruijie(config)# line vty 0 4 Ruijie(config-line)ipv6 access-list test out Related Command Description Commands show running...
  • Page 69: Line Vty

    Number of last-line to enter Defaults Command Global configuration mode Mode Usage Guide Configuration The following example enters the LINE mode from LINE VTY 1 to 3: Ruijie(config)# line vty 1 3 Examples Related Command Description Commands Platform Description 3.20 line vty Use this command to increase the number of VTY connections currently available.
  • Page 70 The following example increases the number of available VTY connections to 20. The available VTY Configuration connections are numbered 0 to 19. Examples Ruijie(config)# line vty 19 The following example decreases the number of available VTY connections to 10. The available VTY connections are numbered 0-9. Ruijie(config)# line vty 10...
  • Page 71 Command Reference Line Commands The following example describes the line location as Swtich’s Line VTY 0. Configuration Ruijie(config)# line vty 0 Examples Ruijie(config-line)# location Swtich’s Line Vty 0 Related Command Description Commands Platform Description 3.22 monitor Use this command to enable log display on the terminal. Use the no form of this command to restore...
  • Page 72: Privilege Level

    Mode Usage Guide Parity is required in communication through some devices (such as async serial ports and console ports). The following example configures even parity for the async line. Configuration Ruijie(config)#line console 0 Examples Ruijie(config-line)#parity even Related Command Description Commands...
  • Page 73 The default is 1. Defaults Line configuration mode Command Mode Usage Guide Configuration The following example sets the privilege level for the line VTY 0 4 to 14. Ruijie(config)# line vty 0 4 Examples Ruijie(config-line)privilege level 14 Related Command Description Commands Platform Description 3.25 show history...
  • Page 74 Displays the line. Defaults Command Privileged EXEC mode Mode Usage Guide The following example displays configuration for the console port. Configuration Ruijie# show line console 0 Examples Type speed Overruns 9600 45927 Line 0, Location: "", Type: "vt100" Length: 24 lines, Width: 79 columns...
  • Page 75: Show Privilege

    Command Reference Line Commands Field Description Terminal type. CON indicates console; 0 indicates terminal line number and * ahead of the number means that the terminal is in use. Type Terminal type, including CON, AUX, TTY, and VTY. speed Asynchronous speed. Overruns The number of overrun errors received by the flash.
  • Page 76: Show Users

    00:00:46 1 vty 0 idle 00:00:29 20.1.1.2 * 2 vty 1 idle 00:00:00 20.1.1.2 The following example displays all line user information, Ruijie(config)# show users all Line User Host(s) Idle Location ---------------- ------------ -------------------- ---------- ------------------ 0 con 0 idle...
  • Page 77 Sets the baud rate, in the range from 9600 to 115200. The default is 9600. Defaults Command LINE configuration mode Mode Usage Guide Configuration The following example sets the baud rate to 115200, Ruijie(config-line)# speed 115200 Examples Related Command Description Commands Platform Description 3.30 start-character Use this command to on the async line.
  • Page 78 The start character marks the start of the data transmission. Usage Guide The following example configures Ctrl+Y (ASCII: 25) for starting software flow control on the async Configuration line, Examples Ruijie(config)#line console 0 Ruijie(config-line)#start-character 25 Related Command Description Commands Platform Description 3.31 stopbits...
  • Page 79 The stopbit is required in communication between the async line and the async device (such as the Usage Guide conventional numb terminals and modems). Configuration The following example sets the stopbit number of every character for the async line to 1. Ruijie(config)#line console 0 Examples Ruijie(config-line)#stopbits 1 Related Command...
  • Page 80: Terminal Databits

    Privileged EXEC mode Mode Usage Guide Configuration The following example sets the databit number of every character for the current terminal in flow Examples communication mode to 7. Ruijie#terminal databits 7 Related Command Description Commands Platform Description 3.34 terminal escape-character Use this command to set the escape character for the current terminal.
  • Page 81 After configuring this command, press the key combination of the escape character and then press x, the current session is disconnected to return to the original session. Configuration The following example sets the escape character for the current terminal to 23 (Ctrl+w). Ruijie# terminal escape-character 23 Examples Related Command...
  • Page 82: Terminal Flowcontrol

    Defaults The default flow control mode is none. Command Privileged EXEC mode Mode Usage Guide The following example configures software flow control for the current terminal. Configuration Ruijie#terminal flowcontrol software Examples Related Command Description Commands Platform Description 3.37 terminal history Use this command to enable command history for the current terminal or set the number of commands in the command history.
  • Page 83: Terminal Length

    The following example sets the number of commands in the command history to 20 for the current Configuration terminal. Examples Ruijie# terminal history size 20 The following example disables the command history for the current terminal. Ruijie# terminal no history Related...
  • Page 84: Terminal Parity

    Configures location description of the current device. Defaults Privileged EXEC mode Command Mode Usage Guide The following example configures location description of the current device as “Swtich’s Line Vty 0”. Configuration Ruijie# terminal location Swtich’s Line Vty 0 Examples Related Command Description Commands Platform Description 3.40 terminal parity...
  • Page 85: Terminal Speed

    Sets the baud rate, in the range from 9600 to 115200. The default is 9600. Defaults Privileged EXEC mode Command Mode Usage Guide Configuration The following example sets the baud rate for the current terminal to 115200, Ruijie# terminal speed 115200 Examples...
  • Page 86: Terminal Stopbits

    Privileged EXEC mode Command Mode Usage Guide Configuration The following example configures Ctrl+Y (ASCII: 25) for starting software flow control on the current Examples device, Ruijie#terminal start-character 25 Related Command Description Commands Platform Description 3.43 terminal stopbits Use this command to set the stopbit number of every character for the current terminal. Use the no form of this command to restore the default setting.
  • Page 87 Configures 2 stopbits. Defaults The default is 2. Privileged EXEC mode Command Mode Usage Guide The following example configures 1 stopbit for the current terminal. Configuration Ruijie#terminal stopbits 1 Examples Related Command Description Commands Platform Description 3.44 terminal stop-character Use this command to configure the stop character for software flow control on the current terminal.
  • Page 88: Terminal Width

    Command Reference Line Commands device. Examples Ruijie#terminal stop-character 26 Related Command Description Commands Platform Description 3.45 terminal terminal-type Use this command to configure the simulated terminal type string for the current terminal. Use the no form of this command to restore the default setting.
  • Page 89 Sets the screen width for the terminal, in the range from 0 to 256. Defaults The default is 79. Command Privileged EXEC mode Mode Usage Guide The following example sets the screen width for the terminal to 10. Configuration Ruijie# terminal width 10 Examples Related Command Description Commands Platform Description 3.47 terminal-type Use this command to configure the simulated terminal type string of the async line.
  • Page 90 The default is 30. Command Line configuration mode Mode Usage Guide Configuration The following example sets the login authentication timeout to 300 seconds for line VTY 0 5. Ruijie(config)# line vty 0 5 Examples Ruijie(config-line)login timeout response 300 Related Command Description Commands...
  • Page 91 Line configuration mode Command Mode Usage Guide Configuration The following example specifies that only the Telnet protocol is allowed to login in line vty 0 4. Ruijie(config)# line vty 0 5 Examples Ruijie(config-line)transport input ssh Related Command Description Commands...
  • Page 92 This command is used to set the logout message for the line. The characters entered after the ending delimiter are discarded directly, The logout message is displayed when the user logs out. The following example sets the logout message to “Logout from the ruijie device”. Configuration...
  • Page 93 Command Reference Line Commands Description...
  • Page 94: File System Commands

    Command Reference File System Commands 4 File System Commands 4.1 cd Use this command to set the present directory for the file system. cd [ filesystem: ] [ directory ] Parameter Parameter Description Description filesystem: The URL of filesystem, followed by a colon (:). The filesystem includes flash:, usb:, and tmp:.
  • Page 95 Configuration The following example copies the netconfig file from device 192.168.64.2 to the FLASH disk and the Examples netconfile file exists locally. Ruijie#copy tftp://192.168.64.2/netconfig flash:/netconfig Do you want to overwrite [/data/netconfig]? [Y/N]:y Press Ctrl+C to quit Copy success. Related Command...
  • Page 96 4096 Jan 03 2012 12:32:09 rc.d -rw- 10485760 Jan 03 2012 18:13:37 rpmdb 3 files, 0 directories 10,490,192 bytes total (13,192,656 bytes free) Ruijie#delete flash:/fstab Do you want to delete [flash:/fstab]? [Y/N]:y Delete success. Ruijie#dir Directory of flash:/ -rw- 4096 Jan 03 2012 12:32:09 rc.d...
  • Page 97 By default, only the information under the present working path is displayed. Command Privileged EXEC mode. Mode Usage Guide Configuration The following example displays the file information of the root directory in the FLASH disk. Ruijie#dir flash:/ Examples Directory of flash:/ -rw- Jan 03 2012 18:53:42 fstab -rw- 4096 Jan 03 2012 12:32:09 rc.d...
  • Page 98 Name of the file system, followed by a colon (:). For example, usb0:. Defaults Command Privileged EXEC mode Mode Usage Guide Configuration The following example erases the USB filesystem. Ruijie#erase usb0: Examples Sure to erase usb0:? [Y/N] y Erasing disk usb0 … Erase disk usb0 done! Related Command Description...
  • Page 99: File Prompt

    Displays prompt rarely. Defaults The default mode is noisy. Privileged EXEC mode Command Mode Usage Guide Configuration The following example sets the prompt mode to noisy. Ruijie#file prompt noisy Examples Related Command Description Commands Platform Description 4.8 mkdir Use this command to create a directory.
  • Page 100 4096 Jan 03 2012 12:32:09 rc.d -rw- 10485760 Jan 03 2012 18:13:37 rpmdb 3 files, 0 directories 10,490,132 bytes total (13,192,656 bytes free) Ruijie#mkdir newdir Created dir flash:/newdir Ruijie#dir Directory of flash:/ -rw- Jan 03 2012 18:53:42 fstab -rw- 4096 Jan 03 2012 12:32:09 rc.d...
  • Page 101 Usage Guide Configuration The following example displays the content of the netconfig file under root directory of FLASH disk. Ruijie#more flash:/netconfig Examples # The network configuration file. This file is currently only used in # conjunction with the TI-RPC code in the libtirpc library.
  • Page 102 4096 Jan 03 2012 12:32:09 rc.d -rw- 10485760 Jan 03 2012 18:13:37 rpmdb 3 files, 0 directories 10,490,192 bytes total (13,192,656 bytes free) Ruijie#rename flash:/fstab flash:/new-fstab Renamed file flash:/new-fstab Ruijie#dir Directory of flash:/ -rw- Jan 03 2012 18:53:42 new-fstab -rw- 4096 Jan 03 2012 12:32:09 rc.d...
  • Page 103 Defaults The default filesystem: is flash:. Command Privileged EXEC mode. Mode Usage Guide Configuration The following example deletes the null test directories. Ruijie#mkdir newdir Examples Ruijie#dir Directory of flash:/ -rw- Jan 03 2012 18:53:42 fstab -rw- 4096 Jan 03 2012 12:32:09 rc.d...
  • Page 104 User EXEC mode/Privileged EXEC mode/Global configuration mode/Interface configuration mode Mode Usage Guide Configuration The following example displays USB information. Ruijie#show disk usb Examples Disk /dev/sdb: 8159 MB, 8159477760 bytes 252 heads, 62 sectors/track, 1020 cylinders Units = cylinders of 15624 * 512 = 7999488 bytes The following example displays FLASH information.
  • Page 105: Show File Systems

    N/A. Defaults N/A. Command User EXEC mode/Privileged EXEC mode/Global configuration mode/Interface configuration mode Mode Usage Guide Configuration The following example displays the file system information: Ruijie#show file systems Examples Size(KB) Free(KB) Type Flags Prefixes rw tmp: network rw tftp: network...
  • Page 106 User EXEC mode/Privileged EXEC mode/Global configuration mode/Interface configuration mode Mode Usage Guide The following example displays the mounted information. Configuration Ruijie#show mount Examples /dev/sda1 on / type ext4 (rw,errors=remount-ro,commit=0) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
  • Page 107 The following example binds source interface gigabitEthernet 0/0 with the TFTP client. Ruijie(config)# tftp-client source gigabitEthernet 0/0 The following example removes the configuration. Ruijie(config)# no tftp-client source ip 192.168.23.236 The following example restores the default setting. Ruijie(config)# default tftp-client source ip 192.168.23.236...
  • Page 108 Defaults The default filesystem: is flash:. Command User EXEC mode/Privileged EXEC mode Mode Usage Guide The following example displays the file tree of flash:/echo Configuration Ruijie#tree flash:/echo Examples +-- client_module +-- client_userspace +-- echo_cli.c +-- echo_client.c +-- echo_client.h +-- echo_client.o +-- echo_cli.o...
  • Page 109 The default filesystem: is flash:. Privileged EXEC mode. Command Mode Usage Guide Configuration The following example computes MD5 of flash:/gcc. Ruijie#verify flash:/gcc Examples 8b072de7db7affd8b2ef824e7e4d716c The following example computes MD5 and makes a comparison. Ruijie#verify /md5 8b072de7db7affd8b2ef824e7e4d716c flash:/gcc %SUCCESS verifying flash:/gcc = 8b072de7db7affd8b2ef824e7e4d716c...
  • Page 110 Command Reference File System Commands Ruijie#verify /md5 8b072de7db7affd8b2ef824e7e4d71 flash:/gcc %Error verifying flash:/gcc Computed signature = 8b072de7db7affd8b2ef824e7e4d716c Submitted signature = 8b072de7db7affd8b2ef824e7e4d71 Related Command Description Commands Platform Description...
  • Page 111: Sys Commands

    The following example changes the current hardware time of the system (for example, 2012-02-01 Configuration 18:23:06) into 6 o’clock and keeps the values of other parameters. Examples Ruijie# calendar set 6 06:41:39 UTC Fri, Jul 6, 2012...
  • Page 112 The following example changes the current hardware time of the system (for example, 2012-02-01 18:23:06) into March 2 and keeps the values of other parameters. Ruijie# calendar set 18 3 2 18:43:05 UTC Fri, Mar 2, 2012 Because the hour parameter is mandatory, set it to the current time if you do not need to change its value.
  • Page 113: Clock Set

    The following example changes the current software time of the system (for example, 2012-02-01 Configuration 18:23:06) into 6 o’clock and keeps the values of other parameters. Examples Ruijie# clock set 6 06:48:13 CST Fri, Mar 2, 2012 The following example changes the current software time of the system (for example, 2012-02-01...
  • Page 114 The following example changes the current software time of the system (for example, 2012-02-01 18:23:06) into March 2 and keeps the values of other parameters. Ruijie# clock set 18 3 2 18:42:48 CST Fri, Mar 2, 2012 Because the hour parameter in this command is mandatory, set it to the current time if you do not need to change its value.
  • Page 115 Command Reference SYS Commands Parameter Parameter Description Description zone Summer time name. It can only be a letter between A and Z or between a and z, which is not case sensitive. The summer time name contains 3 to 31 characters.
  • Page 116 Ruijie(config)#show calendar 08:24:35 GMT Wed, Feb 29, 2012 Ruijie(config)# clock summer-time TZA start Feb 1 sat 2:00 end May 3 Monday 18:30 ahead 1 20 *May 10 03:45:58: %SYS-5-CLOCKUPDATE: Set summer-time: TZA from February the 1st Saturday at 2:00 TO May the 3rd Monday at 18:30, ahead 1 hour 20 minute...
  • Page 117: Clock Timezone

    18:00:17 CST Wed, Dec 5, 2012 The following example sets the time zone name TZA. The software time is 06:13 slower than the hardware time. Ruijie(config)# clock timezone TZA -6 13 Set time zone name: TZA (GMT-06:13) The following example removes the time zone settings.
  • Page 118 Configuration The following example enables the system to synchronize the hardware time with the software time. Ruijie# clock update-calendar Examples Set the hardware time from the system clock.
  • Page 119 Command Reference SYS Commands Ruijie# show clock 09:30:02 TSZ Wed, Feb 29, 2012 Ruijie# clock update-calendar Set the hardware time from the system clock. Ruijie#show calendar 03:05:08 UTC Wed, Feb 29, 2012 Check Method Platform Description 5.7 cpu high-watermark set Use this command to set the high watermark of the CPU usage of the control core and enable CPU usage monitoring.
  • Page 120 80%(75%~85%) The following example enables CPU usage monitoring and sets the high watermark to 88% and fluctuation range to 3%. Ruijie(config)# cpu high-watermark set high 88 range 3 Open cpu watermark monitor set system cpu watermark high 88%(85%~91%) In this case, the high watermark is set to 88%.
  • Page 121 Mode Default Level Usage Guide The following example clears a half of the history of the memory usage. Configuration Ruijie# show memory history Examples Time Thu Jan 1 00:24:45 1970 Used(k) 148516 Maxinum memory users for this period Process Name Holding tcpip.elf...
  • Page 122 Maxinum memory users for this period Process Name Holding tcpip.elf 270028 cli-memory 44088 rg_syslogd 36640 Ruijie(config)#memory history clear half 2 out of 5 records in the history table to be cleared... Clear done ! Check Method Prompt Message Platform Description 5.9 memory low-watermark set Use this command to set the low watermark threshold of the memory and enable the memory low watermark detection.
  • Page 123 When the system memory is less than this threshold, the system will print prompts. Configuration The following example sets the low watermark threshold of the memory to 500,000 KB and enables detection. Examples Ruijie(config)#memory low-watermark 500000 Check Method Prompt Message Platform Description 5.10 reload...
  • Page 124: Show Calendar

    Description Command Privileged EXEC mode/ global configuration mode Mode Default Level Usage Guide Configuration The following example displays the hardware calendar. Ruijie# show calendar Examples 21:57:48 GMT Sun, Feb 28, 2012 Prompt Message Platform Description 5.12 show clock Use this command to display the system software clock.
  • Page 125: Show Cpu

    Default Level Usage Guide Configuration The following example displays the software clock when the time zone is disabled. Ruijie# show clock Examples 18:22:20 UTC Tue, Dec 11, 2012 The following example displays the software clock when the time zone is enabled.
  • Page 126: Show Memory

    The following example displays the memory usage of each task and the ranking (based on the total Examples memory usage). Ruijie# show memory sorted System Memory: 508324K total, 481560K used, 26764K free, 31.5% used rate Used detail: 149112K active, 247776K inactive, 30460K mapped, 50460K slab, 3752K others...
  • Page 127 Command Reference SYS Commands Text(K) Rss(K) Data(K) Stack(K) Total(K) Process 1568 4584 264728 270028 tcpip.elf 1436 246076 248840 cli-filesystem 1237 1492 123260 126036 cli-memory 1104 74064 76920 ping.elf 1276 33812 36640 rg_syslogd 33536 36364 rg_syslogd 1416 16896 19800 lsmdemo 1324 16844 19612 rg-tty-admin...
  • Page 128 Command Privileged EXEC mode/ global configuration mode Mode Default Level Usage Guide Configuration The following example displays the information on the device mounted to the PCI bus. Ruijie# show pci-bus Examples NO:0 Vendor ID : 0x1131 Device ID : 0x1561 Domain:bus:dev.func...
  • Page 129: Show Processes Cpu

    Default Level Usage Guide Configuration The following example displays the tasks listed in ascending order of task IDs. Ruijie# show processes cpu Examples System Uptime: 19:08.6 CPU utilization for five seconds:1.2%; one minute:0.8%; five minutes:0.8% set system cpu watermark (open): high 80%(85%~75%)
  • Page 130 Command Reference SYS Commands with 0 CPU usage within 15 minutes. Ruijie# show processes cpu nonzero Description of the information displayed in this command: Field Description System Uptime Total running time of the device, precious to seconds. Total CPU usage of the control core within the last five seconds, one CPU Utilization minute, and five minutes.
  • Page 131 Command Reference SYS Commands Ruijie #show processes cpu 5sec nonzero The following example displays the CPU usage of the control core in histograms within the last 60 seconds, 60 minutes, and 72 hours. The first histogram displays the CPU usage of the control core within 300 seconds. Every segment in the x-coordinate is five seconds, and every segment in the y-coordinate is 5%.
  • Page 132 The third table lists the CPU usage within the last 72 hours, measured in %. The two adjacent cells show the CPU usage measured at an interval of one hour. Example: Ruijie #show processes cpu history table system cpu percent usage(%) [last 300 second] #------------------------------------------------------------------------------#...
  • Page 133 Displays the information on the task of the specified task name. Command Privileged EXEC mode/ global configuration mode Mode Default Level Usage Guide Configuration The following example displays the information on the task of the specified task name. Ruijie# show processes cpu detailed demo Examples Process Id : 1820...
  • Page 134 0.3% (0.6%) Code Usage: 209.6 KB. If the specified task name is not unique, the system displays the following message: Ruijie# show processes cpu detailed demo duplicate process, choose one by id not name. name: demo, id: 1089, state: S(sleeping) name: demo, id: 1091, state: R(running) process name: monitor_procps, do NOT exist, or NOT only one.
  • Page 135: Show Version

    Command Reference SYS Commands The following example displays the information on the task of the specified task ID. Ruijie# show process cpu detailed 1715 Prompt Message Platform Description 5.18 show reboot-reason Use this command to display the reboot reason. show reboot-reason [ all ]...
  • Page 136 Usage Guide The following example displays the system version information. Usage Guide Ruijie# show version System description : Ruijie Indoor AP320-I (802.11a/n and 802.11b/g/n) By Ruijie Networks System start time : 2012-12-06 00:00:00 System uptime : 0:03:20:07 System hardware version : 1.0.0 System software version : AP_RGOS11.0(1B1)
  • Page 137: Time Range Commands

    Ruijie(config)# time-range no-http Examples Ruijie(config-time-range)# The following example configures an absolute time range. Ruijie(config-time-range)# absolute start 1:1 1 JAN 2013 end 1:1 1 JAN 2014 Check Use the show time-range [ time-range-name ] command to display the time range configuration. Method...
  • Page 138 The following example creates a time range and enters time range configuration mode. Configuration Ruijie(config)# time-range no-http Examples Ruijie(config-time-range)# The following example configures a periodic time interval. Ruijie(config-time-range)# periodic Monday 1:1 to Tuesday 2:2 Check Use the show time-range [ time-range-name ] command to display the time range configuration. Method Prompt Message...
  • Page 139 Mode Default Level Usage Guide Use this command to check the time range configuration. Configuration The following example displays the time range configuration. Ruijie# show time-range Examples time-range entry: test (inactive) absolute end 01:02 02 February 2012 Prompt Message Platform Description 6.4 time-range...
  • Page 140 Time Range Commands created, you can configure relevant time control in time range mode. The following example creates a time range. Configuration Ruijie(config)# time-range no-http Examples Ruijie(config-time-range)# Check Use the show time-range [ time-range-name ] command to display the time range configuration.
  • Page 141: Http Port

    Use the command no enable service web-server to disable the corresponding HTTP service. The following example enables both the HTTP service and the HTTPS service: Configuration Ruijie#configure terminal Examples Enter configuration commands, one per line. End with CNTL/Z. Ruijie(config)#enable service web-server Related Command Description Commands Platform Description 7.2 http port...
  • Page 142 The default HTTP port number is 80. Global configuration mode. Command mode Use this command to configure the HTTP port number. Usage Guide The following example configures the HTTP port number as 8080: Configuration Ruijie(config)#http port 8080 Examples Related Command Description Commands Platform Description 7.3 http secure-port...
  • Page 143 Command Reference HTTP Service Commands The following example configures the HTTPS port number as 4443: Configuration Ruijie(config)#http secure-port 4443 Examples Related Command Description Commands enable service web-server Enables the HTTP service. show web-server status Displays the configuration and status of the Web service.
  • Page 144 Please use the copy command to copy the Web package into the file system before you use this command to upgrade the Web package. Configuration The following example copies a Web package into the file system and upgrades the package. Ruijie#copy tftp://192.168.23.24/web.upd flash:/web.upd Examples Ruijie#upgrade web flash:/web.upd Related...
  • Page 145 Global configuration mode. mode Usage Guide Configuration The following example downloads a Web package from the TFTP server and upgrades the package Examples automatically. Ruijie#upgrade web download tftp://192.168.23.24/web.upd Related Command Description Commands Enables the HTTP service. enable service web-server Platform Description 7.7 webmaster level...
  • Page 146 Usernames and passwords come with three permission levels, each of which includes at most 10 usernames and passwords. Configuration The following example configures the username and password for Web login authentication, Ruijie(config)#webmaster level 0 username ruijie password admin Examples Related Command...
  • Page 147: Syslog Commands

    Usage Guide This command clears the log packets from the memory buffer. You cannot clear the statistics of the log packets. The following example clears the log packets from the memory buffer. Configuration Ruijie# clear logging Examples Related Command Function...
  • Page 148: Logging Buffered

    Ruijie(config)# logging 202.101.11.1 Examples The following example configures a syslog server with IP address 10.1.1.100 and port number 8099. Ruijie(config)# logging 202.101.11.1 udp-port 8099 The following example configures a syslog server with IPv6 address AAAA:BBBB::FFFF. Ruijie(config)# logging ipv6 AAAA:BBBB::FFFF Related...
  • Page 149 It is recommended to modify the log buffer size as soon as the system starts. Configuration The following example allows logs at and below severity 6 to be recorded in the memory buffer sized Examples 10,000 bytes. Ruijie(config)# logging buffered 10000 6 Related Command Description Commands logging on Turns on the log switch.
  • Page 150: Logging Console

    The show logging command displays the related setting parameters and statistics of the log. Configuration The following example sets the severity of log that is allowed to be displayed on the console as 6: Ruijie(config)# logging console informational Examples Related...
  • Page 151 This command enables the log statistics function. The statistics begins when the function is enabled. If you run the no logging count command, the statistics function is disabled and the statistics data is deleted. Configuration The following example enables the log statistics function: Ruijie(config)# logging count Examples Related Command Description...
  • Page 152 Configuration The following example sets the name of the log file saved locally to log_server. Ruijie(config)# logging delay-send file flash:log_server Examples Related Command...
  • Page 153 The following example specifies an FTP server whose IP address is 192.168.23.12, username admin and password admin, Examples Ruijie(config)# logging delay-send server 192.168.23.12 mode ftp user admin password admin The following example specifies a TFTP server whose IPv6 address is 2000::1.
  • Page 154: Logging Facility

    Defaults This function is disabled by default. Command Global configuration mode Mode Usage Guide The following example enables delay in sending logs to console and remote terminal. Configuration Ruijie(config)# logging delay-send terminal Examples Related Command Description Commands Platform Description 8.10 logging facility Use this command to configure the device value of the log information in global configuration mode.
  • Page 155 Local use 22 (local6) Local use 23 (local7) Local use The default device value of RGOS is 23 (local 7). Configuration The following example sets the device value of Syslog as kernel: Ruijie(config)# logging facility kern Examples Related Command Description...
  • Page 156: Logging File

    Command Reference Syslog Commands Commands Sets the severity of logs that are allowed to be displayed logging console on the console. Platform Description 8.11 logging file Use this command to save log messages in the log file, which can be saved in hardware disk, expanded FLASH, USB or SD card.
  • Page 157 2 to 16 remain. You can delete these log files manually as needed. Configuration The following example sets the number of log files written into FLASH to 8. Ruijie(config)# logging file numbers 8 Examples Related Command...
  • Page 158 If you want to filter log messages destined to a certain direction, the terminal for instance, configure the terminal parameter. The following example filters log messages destined to the terminal (including the console and the Configuration VTY terminal). Examples Ruijie(config)# logging filter direction terminal Related Command Description Commands Platform...
  • Page 159 The following example configures the “exact-match” filter rule with parameters of module name Configuration Examples LOGIN, log level 5 and mnemonic name LOGOUT. Ruijie(config)# logging filter rule exact-match module LOGIN mnemonic LOGOUT level 5 The following example configures the “single-match” filter rule with the parameter of module name SYS.
  • Page 160 If you configure the filter direction and the filter type without configuring the filter rule, the log messages are not filtered. Configuration The following example sets the filter type to contains-only. Ruijie(config)# logging filter type contains-only Examples Related Command Description...
  • Page 161 The logging flash flush command takes effect only once for each configuration. The log messages cached in the buffer are written into the flash file immediately after configuration. The following example writes log messages in the system buffer into the flash file immediately. Configuration Ruijie(config)# logging flash flush Examples Related Command...
  • Page 162 To avoid writing log messages into the flash file too frequently, it is not recommended to set a short interval. Configuration The following example sets the interval to write log messages into the flash file to 300 seconds. Ruijie(config)# logging flash interval 300 Examples Related Command...
  • Page 163: Logging Monitor

    The log files are stored under the syslog/ directory of the expanded FLASH, Configuration The following example sets the preservation duration of logs whose level is 6 to 10 days. Ruijie(config)# logging life-time level 6 10 Examples Related Command...
  • Page 164: Logging Policy

    Server. This command is the total log switch. If this switch is turned off, no log will be displayed or recorded unless the severity level is greater than 1. Configuration The following example disables the log switch on the device. Ruijie(config)# no logging on Examples Related Command...
  • Page 165 The following example sends logs of the SYS module leveled above 5 to the console and sends logs Examples of the SYS module leveled below 3 to the buffer. Ruijie(config)# logging policy module SYS not-lesser-than 5 direction console Ruijie(config)# logging policy module SYS 3 direction buffer Related...
  • Page 166 The following example sets the number of the logs (including debug) that can be processed in a Examples second as 10. However, the logs with warning or higher severity level are not controlled: Ruijie(config)#logging rate-limit all 10 except warnings Related Command...
  • Page 167 Console and VTY windows of the host, and recorded in cache, expanded FLASH and Syslog Server of the host. Configuration The following example enables the log re-direction function on a device: Ruijie(config)#logging rd on Examples Related Command...
  • Page 168: Logging Server

    The following example sets the maximum number of logs (including debug) that can be re-directed Examples from a slave device to the host each second at 10, excepting logs on and above the warning severity level: Ruijie(config)#logging rd rate-limit 10 except warnings Related Command Description...
  • Page 169 Configuration The following example specifies a syslog server of the address 202.101.11.1: Ruijie(config)# logging server 202.101.11.1 Examples The following example specifies an ipv6 address as AAAA:BBBB:FFFF: Ruijie(config)# logging server ipv6 AAAA:BBBB:FFFF Related Command Description Commands logging on Turns on the log switch.
  • Page 170 Command Reference Syslog Commands Configuration The following example specifies loopback 0 as the source address of the syslog messages: Ruijie(config)# logging source interface loopback 0 Examples Related Command Description Commands logging server Sends logs to the Syslog server. Platform Description 8.27 logging source ip | ipv6...
  • Page 171 Mode Usage Guide This command is used to send performance statistics at a certain interval for the server to monitor the system performance. Configuration The following example enables logging periodically. Ruijie(config)# logging statistic enable Examples Related Command Description Commands Platform Description 8.29 logging statistic interval...
  • Page 172 The available settings include 0, 15, 30, 60 and 120. 0 indicates this function is disabled. Configuration The following example set the interval at which logs are sent to 30 minutes. Ruijie(config)# logging statistic mnemonic TUNNEL_STAT interval 30 Examples Related...
  • Page 173: Logging Trap

    Mode Usage Guide This command enables synchronization function between user input and log output, preventing the user from interrupting when keying in the characters. Ruijie(config)#line console 0 Configuration Ruijie(config-line)#logging synchronous Examples Print UP-DOWN logs on the port when keying in the command, the input command will be output...
  • Page 174 The show logging command displays the configured related parameters and statistics of the log. Configuration The following example enables logs at severity 6 to be sent to the Syslog Server with the address of Examples 202.101.11.22: Ruijie(config)# logging 202.101.11.22 Ruijie(config)# logging trap informational Related Command Description Commands Turns on the log switch.
  • Page 175 The log message is in the format as follows: Mar 22 14:10:40 %CLI-5-EXEC_CMD: Configured from vty0 (192.168.23.68) command-log: logging server 192.168.23.68. The following example enables the logging function to record user operation. Configuration Ruijie(config)# logging user-info command-log Examples Related Command Description...
  • Page 176 After switching the log format, the results of running the show logging and show logging config commands change, Configuration The following example enables the RFC5424 format. Ruijie(config)# service log-format rfc5424 Examples Related Command Description...
  • Page 177 The difference between the private syslog format and the default syslog format lies in the following marks: The private syslog does not have “*” before the timestamp, “:” after the timestamp and “%” before the identifying string. Configuration The following example sets the private syslog format. Ruijie(config)# service private-syslog Examples Related Command Description Commands...
  • Page 178 In addition to the timestamp, you can add serial numbers to the logs, numbering from 1. Then, it is clearly known whether the logs are lost or not and their sequence. Configuration The following example adds serial numbers to the logs. Ruijie(config)# service sequence-numbers Examples Related Command...
  • Page 179 The difference between the standard syslog format and the default syslog format lies in the following marks: The standard syslog does not have “*” before the timestamp and “:” after the timestamp. Configuration The following example sets the standard syslog format. Ruijie(config)# service standard-syslog Examples Related Command Description...
  • Page 180: Service Timestamps

    Command Reference Syslog Commands Command Function Related Displays basic configuration of log modules and Commands show logging log information in the buffer. Platform Description 8.40 service timestamps Use this command to attach timestamp into logs in global configuration mode. Use the no form of this command to remove the timestamp from the logs.
  • Page 181: Show Logging

    The following example enables the timestamp for log and debug information, in format of Datetime, Examples supporting millisecond display. Ruijie(config)# service timestamps debug datetime msec Ruijie(config)# service timestamps log datetime msec Ruijie(config)# end Ruijie(config)# Oct 8 23:04:58.301 %SYS-5-CONFIG I: configured from console by console Related Command Description Commands logging on Turns on the log switch.
  • Page 182 202.101.11.22 logging to 192.168.200.112 Log Buffer (Total 131072 Bytes): have written 1336, 015487: *Sep 19 02:46:13: Ruijie %LINK-3-UPDOWN: Interface FastEthernet 0/24, changed state to up. 015488: *Sep 19 02:46:13: Ruijie %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet 0/24, changed state to up.
  • Page 183 Delay-send logging: 2641 message lines logged logging to 192.168.23.89 by tftp Log Buffer (Total 4096 Bytes): have written 4096, Overwritten 3292 <135>1 2013-07-24T12:19:33.130290Z ruijie - 7 - - Please config the IP address for capwap. <132>1 2013-07-24T12:20:02.80313Z ruijie CAPWAP 4 NO_IP_ADDR - No ip address for capwap.
  • Page 184: Show Logging Config

    Configuration The following example displays the outcome of running the show logging config command with Examples RFC5424 disabled. Ruijie# show logging config Syslog logging: enabled Console logging: level debugging, 15495 messages logged Monitor logging: level debugging, 0 messages logged Buffer logging: level debugging, 15496 messages logged...
  • Page 185 Trap logging syslog server. The following example displays the outcome of running the show logging config command with RFC5424 enabled. Ruijie# show logging Syslog logging: enabled Console logging: level debugging, 4740 messages logged Monitor logging: level debugging, 0 messages logged...
  • Page 186 You can use the show logging command to check whether the log statistics function is enabled. Configuration The following example displays the result of the show logging count command: Ruijie# show logging count Examples Module Name Message Name Sev Occur...
  • Page 187 Count log messages: enable Trap logging: level informational, 15242 message lines logged,0 fail logging to 202.101.11.22 logging to 192.168.200.112 Log Buffer (Total 131072 Bytes): have written 1336, 015492: *Sep 19 02:46:28: Ruijie %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet 0/24, changed state to up.
  • Page 188 Command Reference Syslog Commands 015491: *Sep 19 02:46:28: Ruijie %LINK-3-UPDOWN: Interface FastEthernet 0/24, changed state to up. 015490: *Sep 19 02:46:26: Ruijie %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet 0/24, changed state to down. 015489: *Sep 19 02:46:26: Ruijie %LINK-3-UPDOWN: Interface FastEthernet 0/24, changed state to down.
  • Page 189 <132>1 2013-07-24T12:20:32.250265Z ruijie CAPWAP 4 NO_IP_ADDR - No ip address for capwap. <135>1 2013-07-24T12:20:02.80343Z ruijie - 7 - - Please config the IP address for capwap. <132>1 2013-07-24T12:20:02.80313Z ruijie CAPWAP 4 NO_IP_ADDR - No ip address for capwap.
  • Page 190: Terminal Monitor

    This command can be also executed on the console, but it does not take effect. Configuration The following example allows log information to be printed on the current VTY window: Ruijie# terminal monitor Examples Related Command Description...
  • Page 191 The following example configures the ACS password to be authenticated for the CPE to connect to Configuration Examples the ACS to 123. Ruijie#config terminal Enter configuration commands, one per line. End with CNTL/Z. Ruijie(config)#cwmp Ruijie(config-cwmp)#acs password 123 Ruijie(config-cwmp)# Related Command Description Commands...
  • Page 192 Enter configuration commands, one per line. End with CNTL/Z. Ruijie(config)#cwmp Ruijie(config-cwmp)#acs url http://10.10.10.1:8080/acs Ruijie(config-cwmp)# The following example specifies the URL of the ACS to http://www.test.com/service/tr069servlet. Ruijie#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Ruijie(config)#cwmp Ruijie(config-cwmp)#acs url http://www.test.com/service/tr069servlet...
  • Page 193 The following example configures the ACS username to be authenticated for the CPE to connect to Examples the ACS to admin. Ruijie#config terminal Enter configuration commands, one per line. End with CNTL/Z. Ruijie(config)#cwmp Ruijie(config-cwmp)#acs username admin Ruijie(config-cwmp)# Related Command Description Commands show cwmp configuration Displays the current configuration of CWMP.
  • Page 194 The following example disables the backup and restoration of the main program and configuration file Examples of the CPE. Ruijie#config terminal Enter configuration commands, one per line. End with CNTL/Z. Ruijie(config)#cwmp Ruijie(config-cwmp)#no cpe back-up Ruijie(config-cwmp)# Related Command Description Commands show cwmp configuration Displays the current configuration of CWMP.
  • Page 195 The following example disables the CPE backup function. Configuration Ruijie#config terminal Examples Enter configuration commands, one per line. End with CNTL/Z. Ruijie(config)#cwmp Ruijie(config-cwmp)#no cpe back-up Ruijie(config-cwmp)# Platform Description 9.5 cpe inform Use this command to configure the periodic notification function of the CPE.
  • Page 196 Configuration The following example specifies the periodical notification interval of the CPE to 60 seconds. Ruijie#config terminal Examples Enter configuration commands, one per line. End with CNTL/Z. Ruijie(config)#cwmp Ruijie(config-cwmp)#cpe inform interval 60 Ruijie(config-cwmp)# Related Command Description Commands show cwmp configuration Displays the current configuration of CWMP.
  • Page 197 The following example configures the CPE password to be authenticated for the ACS to connect to Examples the CPE to 123. Ruijie#config terminal Enter configuration commands, one per line. End with CNTL/Z. Ruijie(config)#cwmp Ruijie(config-cwmp)#cpe password 123 Ruijie(config-cwmp)# Related Command Description Commands Displays the current configuration of CWMP.
  • Page 198 The URL of the CPE consists of at most 256 characters. The following example specifies the URL of the CPE to http://10.10.10.1:7547/acs. Configuration Ruijie#configure terminal Examples Enter configuration commands, one per line. End with CNTL/Z. Ruijie(config)#cwmp Ruijie(config-cwmp)#cpe url Hhttp://10.10.10.1:7547/ Ruijie(config-cwmp)# Related Command Description Commands show cwmp configuration Displays the current configuration of CWMP.
  • Page 199 The following example configures the CPE username to be authenticated for the ACS to connect to Examples the CPE to admin. Ruijie#config terminal Enter configuration commands, one per line. End with CNTL/Z. Ruijie(config)#cwmp Ruijie(config-cwmp)#cpe username admin Ruijie(config-cwmp)# Related Command Description Commands show cwmp configuration Displays the current configuration of CWMP.
  • Page 200 Global configuration mode Mode Usage Guide Use this command to enable or disable the CWMP function. Configuration The following example disables the CWMP function. Ruijie#config terminal Examples Enter configuration commands, one per line. End with CNTL/Z. Ruijie(config)#no cwmp Ruijie(config)# Related...
  • Page 201 Command Reference CWMP Commands Ruijie#config terminal Enter configuration commands, one per line. End with CNTL/Z. Ruijie(config)#cwmp Ruijie(config-cwmp)#disable download Ruijie(config-cwmp)# Related Command Description Commands show cwmp configuration Displays the current configuration of CWMP. show cwmp status Displays the running status of CWMP.
  • Page 202 Description Description Defaults Command Privilege EXEC mode Mode Usage Guide Configuration The following example displays the current configuration of CWMP. Ruijie(config-cwmp)#show cwmp configuration Examples CWMP Status : enable ACS URL : http://www.ruijie.com.cn/acs ACS username : admin ACS password : ****** CPE URL : http://10.10.10.2:7547/...
  • Page 203 9.13 show cwmp status Use this command to display the running status of CWMP show cwmp status Parameter Parameter Description Description Defaults Command Privileged EXEC mode Mode Usage Guide Configuration The following example displays the running status of CWMP. Ruijie#show cwmp status Examples...
  • Page 204 Command Reference CWMP Commands CWMP Status : enable Session status : Close Last success session : Unknown Last success session time : Thu Jan 1 00:00:00 1970 Last fail session : Unknown Last fail session time : Thu Jan 1 00:00:00 1970 Session retry times The descriptions to the fields shown after executing the command show cwmp configuration.
  • Page 205 CWMP Commands The following example configures the session timeout period of the CPE to 50 seconds. Configuration Ruijie#config terminal Examples Enter configuration commands, one per line. End with CNTL/Z. Ruijie(config)#cwmp Ruijie(config-cwmp)#timer cpe-timeout 50 Ruijie(config-cwmp)# Related Command Description Commands show cwmp configuration Displays the current configuration of CWMP.
  • Page 206: Show Power

    Command Reference CA-MONITOR Commands 10 CA-MONITOR Commands 10.1 show power Use this command to display power information including that of its basic condition, redundancy, allocation and version and etc. show power] Parameter Parameter Description Description Command Privileged EXEC mode Mode Level Usage Guide This command is used to display power information...
  • Page 207: Show Temperature

    The following example displays the power information of S29XS. Configuration Ruijie#show fan Examples Fan-id Fan-type Status ------ --------- ---------- RG_FAN Ruijie#show fan speed Fan-id Fan-type Status Speed(R/m) Speed-level ------ --------- ---------- ---------- ----------- RG_FAN 5040 The following example displays the power information of S29XS PoE.
  • Page 208 In addition, the active supervisor module generates a Syslog message and the Alarm LED on the panel becomes red. Configuration The following example displays the temperature and threshold configuration of all boards of S29XS. Ruijie#show temperature Examples Slot Card_type...
  • Page 209 Privileged EXEC mode/Global configuration mode/Interface configuration mode Mode Usage Guide Configuration The following example displays the current configuration and status of ZAM. Ruijie# Examples Ruijie#show zam ZAM state : disable ZAM status : Now is idle ZAM manage interface: Mgmt 0 Ruijie#...
  • Page 210 Command Reference ZAM Commands Command Global configuration mode Mode Usage Guide Configuration The following example disables ZAM. Ruijie(config)# no zam Examples Ruijie(config)# Platform Description...
  • Page 211 Usage Guide This command is used to remove the configuration on a VSU device. It validates after the device is restarted. The following example clears the configuration on device 1. Configuration Ruijie(config)# remove configure device 1 Examples Related Command Description...
  • Page 212 Privileged EXEC mode Mode Usage Guide This command is used to display asset information about all independent components in the system Configuration The following example displays asset information of the single physical device. Ruijie#show manuinfo Examples Device 1 Location: Chassis Device name:...
  • Page 213 Device 7 Location: Device name: M12000 FAN Device Serial Number: 52150129A8B0DAF0F0321 Hardware Version: V1.0 The following example displays asset information in VSU mode. Ruijie#show manuinfo Device 1 Location: Chassis 1 Device name: RG S12006 Device Serial Number: 62150129A8B0DAF0F0321 Hardware Version: V1.0...
  • Page 214 Command Reference Module Hot-plugging/ unplugging Commands Device 5 Location: Power 1/1 Device name: RG PD1200I Device Serial Number: 42150129A8B0DAF0F0321 Hardware Version: V1.0 Device 6 Location: Power 1/2 Device name: RG PD1200I Device Serial Number: 42150129A8B0DAF0F0322 Hardware Version: V1.0 Device 7 Location: FAN 1 Device name:...
  • Page 215: Hardware Version

    Command Reference Module Hot-plugging/ unplugging Commands Device Serial Number: 32150129A8B0DAF0F0326 Hardware Version: V1.0 Software Version: RGOS 10.4(3b17) Release 129646 Device 12 Location: Power 2/1 Device name: RG PD1200I Device Serial Number: 42150129A8B0DAF0F0323 Hardware Version: V1.0 Device 13 Location: Power 2/2 Device name: RG PD1200I Device Serial Number:...
  • Page 216 (Optional) Device ID. Defaults Command Privileged EXEC mode. Mode Usage Guide Use this command to display details of the module Ruijie# show version module detail 2 Configuration Device : 1 Examples Slot User Status : none Software Status: none...
  • Page 217 (Optional) Slot number. device-id (Optional) Device ID. Defaults Command Privileged EXEC mode. Mode Usage Guide Ruijie# show version slots Configuration Dev Slot Configured Module Online Module User Status Software Status Examples --- ---- ----------------- ----- -------------- none none 1 2 M8606-24SFP/12GT M8606-24SFP/12GT installed none...
  • Page 218 The configuration takes effect after the device is restarted. Configuration The following example deletes the MAC address saved in the configuration file. Ruijie#no sysmac Examples The following example configures MAC address 00d0.f822.33e2 for the system. Ruijie#sysmac 00d0.f822.33e2 Related...
  • Page 219 Usage Guide Configuration The following example sets the automatic synchronization interval to 60 seconds. Ruijie(config)# redundancy Examples Ruijie(config-red)# auto-sync time-period 60 Redundancy auto-sync time-period: enabled (60 seconds). Ruijie(config-red)# exit The following example disables automatic synchronization. Ruijie(config)# redundancy Ruijie(config-red)# no auto-sync time-period Redundancy auto-sync time-period: disabled.
  • Page 220 Parameter Parameter Description Description Defaults Command Global configuration mode Mode Usage Guide Configuration The following example enters redundancy configuration mode. Ruijie# config terminal Examples Ruijie(config)# redundancy Ruijie(config-red)# exit Related Command Description Commands Platform Description 13.3 redundancy forceswitch Use this command to perform active/standby supervisor module switchover.
  • Page 221: Redundancy Reload

    VSDs. Configuration The following example performs active/standby supervisor module switchover. Ruijie# redundancy forceswitch Examples This operation will reload the master unit and force switchover to the slave unit. Are you sure to continue? [N/y] y...
  • Page 222 Preparing to reload peer! The following example resets device 2 which works as a VSU device. Ruijie# redundancy reload shelf 2 This operation will reload the device 2. Are you sure to continue? [N/y] y Preparing to reload device 2!
  • Page 223 Command Reference Supervisor Module Redundancy Commands Ruijie> enable Examples Ruijie# show redundancy states Redundancy role: master Redundancy state: realtime Auto-sync time-period: 3600 s The following example displays the redundancy state of the standby supervisor module. Ruijie> enable Ruijie# show redundancy states...
  • Page 224: Poe Management Commands

    Description Description This function is disabled by default. Defaults Command Global configuration mode Mode Usage Guide Configuration The following example enables LLDP two-event classification. Ruijie(config)# poe class-lldp enable Examples Ruijie(config)# end Ruijie#write Related Command Description Commands Platform Description 14.2 poe enable Use this command to enable the power over Ethernet (PoE) function on the interface.
  • Page 225 Command Interface configuration mode Mode Usage Guide Configuration The following example disables the PoE function on port GigabitEthernet 0/1, Ruijie(config)# interface GigabitEthernet 0/1 Examples Ruijie(config-if-GigabitEthernet 0/1)# no poe enable Related Command Description Commands Platform Description 14.3 poe legacy Use this command to enable non-standard PD compatibility. Use the no or default form of this command to restore the default setting.
  • Page 226 The maximum power is not set by default. Command Interface configuration mode Mode Usage Guide N/A. Configuration The following example sets the maximum power for port GigabitEthernet 0/1 to 20W. Ruijie(config)# interface GigabitEthernet 0/1 Examples Ruijie(config-if-GigabitEthernet 0/1)# poe max-power 20 Related Command Description Commands Platform Description...
  • Page 227: Poe Mode

    The default mode is auto. Command Global configuration mode Mode Usage Guide The following example sets the PoE management mode to energy-saving mode. Configuration Ruijie# configure Examples Ruijie(config)# poe mode energy-saving Ruijie(config)# end Related Command Description Commands Platform Description 14.6 poe notification-control enable Use this command to enable Trap notification in PoE MIB(RFC3621).
  • Page 228 PD descriptor name, a string no more than 32 characters. Defaults Interface configuration mode Command Mode Usage Guide Configuration The following example sets the PD descriptor for port GigabitEthernet 0/1. Ruijie# configure Examples Ruijie(config)# interface GigabitEthernet 0/1 Ruijie(config-if-GigabitEthernet 0/1)# poe pd-description ap220...
  • Page 229 The following example sets the port GigabitEthernet 0/1 to be disabled from 8:30 to 17:30 every day. Ruijie# configure Examples Ruijie(config)# time-range poe-time Ruijie(config-time-range)# periodic weekdays 8:30 to 17:30 Ruijie(config-time-range)# exit Ruijie(config)# interface GigabitEthernet 0/1 Ruijie(config-if-GigabitEthernet 0/1)# poe power-off time-range poe-time...
  • Page 230: Poe Priority

    Command Interface configuration mode Mode Usage Guide Configuration The following example sets the PoE priority for port GigabitEthernet 0/1 to critical. Ruijie(config)# interface GigabitEthernet 0/1 Examples Ruijie(config-if-GigabitEthernet 0/1)# poe priority critical Ruijie(config-if-GigabitEthernet 0/1)# end Related Command Description Commands Platform Description 14.10 poe uninterruptible-power...
  • Page 231 Power alarm threshold (percentage), in the range from 0 to 99. Defaults The default is 99. Command Global configuration mode Mode Usage Guide Configuration The following example sets the power alarm threshold for the system to 80%. Ruijie(config)# poe waring-power 80 Examples Ruijie(config)# end Ruijie#write Related Command Description...
  • Page 232: Show Poe Interface

    Interface name Defaults Command Privileged EXEC mode. Mode Usage Guide The following example displays the PoE configuration and status in interface GigabitEthernet 0/1. Configuration Ruijie#show poe interface GigabitEthernet 0/1 Examples Interface : Gi0/1 Power enabled : enable Power status : on...
  • Page 233 Mode Usage Guide This command is used to display PoE status or configuration of all ports. Configuration The following example displays PoE status of all ports. Ruijie#show poe interfaces status Examples Interface Power Power Curr Avg Peak Curr Trouble PD...
  • Page 234 0.0W 0.0W 0.0W 0mA 0.0V Gi0/24 enable off 0.0W 0.0W 0.0W 0mA 0.0V The following example displays PoE configuration of all ports. Ruijie#show poe interfaces configuration Interface Power Power Alloc Port Port Power-off Control Status Power Power Priority Legacy Time-range...
  • Page 235 Description Defaults Command Privileged EXEC mode Mode Usage Guide Configuration The following example displays the PoE power supply status. Ruijie#show poe powersupply Examples Device member Power management : auto PSE total power : 1000W PSE total power consumption : 300W...
  • Page 236 Command Reference PoE Management Commands Related Command Description Commands Platform Description...
  • Page 237 This command is used to remove an installation package or all packages in a directory and all installation packages on the local device. Ruijie#clear storage Configuration Remove the whole storage directory?[y/n]y Examples Ruijie#clear storage usb0 Remove the file or directory usb0 from the storage?[y/n]y Ruijie# Verification Check specified url Platforms 15.2 show component...
  • Page 238 Configuration The following example displays all components already installed on the box device and their Examples information. Ruijie# show component Package :sysmonit Version:1.0.1.23cd34aa Build time: Wed Dec 7 00:58:56 2013 Size:12877 Install time :Wed...
  • Page 239 Required packages Name of required packages The following example displays the information of specified components already installed on the box device. Ruijie# show componentbridge package:bridge Version: 2.3.1.1252ea Build time: Wed Dec 7 00:54:56 2013 Size:26945 Install time : Wed Mar 19:23:15 2012...
  • Page 240 This command is used to display the auto-sync upgrade configuration in the system including the Usage Guide policy, range and upgrade package’s path. Prompt The auto-sync information of the system is displayed after running. Ruijie#show upgrade auto-sync Messages auto-sync policy: coordinate auto-sync range: vsu auto-sync package: flash:/eg1000m_main_1.0.0.0f328e91.bin 15.4 show upgrade file...
  • Page 241 This command is used to preview main messages of an installation package after it is downloaded into local file system. Configuration The following example displays the information of an installation package file. Ruijie# show upgrade file flash://bridge_eg1000m_2.3.1.1252ea-1.mips.rpm Examples Name : bridge Version:1.0.1.23cd34aa...
  • Page 242 Parameter Parameter Description Description Command Privileged EXEC mode Mode Default Level The following example displays the upgrade history. Configuration Ruijie#show upgrade history Examples Last Upgrade Information: Time: 2014-08-31 12:15:03 Method: LOCAL Package Name: N18000_RGOS11.0(1)B1_CM_01200616_install.bin Package Type: Distribution Prompt Messages Platforms 15.6 upgrade...
  • Page 243 Command Reference PKG_MGMT Commands This command is used to upgrade an installation package on the device. force Mandatory upgrade Command Privileged EXEC mode Mode Default Level Usage Guide This command is applicable to installation packages of all subsystem components, chassis devices, and feature components.
  • Page 244 Command Reference PKG_MGMT Commands 15.7 upgrade auto-sync package Use this command to configure the path for the auto-sync upgrade. upgrade auto-sync package url Parameter Parameter Description Description The path of installation package. Defaults The default is the last upgrade path. Command Privileged EXEC mode Mode...
  • Page 245 Configuration The following example sets the auto-sync policy of the device based on the version of supervisor Examples modules. Ruijie# upgrade auto-sync policy coordinate Verification Display the current policy for auto-sync upgrade by running the show upgrade auto-sync command. Prompt The prompt message of successful running is displayed.
  • Page 246 This command is applicable to installation packages of all subsystem components, chassis devices, and feature components. This command is used to perform automatic installation, copy and upgrade of files. The following example upgrades the main package. Configuration Ruijie# upgrade download Examples tftp://192.168.201.98/eg1000m_main_1.0.0.0f328e91.bin Accessing tftp://192.168.201.98/eg1000m_main_1.0.0.0f328e91.bin... !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  • Page 247 Command Reference PKG_MGMT Commands The prompt message of successful running is displayed. Prompt Upgrade info [OK]; Messages The installation package is invalid or damaged and needs to be regained for upgrade command. Invalid package file The installation package is not available on the device and needs to be regained for upgrade command.
  • Page 248 Command Reference PKG_MGMT Commands...
  • Page 249 Ethernet Configuration Commands 1. Interface Commands 2. MAC Address Commands 3. Aggregate Port Commands 4. VLAN Commands 5. MAC VLAN Commands 6. Protocol VLAN Commands 7. Private VLAN Commands 8. Voice VLAN Commands 9. MSTP Commands 10. GVRP Commands 11. LLDP Commands 12.
  • Page 250: Interface Commands

    By default, the bandwidth is determined by the actual link rate on the interface. It can be set by the user as well. Configuration The following example sets the bandwidth on the interface to 64 Kbps. Ruijie(config)#interface gigabitEthernet 0/1 Examples Ruijie(config-if-GigabitEthernet 0/1)# bandwidth 64 Related Command Description Commands Platform Description 1.2 carrier-delay...
  • Page 251 Configuration The following example sets the carrier delay of serial interface to 5 seconds. Ruijie(config)# interface gigabitethernet 1/1 Examples Ruijie(config)# carrier-delay 5 The following example sets the carrier delay of serial interface to 100 milliseconds.
  • Page 252: Clear Counters

    If the interface is not specified, the counters on all interfaces will be cleared. Configuration The following example clears the counters on interface gigabitethernet 1/1. Ruijie# clear counters gigabitethernet 1/1 Examples Related Command Description Commands Displays the interface information.
  • Page 253 Usage Guide and member port of the L3 aggregate port. This command is equal to the shutdown and no shutdown commands. Configuration The following example resets the interface gigabitethernet 1/1. Ruijie# clear interface gigabitethernet 1/1 Examples Related Command Description Commands shutdown Disables the interface.
  • Page 254 Usage Guide The duplex mode is associated with the interface type. Use show interfaces to display the duplex mode of the interface The following example specifies the duplex mode for the interface. Configuration Ruijie(config-if)# duplex full Examples Related Command Description...
  • Page 255: Errdisable Recovery

    Mode Use this command to achieve EEE on the interface in Low Power Idle(LPI) mode, Usage Guide Configuration The following example enables EEE on GigabitEthernet 0/1. Ruijie(config)#interface GigabitEthernet 0/1 Examples Ruijie(config-if-GigabitEthernet 0/1)# eee enable Related Command Description Commands Platform Description 1.8 errdisable recovery...
  • Page 256 Usage Guide If the optical module antifake detection is enabled by default, when a non-original optical module is inserted, alarm logs are printed. Configuration The following example enables the optical module antifake detection. Ruijie(config)# fiber antifake enable Examples Related Command Description...
  • Page 257 Interface configuration mode. Mode Usage Guide Use the show interfaces command to display the flow control configuration. Configuration The following example enables flow control on fastEthernet port 1/1. Ruijie(config)# interface gigabitethernet 1/1 Examples Ruijie(config-if)# flowcontrol on Related Command Description Commands Displays the interface information.
  • Page 258: Interface Range

    The following example enters interface configuration mode on multiple interfaces by setting the Examples interface range. Ruijie(config)# interface range gigabitEthernet 0/0, 0/2 Ruijie(config-if-range)# bandwidth 100 The following example enters interface configuration mode on multiple interfaces by defining the macro name.
  • Page 259 Command Reference Interface Commands Ruijie(config-if-range)# bandwidth 100 Related Command Description Commands Platform Description 1.13 line-detect Use this command to detect the cable connection status. line-detect Parameter Parameter Description Description Defaults Interface configuration mode. Command Mode This command is used to detect the line status and locate the problem in case of a line failure, for Usage Guide example, the line is torn down.
  • Page 260 Command Reference Interface Commands Short Field Description Number of line pairs included. For example, the twisted pair includes pairs four pairs of lines. Status of the current line pair: OK, Short or Open. In general, the 100M state twisted pairs A and B are OK, C and D are Short. The 1000M twisted pairs A, B, C and D are all OK.
  • Page 261 Command Reference Interface Commands The following example sets the interval for calculating load on interface GigabitEthernet 0/1 to 180 Configuration seconds. Examples Ruijie(config)# interface gigabitEthernet 0/1 Ruijie(config-if-GigabitEthernet 0/1)# load-interval 180 Related Command Description Commands Platform Description 1.15 logging Use this command to print information on the interface.
  • Page 262 In automatic medium selection mode, the interface adopts the default settings of attributes, such as the speed, duplex mode, and flow control mode. Configuration The following example specifies the medium type for interface gigabitethernet 1/1. Ruijie(config)# interface gigabitethernet 1/1 Examples Ruijie(config-if)# medium-type copeer Related Command...
  • Page 263: Negotiation Mode

    Usage Guide This command is used to set the maximum transmission unit (MTU) supported on the interface. Configuration The following example sets the MTU supported on interface gigabitethernet 1/1 to 9000. Ruijie(config)# interface GigabitEthernet 1/1 Examples Ruijie(config-if-GigabitEthernet)# mtu 9000 Related...
  • Page 264 In general, the auto-negotiation status is determined by interface speed, duplex, flow control and Usage Guide auto-negotiation factor mode. Configuration The following example enables auto-negotiation mode on interface GigabitEthernet 1/1. Ruijie(config)# interface GigabitEthernet 1/1 Examples Ruijie(config-if-GigabitEthernet 1/1)# negotiation mode on Related Command Description Commands Platform Description 1.19 physical-port dither protect...
  • Page 265 The ports that are set as the protected ports can route on L3. Use this command to deny the L3 communication between protected ports. Use the show running-config command to display configuration. The following example configures L3 routing between the protected ports. Configuration Ruijie(config)# protected-ports route-deny Examples Related Command Description...
  • Page 266 If the interface is specified, the EEE status of the specified interface is displayed; otherwise, the EEE status of all interfaces is displayed. Configuration The following example displays EEE status of interface GigabitEthernet 0/1. Examples Ruijie#show eee interface gigabitEthernet 0/1 Interface : Gi0/1 EEE Support : Yes...
  • Page 267: Show Interfaces

    Command Reference Interface Commands Gi0/18 Enable Enable Enable None Gi0/19 Enable Enable Enable None Gi0/20 Enable Enable Enable None Gi0/21 Enable Enable Enable None Gi0/22 Enable Enable Enable None Gi0/23 Enable Enable Enable None Gi0/24 Enable Enable Enable None Gi0/25 Gi0/26 Gi0/27 Gi0/28...
  • Page 268: Rxload

    Command Reference Interface Commands Hardware is Broadcom 5464 GigabitEthernet Interface address is: no ip address MTU 1500 bytes, BW 1000000 Kbit Encapsulation protocol is Bridge, loopback not set Keepalive interval is 10 sec , set Carrier delay is 2 sec RXload is 1 ,Txload is 1 Queueing strategy: FIFO Output queue 0/0, 0 drops;...
  • Page 269 Command Reference Interface Commands Queueing strategy: FIFO Output queue 0/0, 0 drops; Input queue 0/75, 0 drops Switchport attributes: interface's description:"" medium-type is copper lastchange time:0 Day: 0 Hour: 0 Minute:13 Second Priority is 0 admin duplex mode is AUTO, oper duplex is Unknown admin speed is AUTO, oper speed is Unknown flow receive control admin status is OFF,flow send control admin status is OFF,flow receive control oper status is Unknown,flow send control oper status is...
  • Page 270 0 packets output, 0 bytes, 0 underruns , 0 dropped 0 output errors, 0 collisions, 0 interface resets The following example displays the layer-2 information of the Gi0/1. Ruijie# show interfacesgigabitEthernet 0/1 switchport Interface Switchport ModeAccess Native Protected VLAN lists --------- ---------- --------- ------ ------ ---------...
  • Page 271: Table Of Contents

    If you do not specify an interface, the packet statistics on all interfaces are displayed. Configuration The following example displays packet statistics on interface GigabitEthernet 0/1. Ruijie#show interfaces GigabitEthernet 0/1 counters Examples Interface : GigabitEthernet 0/1 5 minute input rate : 9144 bits/sec, 9 packets/sec...
  • Page 272: Inoctets

    (5 seconds). The following example displays the packet statistics on interface GigabitEthernet 0/1 increased during the last sample interval. Ruijie#show interfaces GigabitEthernet 0/1 counters increment Interface : GigabitEthernet 0/1 Packet increment in last sampling interval(5 seconds):...
  • Page 273: Inbroadcastpkts

    Command Reference Interface Commands OutMulticastPkts : 100 The following example displays error packet statistics on interface GigabitEthernet 0/1. Ruijie#show interfaces GigabitEthernet 0/1 counters increment Interface UnderSize OverSize Collisions Fragments ------------ -------------------- -------------------- -------------------- -------------------- Gi0/1 Interface Jabbers CRC-Align-Err Align-Err FCS-Err...
  • Page 274: Outoctets

    Mode Usage Guide If you do not specify an interface, the link state statistics of all interfaces are displayed. Configuration The following example displays the link state statistics of interface GigabitEthernet 0/1. Examples Ruijie# show interfaces GigabitEthernet 0/1 link-state-change statistics...
  • Page 275: Show Interfaces Status

    Mode Usage Guide If you do not specify an interface, the status information of all interfaces is displayed. Configuration The following example displays the status information of interface GigabitEthernet 0/1. Ruijie#show interfaces GigabitEthernet 0/1 status Examples Interface Status Vlan Duplex Speed...
  • Page 276: Show Interfaces Transceiver

    Mode If you do not specify an interface, violation status of all interfaces is displayed. Usage Guide Configuration The following example displays the violation status of interface GigabitEthernet 0/1. Ruijie#show interface gigabitEthernet 0/1 status err-disabled Examples Interface Status Reason -------------------------------- ---------------- ----------------...
  • Page 277 Vendor Serial Number : 101680093602489 The following example displays the alarm message of the transceiver of interface Gigabitethernet 5/4. Ruijie#show interfaces GigabitEthernet 5/4 transceiver alarm gigabitEthernet 5/4 transceiver current alarm information: RX loss of signal The following example displays the diagnostic parameters of the transceiver of interface Gigabitethernet 5/4.
  • Page 278 Command Reference Interface Commands Platform Description 1.28 show interfaces usage Use this command to display bandwidth usage of the interface. show interfaces [ interface-type interface-number ] usage [ up | down ] Parameter Parameter Description Description interface-type (Optional) The interface type and ID. interface-number (Optional) Displays the port up statistics.
  • Page 279 If you use the script to run no shutdown frequently and rapidly, the system may prompt the interface status reversal. The following example disables an interface. Configuration Ruijie(config)# interface aggregateport 1 Examples Ruijie(config-if)# shutdown The following example enables an interface.
  • Page 280 The following example disables the interface from sending LinkTrap on the interface. Configuration Ruijie(config)# interface gigabitEthernet 1/1 Examples Ruijie(config-if)# no snmp trap link-status The following example enables the interface to forward Link trap. Ruijie(config)# interface gigabitEthernet 1/1 Ruijie(config-if)# snmp trap link-status...
  • Page 281 After this command is configured, all interface indexes are saved in the configuration file. After the device is restarted, interface indexes remain the same as before. Configuration The following example enables the interface index persistence. Ruijie(config)# snmp-server if-index persist Examples Related Command...
  • Page 282 Command Reference Interface Commands Ruijie(config-if)# speed 100 Related Command Description Commands show interfaces Displays the interface information. Platform Description 1.33 switchport Use this command to configure a Layer 3 interface. Use the no form of this command to restore the default setting.
  • Page 283 Configuration The following example configures interface gigabitethernet 1/1 as a statistic access port and adds it to Examples VLAN 2. Ruijie(config)# interface gigabitethernet 1/1 Ruijie(config-if)# switchport access vlan 2 Related Command Description Commands Configures the interface as Layer 2 mode switchport mode (switch port mode).
  • Page 284: Switchport Protected

    VLANs in the allowed VLAN list. Use switchport trunk to define the allowed-VLANs list. Configuration The following example specifies a L2 interface (switch port) mode. Ruijie(config-if)# switchport mode trunk Examples Related Command...
  • Page 285: Switchport Trunk

    The ports that are set as the protected ports cannot switch on L2, but can route on L3. A protected Usage Guide port can communicate with an unprotected port. Use the show interfaces command to display configuration. Configuration The following example configures interface gigabitethernet 1/1 as a protected port. Ruijie(config)#interface gigabitethernet 1/1 Examples Ruijie(config-if)# switchport protected Related Command Description...
  • Page 286 Use show interfaces switchport to display configuration. Configuration The following example removes port 1/15 from VLAN 2. Ruijie(config)# interface fastethernet 1/15 Examples Ruijie(config-if)# switchport trunk allowed vlan remove 2 Ruijie(config-if)# end Ruijie# show interfaces fastethernet1/15 switchport Switchport is enabled Mode is trunk port...
  • Page 287: Mac Address Commands

    Privileged EXEC mode. Mode Usage Guide Use the show mac-address-table dynamic command to display all the dynamic MAC addresses. Configuration The following command clears all the dynamic MAC addresses. Ruijie# clear mac-address-table dynamic Examples Related Command Description Commands Displays dynamic MAC address.
  • Page 288 MAC address learning cannot be disabled on the port where the security function is enabled. The security function cannot be configured on the port where address learning is disabled. Configuration The following example disables the port address learning function. Ruijie(config-if)# no mac-address-learning Examples Related Command...
  • Page 289 Global configuration mode. Mode Usage Guide Use show mac-address-table aging-time to display configuration. Configuration The following example sets the aging time of the dynamic MAC address to 500 seconds. Ruijie(config)# mac-address-table aging-time 500 Examples Related Command Description Commands Displays the aging time of the dynamic MAC address.
  • Page 290 Global configuration mode. Mode Usage Guide The filtering MAC address shall not be a multicast address. Configuration The following example configures the filtering MAC address for VLAN 1. Ruijie(config)#mac-address-table filtering 0000.0202.0303 vlan 3 Examples Related Command Description Commands clear mac-address-table filtering Clears the filtering MAC address.
  • Page 291 MAC address trap message. Configuration The following example enables the MAC address notification function. Ruijie(config)# mac-address-table notification Examples Ruijie(config)# mac-address-table notification interval 40 Ruijie(config)# mac-address-table notification history-size 100 Related Command Description Commands snmp-server enable traps Sets the method of handling the MAC address trap message..
  • Page 292 MAC addresses learned dynamically on the VLAN or interface. Configuration The following example sets the maximum number of MAC addresses dynamically learned on VLAN Examples Ruijie#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Ruijie(config)#vlan 1 Ruijie(config-vlan)#max-dynamic-mac-count 160...
  • Page 293 Command Reference MAC Address Commands interface GigabitEthernet 0/1. Ruijie#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Ruijie(config)#interface GigabitEthernet 0/1 Ruijie(config-if-GigabitEthernet 0/1)#max-dynamic-mac-count 160 Related Command Description Commands Platform Description 2.9 show mac-address-learning Use this command to display the MAC address learning.
  • Page 294 The VLAN ID, in the range from 1 to 4094. Defaults Command All modes Mode Usage Guide The following example displays the MAC address. Configuration Ruijie# show mac-address-table address 00d0.f800.1001 Examples Vlan MAC Address Type Interface ------- ------------ -------- -------- 00d0.f800.1001...
  • Page 295 Description Defaults Command All modes. Mode Usage Guide The following example displays the aging time of the dynamic MAC address. Configuration Ruijie# show mac-address-table aging-time Examples Aging time : 300 Related Command Description Commands mac-address-table aging-time Sets the aging time of the dynamic MAC address.
  • Page 296 Total Mac Addresses : 51 Total Mac Address Space Available: 8139 The following example displays the number of MAC address in VLAN 1. Ruijie# show mac-address-table count vlan 1 Dynamic Address Count : 7 Static Address Count : 0 Filter Address Count : 0 Total Mac Addresses The following example displays the number of MAC addresses on interface g0/1.
  • Page 297 It may be a physical port or an aggregate port Defaults Command All modes. Mode Usage Guide Configuration The following example displays the dynamic MAC address. Ruijie# show mac-address-table dynamic Examples Vlan MAC Address Type Interface ------------------------- -------- ------------------- 0000.0000.0001 DYNAMIC gigabitethernet 1/1 0001.960c.a740...
  • Page 298 Command Reference MAC Address Commands The following example displays the filtering MAC address. Configuration Ruijie# show mac-address-table filtering Examples Vlan MAC Address Type Interface ------- ----------------- ------- ----------- 0000.2222.2222 FILTER Not available Related Command Description Commands mac-address-table filtering Configures the filtering MAC address.
  • Page 299 Ruijie#show mac-address-table max-dynamic-mac-count vlan Vlan Limit MAC count Learning ---- ------- --------- -------- The following example displays the MAC address learned dynamically on the specified VLAN. Ruijie#show mac-address-table max-dynamic-mac-count vlan 1 Vlan Limit MAC count Learning ---- ------- --------- --------...
  • Page 300 Whether MAC address learning is disabled on the VLAN. The following example displays the MAC address learned on all interfaces which are configured with the maximum number of the dynamic MAC address. Ruijie#show mac-address-table max-dynamic-mac-count interface Interface Limit MAC count Learning...
  • Page 301 Command Privileged EXEC mode. Mode Usage Guide The following example displays the MAC address notification configuration globally. Configuration Ruijie#show mac-address-table notification Examples MAC Notification Feature : Enabled Interval(Sec): 300 Maximum History Size : 50 Current History Size : 0 Related...
  • Page 302 Defaults Command Privileged EXEC mode Mode Usage Guide Configuration The following example displays all addresses of the specified VLAN. Ruijie# show mac-address-table vlan 1 Examples Vlan MAC Address Type Interface ----- ------------- ------- ------------------ 00d0.f800.1001 STATIC gigabitethernet 1/1 00d0.f800.1002 STATIC gigabitethernet 1/1 00d0.f800.1003 STATIC gigabitethernet 1/1...
  • Page 303 Usage Guide Use show mac-address-table notification interface to display configuration. Configuration The following example enables the MAC address trap notification on interface gigabitethernet 1/1. Ruijie(config)# interface gigabitethernet 1/1 Examples Ruijie(config-if)# snmp trap mac-notification added Related Command Description Commands mac-address-table notification Enables MAC address notification.
  • Page 304 Command Reference Aggregate Port Commands 3 Aggregate Port Commands 3.1 aggregateport load-balance Use this command to configure a global load-balance algorithm for aggregate ports or a load-balance algorithm for an aggregate port . Use the no form of this command to return the default setting. aggregateport load-balance { dst-mac | src-mac | src-dst-mac | dst-ip | src-ip | src-dst ip } no aggregateport load-balance Parameter...
  • Page 305 AP port. After that, the load balancing algorithm configured in global configuration mode takes effect. Configuration The following example configures a load-balance algorithm globally based on the destination MAC Examples address. Ruijie(config)# aggregateport load-balance dst-mac Related Command Description Commands show aggregateport load-balance Displays aggregate port configuration.
  • Page 306 The following example sets the minimum number of AP member ports to 2. Configuration Ruijie(config)# interface GigabitEthernet 0/1 Examples Ruijie(config-if-GigabitEthernet 0/1)# port-group 1 mode active Ruijie(config-if-GigabitEthernet 0/1)# aggregateport minimum member 2 Ruijie(config-if-GigabitEthernet 0/1)# end Ruijie# show interface aggregateport 1 …...
  • Page 307 Otherwise, this command is used to create the aggregate port and then enter its interface configuration mode. Configuration The following example creates AP 5 and enters its interface configuration mode. Ruijie# configure terminal Examples Ruijie(config)# interfaces aggregateport 5 Ruijie(config-if-Aggregateport 5)# end Related Command Description Commands...
  • Page 308 Interface configuration mode Command Mode Usage Guide Configuration This example sets the LACP port priority of interface Gi0/1 to 4096. Ruijie(config)# interface gigabitEthernet 0/1 Examples Ruijie(config-if-GigabitEthernet 0/1)# lacp port-priority 4096 Related Command Description Commands Platform Description 3.6 lacp short-timeout Use this command to configure the short-timeout mode for the LACP AP member port. Use the no form of this command to restore the default setting.
  • Page 309 The default is 32768. Command Global configuration mode. Mode Usage Guide The following example sets the LACP system priority to 4096. Configuration Ruijie(config)# lacp system-priority 4096 Examples Related Command Description Commands Enables the LACP on the port and specifies the port-group key mode { active | passive } aggregation group ID and operation mode.
  • Page 310 Ruijie(config-if-GigabitEthernet 1/3)# port-group 3 The following example specifies the Ethernet interface 2/3 as a member of the LACP AP4 and set the aggregation mode to active. Ruijie(config)# interface gigabitethernet 2/3 Ruijie(config-if-GigabitEthernet 2/3)# port-group 4 mode active Related Command Description Commands...
  • Page 311 Mode Usage Guide If the aggregate port number is not specified, all the aggregate port information will be displayed. Configuration The following example displays the aggregate port configuration. Ruijie# show aggregateport 1 summary Examples AggregatePort MaxPorts SwitchPort Mode Load balance...
  • Page 312 Command Reference Aggregate Port Commands Local information: LACP port Oper Port Port Port Flags State Priority Number State ------------------------------------------------------------------- Gi0/1 bndl 4096 0x3d Gi0/2 bndl 4096 0x3d Gi0/3 bndl 4096 0x3d Partner information: LACP port Oper Port Port Port Flags Priority Dev ID Number...
  • Page 313: Vlan Commands

    The following example adds the interface GigabitEthernet 0/10 to VLAN20. Ruijie# configure terminal Examples SwitchA(config)#vlan 20 SwitchA(config-vlan)#add interface GigabitEthernet 0/10 Ruijie# show interface GigabitEthernet 0/10 switchport Interface Switchport Mode Access Native Protected VLAN lists ---------- -------- ----- ----- ---- ---------- -------...
  • Page 314 Gi0/6,Gi0/7,Gi0/8,Gi0/9,Gi0/10 The following example adds the AggregatePort10 to VLAN20. Ruijie# configure terminal SwitchA(config)#vlan 20 SwitchA(config-vlan)#add interface aggregateport 10 Ruijie# show interface aggregateport 10 switchport Interface Switchport Mode Access Native Protected VLAN lists ---------- -------- ----- ----- ---- ---------- ------- AggregatePort 10 enabled ACCESS 20...
  • Page 315: Show Vlan

    Description vlan-id VLAN ID Defaults All modes Command mode Usage Guide Configuration The following command displays the status of VLAN 1. Ruijie(config-vlan)#show vlan id 20 Examples VLAN Name Status Ports ---- -------------------------------- --------- ----------------------------------- 20 VLAN0020 STATIC Gi0/1 The following command displays the status of all VLANs.
  • Page 316 VLAN ID. If the VLAN ID already exists, the command adds the port to the VLAN. If the port is a trunk port, the operation does not take effect. Ruijie(config)# interface gigabitethernet 1/1 Configuration Ruijie(config-if)# switchport access vlan 2 Examples Related Command...
  • Page 317 VLAN ID. Ruijie(config)# interface gigabitEthernet 0/1 Ruijie(config-if-GigabitEthernet 0/1)# switchport mode hybrid Ruijie(config-if-GigabitEthernet 0/1)#switchport hybrid allowed vlan untagged Ruijie(config-if-GigabitEthernet 0/1)#switchport hybrid allowed vlan add untagged 30 The following example adds the hybrid port to VLAN 40 and VLAN 50 and the VLAN packets going...
  • Page 318 Command Reference VLAN Commands Ruijie(config)# interface gigabitEthernet 0/1 Ruijie(config-if-GigabitEthernet 0/1)#switchport mode hybrid Ruijie(config-if-GigabitEthernet 0/1)#switchport hybrid allowed vlan tagged Ruijie(config-if-GigabitEthernet 0/1)#switchport hybrid allowed vlan tagged The following example removes the hybrid port from VLAN 20. Ruijie(config)# interface gigabitEthernet 0/1 Ruijie(config-if-GigabitEthernet 0/1)#switchport mode hybrid...
  • Page 319 VLAN ID coming in on the hybrid port are taken as native VLAN packets. Configuration The following example configures VLAN 20 as the native VLAN for hybrid port GigabitEthernet 0/1. Ruijie(config-if-GigabitEthernet 0/1)#interface gigabitEthernet 0/1 Examples Ruijie(config-if-GigabitEthernet 0/1)#switchport mode hybrid...
  • Page 320: Switchport Trunk Allowed Vlan

    Ruijie(config-if-GigabitEthernet 0/1)#switchport mode access The following example configures port 1 as a trunk port. Ruijie(config)#int g 0/1 Ruijie(config-if-GigabitEthernet 0/1)# switchport mode trunk The following example configures port 1 as an uplink port. Ruijie(config)#int g 0/1 Ruijie(config-if-GigabitEthernet 0/1)# switchport mode uplink The following example configures port 1 as a hybrid port.
  • Page 321 Configuration Ruijie(config)# interface gigabitEthernet 0/10 Examples Ruijie(config-if-GigabitEthernet 0/10)# switchport mode trunk Ruijie(config-if-GigabitEthernet 0/10)# switchport trunk allowed vlan remove The following example removes trunk port GigabitEthernet 0/10 from VLAN 2. Ruijie(config)# interface gigabitEthernet 0/10 Ruijie(config-if-GigabitEthernet 0/10)# switchport trunk allowed vlan except The following example removes uplink port GigabitEthernet 0/10 from VLAN 10.
  • Page 322: Switchport Trunk Native Vlan

    The following example configures VLAN 10 as the native VLAN for trunk port GigabitEthernet 0/10. Ruijie(config)#interface gigabitEthernet 0/10 Examples Ruijie(config-if-GigabitEthernet 0/10)# switchport mode trunk Ruijie(config-if-GigabitEthernet 0/10)# switch trunk native vlan 10 The following example configures VLAN 10 as the native VLAN for unlink port GigabitEthernet 0/10. Ruijie(config)#interface gigabitEthernet 0/10 Ruijie(config-if-GigabitEthernet 0/10)# switchport mode uplink...
  • Page 323 VLAN ID range. Defaults The default is static VLAN. Command Global configuration mode. mode Usage Guide The following example creates VLAN 10. Configuration Ruijie(config)# vlan 10 Examples Ruijie(config-vlan)# Related Command Description Commands show vlan Displays member ports of the VLAN.
  • Page 324 The MAC VLAN entries configured globally will not take effect on the port unless the MAC VLAN function is enabled on this port. The MAC VLAN function can be enabled on the hybrid port only. Configuration The following example enables MAC VLAN. Ruijie(config-if-interface-id)# mac-vlan enable Examples Related Command Description...
  • Page 325 VLAN priority. Use the no form of this command to remove the static MAC VLAN entry. Configuration The following example configures a static MAC VLAN entry. Ruijie(config)# mac-vlan mac-address 0001.0001.0001 vlan 100 priority 3 Examples Ruijie(config)# mac-vlan mac-address 0002.0002.0000 mask ffff.ffff.0000 vlan...
  • Page 326 If parameters both of mac-address and mask are specified, the MAC-VLAN entries in the specified MAC address range are displayed. Configuration The following example displays all MAC VLAN entries. Ruijie# show mac-vlan all Examples The following MAC VLAN addresses exist: S: Static...
  • Page 327 Use this command to verify whether the MAC VLAN function is enabled on the interface. Configuration The following example displays the interfaces which are enabled with MAC VLAN. Ruijie# show mac-vlan interface Examples MAC VLAN is enabled on following interface:...
  • Page 328: Protocol Vlan Commands

    Usage Guide An interface must work in Trunk/Hybrid mode. Configuration The following example enables the subnet VLAN. Ruijie(config)# interface GigabitEthernet 0/1 Examples Ruijie(config-if-GigabitEthernet 0/1)# switchport Ruijie(config-if-GigabitEthernet 0/1)# switchport mode hybrid Ruijie(config-if-GigabitEthernet 0/1)# protocol-vlan ipv4 Related Command Description Commands no protocol-vlan ipv4...
  • Page 329 It is disabled by default. Command Global configuration mode. mode Usage Guide Configuration The following example configures VLAN 100 for the specified subnet. Ruijie(config)# protocol-vlan ipv4 192.168.100.3 mask 255. 255.255.0 vlan 100 Examples Related Command Description Commands show protocol-vlan ipv4...
  • Page 330 It is disabled by default. Global configuration mode. Command mode Usage Guide Configuration The following example configures the profile for the VLAN. Ruijie(config)# protocol-vlan profile 1 frame-type ETHERII ether-type aarp Examples Ruijie(config)# protocol-vlan profile 2 frame-type LLC DSAP 255 SSAP 255...
  • Page 331 Parameter Description Description Profile index. Defaults Command Privileged EXEC mode. mode Usage Guide Configuration The following example displays the configuration of protocol VLAN. Ruijie#show protocol-vlan Examples mask vlan --------------- --------------- ---- 1.2.1.0 255.255.255.0 interface ipv4 status -------------------- ----------- Gi0/1 enable...
  • Page 332 Command Reference Protocol VLAN Commands Commands Platform Description...
  • Page 333: Private Vlan Commands

    SVI is displayed. Debugging information helps troubleshooting and fault location. The following example enables private VLAN debugging. Configuration Ruijie# debug bridge pvlan Examples The following example disables private VLAN debugging. Ruijie# no debug bridge pvlan Related Command Description Commands Platform Description 7.2 private-vlan...
  • Page 334 Ruijie(config-vlan)#private-vlan isolated Ruijie(config-vlan)#vlan 92 Ruijie(config-vlan)#private-vlan community The following example disables the private VLAN feature using the no private-vlan command. Ruijie(config)#vlan 90 Ruijie(config-vlan)#no private-vlan primary Ruijie(config-vlan)#vlan 91 Ruijie(config-vlan)#no private-vlan isolated Ruijie(config-vlan)#vlan 92 Ruijie(config-vlan)#no private-vlan community The following example disables the private VLAN feature using the default private-vlan command.
  • Page 335 The following example associates the secondary VLAN with the primary VLAN on layer 2. Configuration Ruijie(config)# vlan 22 Examples Ruijie(config-vlan)# private-vlan association add 24-26 The following example removes the association between the secondary VLAN with the primary VLAN. Ruijie(config)# vlan 22...
  • Page 336 Interface configuration mode Command mode Usage Guide Configuration The following example associates the secondary VLAN with the primary VLAN on layer 3. Ruijie(config)# interface vlan 22 Examples Ruijie(config-if)# private-vlan mapping add 24-26 Related Command Description Commands show vlan private-vlan Platform Description 7.5 show vlan private-vlan...
  • Page 337 Command Reference Private VLAN Commands Defaults All modes Command mode Usage Guide Configuration The following example displays the private VLAN configuration. Ruijie# show vlan private-vlan Examples VLAN Type Status Routed Ports Associated VLANs ----- ---------- -------- -------- ------------------------------ ------------------ primary...
  • Page 338 The following example applies the private host mode to the interface. Configuration Ruijie(config)# interface gigabitEthernet0/2 Examples Ruijie(config-if)# switchport mode private-vlan host The following example applies the promiscuous mode to the interface. Ruijie(config)# interface gigabitEthernet 0/2 Ruijie(config-if-GigabitEthernet 0/2)#sw mode private-vlan promiscuous...
  • Page 339 The following example associates the secondary VLAN with the primary VLAN on the host port. Configuration Ruijie(config)# interface gigabitEthernet 0/1 Examples Ruijie(config-if)# switchport mode private-vlan host Ruijie(config-if)# switchport private-vlan host-association 22 23 Ruijie(config-if)# default switchport private-vlan host-asscioation Ruijie(config-if)# switchport private-vlan host-association 22 25 Related Command...
  • Page 340 Command Reference Private VLAN Commands Ruijie(config-if)# switchport private-vlan mapping 22 add 23-25 Related Command Description Commands show vlan private-vlan Platform Description...
  • Page 341: Voice Vlan Commands

    Privileged EXEC mode Command mode Usage Guide Configuration The following example displays the Voice VLAN configurations and the current state. Ruijie(config)# show voice vlan Examples Voice VLAN status: ENABLE //Voice VLAN is enabled Voice VLAN ID: 2 //Voice VLAN ID...
  • Page 342: Show Voice Vlan Oui

    All modes. Command Privileged EXEC mode mode Usage Guide Configuration The following example displays the OUI address. Ruijie(config)# show voice vlan oui Examples Mask Description --------------- --------------- --------------- 0001.e300.0000 ffff.ff00.0000 Siemens phone 0003.6b00.0000 ffff.ff00.0000 Cisco phone 0004.0d00.0000 ffff.ff00.0000 Avaya phone 0060.b900.0000 ffff.ff00.0000 Philips/NEC phone...
  • Page 343: Voice Vlan

    Voice VLAN function. Configuration The following example sets the VLAN2 as the Voice VLAN. Ruijie(config)# vlan 2 Examples Ruijie(config-vlan)# exit Ruijie(config)# voice vlan 2 Related Command Description Commands show voice vlan Display Voice VLAN configurations and the current state.
  • Page 344: Voice Vlan Aging

    If the device has not received any voice packets from the port within the aging time, this Voice VLAN will be removed from this port. The aging time is valid for the auto-mode only. The following example sets the Voice VLAN aging time to 10 minutes. Configuration Ruijie(config)# voice vlan aging 10 Examples Related Command Description...
  • Page 345 You can improve the Voice VLAN priority level and the session quality, by modifying the Voice VLAN CoS and DSCP value. Configuration The following example sets the Voice VLAN CoS value to 5. Ruijie(config)# voice vlan cos 5 Examples Related Command...
  • Page 346: Voice Vlan Enable

    Access Port, Trunk Port, Hybrid Port, Private VLAN host port, Private VLAN promiscuous port and Uplink port on the Ruijie products. With the global Voice VLAN disabled, although the Voice VLAN can be enabled on the port, it is invalid.
  • Page 347: Voice Vlan Mode Auto

    The Voice VLAN OUI address cannot be the multicast address and the configured mask shall be continuous. Configuration The following example sets the OUI address 0012.3400.0000 as the valid address for the Voice Examples VLAN. Ruijie(config)# voice vlan mac-address 0012.3400.0000 mask ffff.ff00.0000 description Company A Related Command Description Commands...
  • Page 348 Voice VLAN for the normal function performance. 3. The Trunk Port/Hybrid Port on the Ruijie product can transmit the packets in all VLANs by default. First remove the Voice VLAN from the allowed VLAN list for the port, then enable the Voice VLAN to ensure that the port disconnecting with the voice device cannot be added to the Voice VLAN, or the port not used for a long time can be still in the Voice VLAN.
  • Page 349: Voice Vlan Security Enable

    Voice VLAN tag are checked. For other packets carried with non-voice vlan tag that free from the Voice VLAN security/normal mode, the devices forward or discard those packets according to the VLAN rule. Configuration The following example enables the Voice VLAN security mode. Ruijie(config)# voice vlan security enable Examples Related Command Description...
  • Page 350 Command Reference Voice VLAN Commands Description...
  • Page 351: Mstp Commands

    MAC address. Configuration The following example indicates only the BPDU with 00d0.f800.1e2f as the source MAC address will Examples be received by interface Gi 1/1 . Ruijie(config)# interface gigabitethernet 1/1 Ruijie(config-if-interface-id-interface-id)# bpdu src-mac-check 00d0.f800.1e2f Related Command Description...
  • Page 352 STP, BPDU transparent transmission can help implement STP calculation. BPDU transparent transmission works only when STP is disabled. Configuration The following example enables BPDU transparent transmission. Ruijie(config)# bridge-frame forwarding protocol bpdu Examples Related Command Description...
  • Page 353 The following example clears the statistics of the sent and received STP packets. Ruijie# clear spanning-tree counters Examples The following example clears the statistics of the sent and received packets on interface Gi 0/1. Ruijie# clear spanning-tree counters interface gigabitethernet 0/1 Related Command Description...
  • Page 354 Instance ID. For STP and RSTP protocols, only instance 0 is valid. Defaults Command Privileged EXEC mode Mode Usage Guide The following example clears STP topology change record. Configuration Ruijie# show spanning-tree mst 0 topochange record Examples Topology change information on mst 0: Time Interface Old status New status Type...
  • Page 355 10. By default, all VLANs are in instance 0. Use the no form of this command to remove VLAN from instance 1-64. If you create 64 instances by stacking on a Ruijie device with a small memory (e.g., 64M), the memory may be undersized. It is recommended to limit stacking instance number Configuration This example enters MST mode and maps VLAN 3 and 5-10 to MST instance1.
  • Page 356 If you want to BPDU TUNNEL globally, enable BPDU TUNNEL on the interface first. Usage Guide The following example enables BPDU TUNNEL globally. Configuration Ruijie(config)# l2protocol-tunnel stp Examples Ruijie(config)# show l2protocol-tunnel stp L2protocol-tunnel: stp Enable L2protocol-tunnel destination mac address: 01d0.f800.0005 Related Command Description...
  • Page 357 Usage Guide If you want to BPDU TUNNEL globally, enable BPDU TUNNEL on the interface first. The following example enables BPDU TUNNEL on the interface. Configuration Ruijie(config-if-interface-id)# l2protocol-tunnel stp enable Examples Ruijie(config-if-interface-id)# show l2protocol-tunnel stp L2protocol-tunnel: stp Enable L2protocol-tunnel destination mac address: 01d0.f800.0005...
  • Page 358 The available STP address includes 01d0.f800.0005, 011a.a900.0005, 010f.e200.0003, Usage Guide 0100.0ccd.cdd0, 0100.0ccd.cdd1, and 0100.0ccd.cdd2. Configuration The following example configures the STP address for transparent transmission through BPDU Examples TUNNEL. Ruijie(config)# l2protocol-tunnel stp tunnel-dmac 011a.a900.0005 Related Command Description Commands Platform Description 9.10 name...
  • Page 359 Displays MST region information. Configuration This example sets revision number to1. Ruijie(config)# spanning-tree mst configuration Examples Ruijie(config-mst)# revision 1 Ruijie(config-mst)# show spanning-tree mst configuration Multi spanning tree protocol : Enable Name Revision : 1 Instance Vlans Mapped -------- --------------------------------------------...
  • Page 360 Privileged EXEC mode / Global configuration mode / Interface configuration mode Mode Usage Guide The following example displays BPDU TUNNEL configuration. Configuration Ruijie# show l2protocol-tunnel stp Examples L2protocol-tunnel: stp Enable L2protocol-tunnel destination mac address:011a.a900.0005 GigabitEthernet 0/1 l2protocol-tunnel stp enable Related...
  • Page 361 Privileged EXEC mode, global configuration mode and interface configuration mode. Mode Usage Guide Configuration The following example displays the global spanning-tree configuration. Ruijie# show spanning-tree hello-time Examples The following example displays the sent and received STP packets. Ruijie# show spanning-tree counters ---------------------- STP BPDU count ----------------------...
  • Page 362 Privileged EXEC mode, global configuration mode and interface configuration mode. Mode Usage Guide Configuration The following example displays the STP configuration on interface Gi 0/1. Ruijie# show spanning-tree int gi 0/1 Examples PortAdminPortFast : Disabled PortOperPortFast : Disabled PortAdminAutoEdge : Enabled...
  • Page 363 Command Privileged EXEC mode/Global configuration mode/Interface configuration mode Mode Usage Guide The following example displays the information of MST and instances. Configuration Ruijie# show spanning-tree mst configuration Examples Multi spanning tree protocol : Enable Name : test Revision : 0...
  • Page 364 Privileged EXEC mode / Global configuration mode / Interface configuration mode Command Mode Usage Guide Configuration The following example displays the STP topology change record of instance 0. Ruijie# show spanning-tree mst 0 topochange record Examples Topology change information on mst 0: Time Interface Old status...
  • Page 365 Command Reference MSTP Commands Time The time when the topology changes. Interface The interface whose topology changes. Old status Old STP status on the interface. New status New STP status on the interface. Type Topology change may be caused by the following causes: Normal: UP/DOWN state change on the interface,...
  • Page 366 If the values do not according with the condition, the settings do not work. The following example enables the spanning-tree function. Configuration Ruijie(config)# spanning-tree Examples The following example configures the BridgeForwardDelay. Ruijie(config)# spanning-tree forward-time 10 Related Command Description Commands show spanning-tree Displays the global STP configuration.
  • Page 367 BPDU. You can run the spanning-tree autoedge disabled command to disable Auto Edge. Configuration The following example disables Autoedge on the interface. Ruijie(config)# interface gigabitethernet 1/1 Examples Ruijie(config-if-interface-id-interface-id)# spanning-tree autoedge disabled Related...
  • Page 368 BPDU. Run command errdisable recovery [ interval seconds ] to recover the interface in Error-disabled state. The following example enables the BPDU guard function on the interface. Configuration Ruijie(config)# interface gigabitethernet 1/1 Examples Ruijie(config-if-interface-id-interface-id)# spanning-tree bpduguard enable Related Command Description...
  • Page 369 Usage Guide If the compatibility mode is enabled on a port, this port will add different MSTI information into the to-be-sent BPDU based on the current port to realize interconnection between Ruijie devices and other SPs' devices. The following example enables the compatibility mode on interface Gi 0/1.
  • Page 370 MSTP Commands receipt failure. The loop guard function and root guard function cannot be enabled at the same time. Configuration The following example enables loop guard on interface Gi 0/1. Ruijie(config)# interface gigabitethernet 0/1 Examples Ruijie(config-if-interface-id)# spanning-tree guard loop Related Command...
  • Page 371 If root guard is enabled, the current root bridge will not change due to incorrect configuration or illegal packet attacks. The loop guard function and root guard function cannot be enabled at the same time. Configuration The following example enables root guard on the interface. Ruijie(config)# interface gigabitethernet 0/1 Examples Ruijie(config-if-interface-id)# spanning-tree guard root Related Command...
  • Page 372 Usage Guide If TC filter is enabled on a port, the port does not process received TC packets. Configuration The following example enables the tc filtering on the interface. Ruijie(config)# interface gigabitethernet 0/1 Examples Ruijie(config-if-interface-id)# spanning-tree ignore tc Related Command...
  • Page 373 Enabling loop guard on a root port or backup port will prevent possible loops caused by BPDU receipt failure. Configuration The following example enables loop guard globally to prevent the root port or backup port from Examples generating loop since they cannot receive bpdu. Ruijie(config)# spanning-tree loopguard default Related Command Description Commands Platform Description 9.28 spanning-tree max-hops...
  • Page 374 BPDU message times out. The device will drop the BPDU message whose Hop Count is 0. Changing the max-hops command affects all instances. Configuration This example sets the max-hops of the spanning tree to 10 for all instances. Ruijie(config)# spanning-tree max-hops 10 Examples Related Command...
  • Page 375 Global configuration mode. Usage Guide However, some vendors' devices do not work according to 802.1 protocol standards, possibly causing incompatibility. If other vendors' devices are incompatible with Ruijie devices, run this command to switch the STP mode to a lower version. Configuration The following example sets the STP version.
  • Page 376 Command Reference MSTP Commands Ruijie(config-mst)# name region 1 Ruijie(config-mst)# revision 1 Ruijie(config-mst)# show spanning-tree mst configuration Multi spanning tree protocol : Enable Name : region1 Revision : 1Instance Vlans Mapped ---------- --------------------- 1-2,4,11-4094 3,5-10 ----------------------------------- Ruijie(config-mst)# exit Ruijie(config)# Related Command...
  • Page 377 A higher cost value means a higher path cost. Usage Guide Configuration This example sets the path cost to 400 on the interface associated with instances 3. Ruijie(config)# interface gigabitethernet 1/1 Examples Ruijie(config-if)# spanning-tree mst 3 cost 400 Related Command Description Commands show spanning-tree mst Displays the MSTP information of an interface.
  • Page 378 Command Reference MSTP Commands Configuration This example sets the priority of gigabitethernet 1/1 to 10 in instance 20. Ruijie(config)# interface gigabitethernet 1/1 Examples Ruijie(config-if-interface-id)# spanning-tree mst 20 port-priority 0 Related Command Description Commands show spanning-tree mst Displays the MSTP information of an interface.
  • Page 379 If the port path cost uses the default value, the device automatically calculates the port path cost based on the port rate. Configuration The following example configures the path cost of the port. Ruijie(config-if)# spanning-tree pathcost method long Examples Related Command...
  • Page 380 Port Fast Operational State becomes disabled due to receipt of BPDUs, the port can properly run the STP algorithm and enter the forwarding state. The following example enables the portfast on the interface. Configuration Ruijie(config)# interface gigabitethernet 1/1 Examples Ruijie(config-if-interface-id)# spanning-tree portfast Related...
  • Page 381 Command Reference MSTP Commands The following example enables the BPDU filter function globally. Configuration Ruijie(config)# spanning-tree portfast bpdufilter default Examples Related Command Description Commands show spanning-tree interface Displays the global STP configuration. Platform Description 9.37 spanning-tree portfast bpduguard default Use this command to enable the BPDU guard globally. Use the no form of this command to restore...
  • Page 382 This function is disabled by default. Command Global configuration mode. Mode Usage Guide Configuration The following example enables the portfast feature on all interfaces globally. Ruijie(config)# spanning-tree portfast default Examples Related Command Description Commands Displays the global STP configuration. show spanning-tree interface...
  • Page 383 Command Reference MSTP Commands The following example resets STP. Configuration Ruijie(config)# spanning-tree reset Examples Related Command Description Commands show spanning-tree Displays the global STP configuration. show spanning-tree interface Displays the STP configuration of the interface. Platform Description 9.40 spanning-tree tc-guard Use this command to enable tc-guard on the interface to prevent the spread of TC messages.
  • Page 384 Description Defaults This function is enabled by default. Command Global configuration mode. Mode Usage Guide Configuration The following example enables tc-protection globally. Ruijie(config)# spanning-tree tc-protection Examples Related Command Description Commands Platform Description 9.42 spanning-tree tc-protection tc-guard Use this command to enable tc-guard to prevent TC packets from being flooded. Use the no form of this command to restore the default setting.
  • Page 385 Command Reference MSTP Commands The following example enables tc-guard to prevent TC packets from being flooded. Configuration Ruijie(config)# spanning-tree tc-protection tc-guard Examples Related Command Description Commands Platform Description 9.43 spanning-tree tx-hold-count Use this command to configure the TxHoldCount of the STP, the maximum number of the BPDU messages sent in one second.
  • Page 386: Gvrp Commands

    For example, the device not enabled with GVRP needs to transmit GVRP PDUs frames transparently to ensure proper GVRP topology calculation. Configuration The following example enables GVRP PDUs transparent transmission. Ruijie(config)# bridge-frame forwarding protocol gvrp Examples Related Command...
  • Page 387: Gvrp Applicant State

    Defaults Command Privileged EXEC mode. mode Usage Guide Use the show gvrp statistics to display the statistics. Configuration The following example clears GVRP statistics. Ruijie# clear gvrp statistics all Examples Related Command Description Commands Platform Description 10.3 gvrp applicant state Use this command configures the GVRP advertisement mode on the interface..
  • Page 388: Gvrp Enable

    Global configuration mode. Command mode Usage Guide Use the show gvrp configuration to display the configuration. Configuration The following example enables dynamic VLAN creation. Ruijie(config)# gvrp dynamic-vlan-creation enable Examples Related Command Description Commands show gvrp configuration Displays the GVRP configurations.
  • Page 389 Disables dynamic VLAN creation/registration/canceling on the port. Defaults Dynamic VLAN creation/registration/canceling is enabled by default, Interface configuration mode. Command mode Usage Guide Configuration The following example sets the registration mode. Ruijie(config-if)# gvrp registration mode normal Examples Related Command Description...
  • Page 390: Gvrp Timer

    Usage Guide Use the show gvrp configuration to display the configuration. Use the no gvrp timer command to restore join, leave and leaveall timer to default settings. Configuration The following example configures the join timer. Ruijie(config)# gvrp timer join 200 Examples...
  • Page 391 If you want to enable global GVRP PDUs TUNNEL, enable GVRP PDUs TUNNEL on the interface first. Configuration The following example enables GVRP PDUs TUNNEL globally. Ruijie(config)# l2protocol-tunnel gvrp Examples Ruijie(config)# show l2protocol-tunnel gvrp L2protocol-tunnel: Gvrp Disable L2protocol-tunnel destination mac address:01d0.f800.0006 Related Command Description...
  • Page 392 If you want to enable global GVRP PDUs TUNNEL, enable GVRP PDUs TUNNEL on the interface first. Configuration The following example enables GVRP PDUs TUNNEL on the interface. Ruijie(config-if-interface-id)# l2protocol-tunnel gvrp enable Examples Ruijie(config-if-interface-id)# show l2protocol-tunnel gvrp L2protocol-tunnel: Gvrp Disable L2protocol-tunnel destination mac address:01d0.f800.0006...
  • Page 393: Show Gvrp Configuration

    Usage Guide The available MAC address f ranges from 01d0.f800.0006 to 011a.a900.0006. Configuration The following example configures the MAC address for transparent transmission in GVRP PDUs Examples TUNNEL. Ruijie(config)# l2protocol-tunnel gvrp tunnel-dmac 011a.a900.0006 Related Command Description Commands Platform Description 10.11 show gvrp configuration...
  • Page 394: Show Gvrp Statistics

    Interface id. Defaults Command Privileged EXEC mode mode Usage Guide Use the show gvrp statistics to display the statistics of one interface or all interfaces. Ruijie# show gvrp statistics gigabitethernet 1/1 Configuration Interface GigabitEthernet 3/1 Examples RecValidGvrpPdu RecInvalidGvrpPdu RecJoinEmpty...
  • Page 395 Command Reference GVRP Commands RecJoinIn RecEmpty RecLeaveEmpty RecLeaveIn RecLeaveAll SentGvrpPdu SentJoinEmpty SentJoinIn SentEmpty SentLeaveEmpty 0 SentLeaveIn SentLeaveAll JoinIndicated LeaveIndicated 0 JoinPropagated 0 LeavePropagated 0 Field Description RecValidGvrpPdu Number of received valid GPDU packets. RecInvalidGvrpPdu Number of received unvalid GPDU packets. RecJoinEmpty/ SentJoinEmpty Number of received/sent JoinEmpty messages.
  • Page 396 Command Privileged EXEC mode. mode Usage Guide Use the show gvrp status command to display the GVRP status. The following example displays the GVRP status. Configuration Ruijie# show gvrp status Examples VLAN 1 Dynamic Ports: DVLAN 2 Dynamic Ports: Field...
  • Page 397 GVRP Commands Privileged EXEC mode/Global configuration mode/Interface configuration mode Command mode Usage Guide Configuration The following example displays GVRP PDUs TUNNEL configuration. Ruijie# show l2protocol-tunnel gvrp Examples L2protocol-tunnel: Gvrp Enable L2protocol-tunnel destination mac address:011a.a900.0006 GigabitEthernet 0/1 l2protocol-tunnel gvrp enable Related Command...
  • Page 398: Lldp Commands

    Command Reference LLDP Commands 11 LLDP Commands 11.1 { voice | voice-signaling } vlan Use this command to configure the LLDP network policy. Use the no form of this command to delete the policy. { voice | voice-signaling } vlan { { vlan-id [ cos cvalue | dscp dvalue ] } | { dot1p [ cos cvalue | dscp dvalue ] } | none | untagged } no { voice | voice-signaling } vlan Parameter...
  • Page 399 Configuration The following example configures the LLDP network policy (profile-num is 1). Examples Ruijie#config Ruijie(config)#lldp network-policy profile 1 Ruijie(config-lldp-network-policy)# voice vlan untagged Ruijie(config-lldp-network-policy)# voice-signaling vlan 3 cos 4 Ruijie(config-lldp-network-policy)# voice-signaling vlan 3 dscp 6 Related Command Description Commands show lldp network-policy profile [ profile-num ] Displays the LLDP network policy.
  • Page 400 This command is used to configure a common LLDP address in LLDP Civic address configuration Usage Guide mode. Configuration The following example configures an LLDP Civic Address (ID: 1). Ruijie#config Examples Ruijie(config)# lldp location civic-location identifier 1 Ruijie(config-lldp-civic)# country CH Ruijie(config-lldp-civic)# city Fuzhou Related Command Description Commands...
  • Page 401: Clear Lldp Statistics

    LLDP statistics of the specified interface Configuration The following example clears LLDP statistics of interface 1. Ruijie# clear lldp statistics interface GigabitEthernet 0/1 Examples Ruijie# show lldp statistics interface GigabitEthernet 0/1 Lldp statistics information of port [GigabitEthernet 0/1]...
  • Page 402 If the interface parameter is not specified, the LLDP neighbor information on all interfaces is cleared. Configuration The following example clears the LLDP neighbor information on interface 1. Ruijie# show lldp neighbors interface GigabitEthernet 0/1 Examples Lldp statistics information of port [GigabitEthernet 0/1]...
  • Page 403 This command is used to configure the device type in a common LLDP address in LLDP Civic Usage Guide address configuration mode. Configuration The following example sets the device type to switch. Ruijie#config Examples Ruijie(config)# lldp location civic-location identifier 1 Ruijie(config-lldp-civic)# device-type 1 Related Command Description Commands show lldp location civic-location { identifier id Displays LLDP Civic Address information.
  • Page 404: Lldp Enable

    LLDP takes effect on an interface only when LLDP is enabled globally. Configuration The following example disables LLDP globally and on the interface. Examples Ruijie#config Ruijie(config)#no lldp enable Ruijie(config)#interface gigabitethernet 0/1 Ruijie(config-if)# no lldp enable Related Command Description Commands Displays LLDP status information. show lldp status...
  • Page 405: Examples Ruijie(Config)# Interface Gigabitethernet

    To guarantee the normal communication between local device and neighbor device, the same LLDP packet encapsulation format must be used. The following example sets LLDP packet encapsulation format to Configuration SNAP.Ruijie#config Examples Ruijie(config)#interface gigabitethernet 0/1 Ruijie(config-if)#lldp encapsulation snap Related Command Description Commands show lldp status Displays LLDP status information.
  • Page 406 The default is 3. Command Global configuration mode. Mode Usage Guide The following example sets the number of fast sent LLDP packets to 5. Configuration Ruijie#config Examples Ruijie(config)#lldp fast-count 5 Related Command Description Commands show interface status Displays LLDP status information. Platform Description 11.11 lldp hold-multiplier...
  • Page 407 Mode This command can be used to enter the LLDP Civic Address configuration mode. Usage Guide The following example creates the Civic Address information in LLDP MED-TLV as follows: set id to Configuration Examples Ruijie#config Ruijie(config)#lldp location civic-location identifier 1...
  • Page 408 Usage Guide This command is used to configure an emergency number. Configuration The following example sets an emergency number. Ruijie#config Examples Ruijie(config)#lldp location elin identifier 1 elin-location 085283671111 Related Command Description Commands show lldp location elin-location { identifier Displays an LLDP emergency number.
  • Page 409: Lldp Mode

    If the IPv6 address is still not found, the MAC address of the device will be advertised as the management address. Configuration The following example configures the management address advertised in LLDP packets to Examples 192.168.1.1. Ruijie#config Ruijie(config)#interface gigabitethernet 0/1 Ruijie(config-if)#lldp management-address-tlv 192.168.1.1 Related Command Description Commands show lldp local-information...
  • Page 410 In LLDP network-policy mode, the { voice | voice-signaling } vlan command can be used to configure the specific network policy. The following example creates an LLDP network policy whose ID is 1. Configuration Examples Ruijie#config Ruijie(config)#lldp network-policy profile 1...
  • Page 411 The administrator can monitor the network operation status according to such information. Configuration The following example configures LLDP Trap. Examples Ruijie#config Ruijie(config)#interface gigabitethernet 0/1 Ruijie(config-if)#lldp notification remote-change enable Related Command Description Commands Displays LLDP status information. show lldp status...
  • Page 412 LLDP information change is detected during this interval, traps will be sent to the network management server. Configuration The following example sets the interval of sending LLDP Traps to 10 seconds. Examples Ruijie#config Ruijie(config)#lldp timer notification-interval 10 Related Command Description Commands show lldp status Displays LLDP status information.
  • Page 413 To prevent LLDP from being initialized too frequently due to the frequent operating mode change, you Usage Guide can configure port initialization delay. Configuration The following example sets LLDP port initialization delay to 3 seconds. Examples Ruijie#config Ruijie(config)#lldp timer reinit-delay 3 Related Command Description Commands show lldp status Displays LLDP status information.
  • Page 414 Command Global configuration mode. Mode Usage Guide The following example sets the interval of sending the LLDP packets to 10 seconds. Configuration Examples Ruijie#config Ruijie(config)#lldp timer tx-interval 10 Related Command Description Commands show lldp status Displays LLDP status information. Platform Description 11.22 lldp tlv-enable...
  • Page 415 Command Reference LLDP Commands no lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name } | dot1-tlv { all | port-vlan-id | protocol-vlan-id | vlan-name } | dot3-tlv { all | link-aggregation | mac-physic | max-frame-size | power } | med-tlv { all | capability | inventory | location { civic-location | elin } identifier id | network-policy profile [ profile-num ] | power-over-ethernet } } Parameter...
  • Page 416 Ruijie(config-if-GigabitEthernet 0/1)#lldp tlv-enable med-tlv location civic-location identifier 1 The following example applies the emergency number (ID: 1) on the 0/1 interface. Ruijie#config Ruijie(config)#interface gigabitethernet 0/1 Ruijie(config-if-GigabitEthernet 0/1)#lldp location elin identifier 1 Related Command Description Commands Displays the attributes of advertisable TLVs...
  • Page 417 No parameter: display all LLDP information, including global and interface-based LLDP information. Configuration The following example displays the device information to be sent to neighbor device. Examples Ruijie# show lldp local-information Global LLDP local-information: Chassis ID type : MAC address Chassis id : 00d0.f822.33aa...
  • Page 418 Command Reference LLDP Commands Management address subtype : 802 mac address Management address : 00d0.f822.33aa Interface numbering subtype : Interface number Object identifier 802.1 organizationally information Port VLAN ID Port and protocol VLAN ID(PPVID) : 1 PPVID Supported : YES PPVID Enabled : NO VLAN name of VLAN 1...
  • Page 419 Command Reference LLDP Commands System capabilities supported Capabilities supported by the system System capabilities enabled Capabilities currently enabled by the system LLDP-MED capabilities LLDP-MED capabilities supported by the system MED device class, which is divided into 2 categories: network connectivity device and terminal device. Network connectivity device Class I: normal terminal device Device class...
  • Page 420 If the interface name is specified, the address or emergency number configured on the interface is displayed. If no parameter is specified, all addresses or emergency numbers are displayed. Configuration The following example displays all addresses. Examples Ruijie# show lldp location civic-location static LLDP Civic location information --------------------------...
  • Page 421: Show Lldp Neighbors

    Additional location : aaa Ports : Gi0/1 -------------------------- Identifier : tee -------------------------- The following example displays all emergency numbers. Ruijie# show lldp location elin-location static Elin location information -------------------------- Identifier : t Elin : iiiiiiiiii Ports : Gi1/0/3 -------------------------- Related...
  • Page 422 If the interface parameter is specified, the neighboring device information received on the specified interface is displayed. Configuration The following example displays the neighboring device information received on all ports. Examples Ruijie# show lldp neighbors detail Lldp neighbor-information of port [GigabitEthernet 0/1] Neighbor index Device type : LLDP Device...
  • Page 423 Command Reference LLDP Commands 802.1 organizationally information Port VLAN ID Port and protocol VLAN ID(PPVID) : 1 PPVID Supported : YES PPVID Enabled : NO VLAN name of VLAN 1 : VLAN0001 Protocol Identity 802.3 organizationally information Auto-negotiation supported : YES Auto-negotiation enabled : YES PMD auto-negotiation advertised : 1000BASE-T full duplex mode, 100BASE-TX full...
  • Page 424 Command Reference LLDP Commands Object identifier Object ID of management address MED device type: network connectivity device and terminal device Network connectivity device: Class I: general terminal device Device class Class II: media terminal device, including capabilities of Class I and supporting media stream Class III: communication terminal device, including capabilities of Class I and Class II and supporting IP communication...
  • Page 425: Show Lldp Statistics

    If profile-num is specified, the information about the specified network policy is displayed. Usage Guide If no parameter is specified, the information about all network policies is displayed. The following example displays the information about a network policy.Ruijie# Configuration show lldp network-policy profile...
  • Page 426 Interface parameter: display the LLDP statistics of the specified interface. Configuration The following example displays all LLDP statistics. Examples Ruijie# show lldp statistics lldp statistics global Information: Neighbor information last changed time : 1hour 52minute 22second The number of neighbor information inserted : 2...
  • Page 427 LLDP status information of the specified interface. The following example displays LLDP status information of all ports. Configuration Examples Ruijie# show lldp status Global status of LLDP : Enable Neighbor information last changed time : 1hour 52minute 22second...
  • Page 428 Command Reference LLDP Commands ------------------------------------------------------------ Port status of LLDP : Enable Port state : UP Port encapsulation : Ethernet II Operational mode : RxAndTx Notification enable : NO Error detect enable : YES Number of neighbors Number of MED neighbors show lldp status command output description: Field Description...
  • Page 429 Usage Guide Interface parameter: display the LLDP TLV configuration of the specified interface. Configuration The following example displays TLV information of port 1. Examples Ruijie# show lldp tlv-config interface GigabitEthernet 0/1 LLDP tlv-config of port [GigabitEthernet 0/1] ---------------------------------------------------- NAME STATUS DEFAULT...
  • Page 430 Command Reference LLDP Commands Description...
  • Page 431: Qinq Commands

    The following example modifies the vid to 3888 when the input packets inner tag vid. Ruijie(config)# vlan 1888, 3888 Examples Ruijie(config)# interface gigabitEthernet 0/1 Ruijie(config-if)# switchport mode trunk Ruijie(config-if)# dot1q new-outer-vlan 3888 translate old-outer-vlan 1888 inner-vlan 2001-3000 Ruijie(config-if)# end Related Command...
  • Page 432 Configuration The following example specifies vid in the tag of input message as 4-22 and setss the vid to 3. Ruijie#configure Examples Ruijie(config)#interface gigabitEthernet 0/1 Ruijie(config-if)#switchport mode dot1q-tunnel Ruijie(config-if)#dot1q outer-vid 3 register inner-vid 4-22 Ruijie(config-if)#end Related Command Description Commands show registration-table [ interface intf-id ]...
  • Page 433 The following example specifies vid in the outer tag of input message as 10-20 and sets the vid to Examples 100. Ruijie(config)# interface gigabitEthernet 0/1 Ruijie(config-if)# switchport mode access Ruijie(config-if)# dot1q relay-vid 100 translate local-vid 10-20 Ruijie(config-if)# end Related Command Description...
  • Page 434 The following example configures vid in the outer tag of input message as 10-20 and sets the vid to Configuration Examples 100. Ruijie(config)# interface gigabitEthernet 0/1 Ruijie(config-if)# switchport mode access Ruijie(config-if)# dot1q relay-vid 100 translate inner-vid 10-20 Ruijie(config-if)# end Related Command Description Commands...
  • Page 435 IEEE802.1Q, the TPID value on the egress used to connect to the third-party device is the TPID value of the third-party device. Configuration The following example sets the packet TPID compatible with the manufacturer TPID. Ruijie(config)# interface g0/3 Examples Ruijie(config-if)# frame-tag tpid 0x9100 Ruijie(config-if)# end Ruijie# show frame-tag tpid Port tpid ------ ---------...
  • Page 436 The following example copies the priority of the inner tag to the outer tag of the packets on the Configuration Examples interface. ruijie#configure terminal ruijie(config)# interface gigabitEthernet 0/2 ruijie(config-if)# inner-priority-trust enable ruijie(config-if)#end Related Command Description...
  • Page 437 If the STP and GVRP packets need to be transparently transmitted, this function must be enabled in global configuration mode. The following example enables the function of receiving L2 protocol gvrp and stp. Configuration Ruijie#configure Examples Ruijie(config)# l2protocol-tunnel stp Ruijie(config)# l2protocol-tunnel gvrp Ruijie(config)#end Related Command Description...
  • Page 438 Configuration Here is an example of enabling transparent transmission of L2 protocol message : Ruijie#configure Examples Ruijie(config)# interface fa 0/1 Ruijie(config-if)# l2protocol-tunnel gvrp enable Ruijie(config-if)#end Related Command Description...
  • Page 439 Configuration The following example copies the MAC addresses dynamically-learned from the source VLANs 1-3 to Examples the destination VLAN 5. ruijie#configure ruijie(config)# interface gigabitEthernet 0/2 ruijie(config-if)# mac-address-mapping 1 source-vlan 1-3 destination-vlan 5 ruijie(config-if)#end Related Command Description Commands show interface mac-address-mapping x...
  • Page 440 Description Description intf-id The specified interface. Defaults Command Any mode Mode Usage Guide Configuration The following example displays whether dot1q-tunnel of interface is enabled or not. Ruijie# show dot1q-tunnel Examples Ports Dot1q-tunnel ----- --------- Gi0/1 Enable Related Command Description Commands...
  • Page 441 Command Reference QinQ Commands Any mode Command Mode Usage Guide Configuration The following example displays the configuration of interface tpid. Ruijie# show frame-tag tpid Examples Ports tpid ----- --------- Gi0/1 0x9100 Related Command Description Commands Platform Description 12.14 show inner-priority-trust Use this command to display whether the priority copy function is enabled.
  • Page 442 Command Any mode Mode Usage Guide The following example displays the VLAN configuration on the dot1q-tunnel port. Configuration Ruijie# show interfaces dot1q-tunnel Examples Interface: Gi0/3 Native vlan: 10 Allowed vlan list: 4-6, 10, 30-60 Tagged vlan list: 4, 6, 30-60...
  • Page 443 Command Reference QinQ Commands Defaults Command Any mode Mode Usage Guide Configuration The following example displays the MAC address mapping configuration. ruijie# show interfaces mac-address-mapping Examples Ports Status Index Destination-VID Source-VID-list ------------ ---------- ---------- --------------- ------------------ Gi0/1 active Related Command...
  • Page 444 Parameter Parameter Description Description Defaults Command Any mode Mode Usage Guide The following example displays the VLAN mapping configuration. Configuration ruijie# show interfaces vlan-mapping Examples Ports Type Status Destination-VID Source-VID-list ------------ ------ ----- ---------------- --------------- Gi0/1 active Gi0/1 active Related...
  • Page 445 Displays configuration of transparently transmitting stp protocol. Defaults Command Any mode Mode Usage Guide Configuration The following example displays transparent transmission configuration of L2 protocol. Ruijie# show l2protocol-tunnel stp Examples L2protocol-tunnel: Stp Enable Ruijie# show l2protocol-tunnel gvrp L2protocol-tunnel: gvrp Disable Related Command Description...
  • Page 446 Description intf-id Specifies the interface. Defaults Any mode Command Mode Usage Guide Configuration The following example displays flow-based vid change or add policy list. Ruijie# show traffic-redirect Examples Ports Type Match-filter ------------ ----------- ---- ------------ Gi0/3 Mod-outer Gi0/3 Mod-outer Gi0/3...
  • Page 447 Specifies the interface. Defaults Command Any mode Mode Usage Guide Configuration The following example displays vid modify policy list of prorocol-based access, trunk, hybrid port. Ruijie# show translation-table Examples Ports Type Relay-VID Old-local Local\inner-VID-list ------------ ---------- ---------- ---------- ------------------ Gi0/7 Inner-CVID 8...
  • Page 448 Mode Usage Guide The following example specifies vlan 3-6 of dot1q-tunnel port as allowed VLAN and outputting the Configuration frame with tag. Examples Ruijie(config)#interface gigabitEthernet 0/1 Ruijie(config-if)#switchport dot1q-tunnel allowed vlan tagged 3-6 Ruijie(config)#end Related Command Description Commands show interface dot1q-tunnel...
  • Page 449 Command Reference QinQ Commands Usage Guide The following example specifies default VLAN of dot1q-tunnel port as 8. Configuration Ruijie(config)#interface gigabitEthernet 0/1 Examples Ruijie(config-if)#switchport dot1q-tunnel native vlan 8 Ruijie(config)#end Related Command Description Commands show interface dot1q-tunnel Platform Description 12.25 switchport mode dot1q-tunnel Use this command to configure the interface as the dot1q-tunnel interface.
  • Page 450 The following example specifies the outer vid of outgoing messages whose source address is 1.1.1.2 Configuration as 6, Examples Ruijie#configure Ruijie(config)#ip access-list standard to_6 Ruijie(config-std-nacl)#permit host 1.1.1.2 Ruijie(config-std-nacl)#exit Ruijie(config)# interface gigabitEthernet 0/1 Ruijie(config-if)# switchport mode trunk Ruijie(config-if)# traffic-redirect access-group to_6 inner-vlan 6 out Ruijie(config-if)# end Related Command Description Commands show traffic-redirect Platform Description...
  • Page 451 The following example specifies the vid of input message whose source address is 1.1.1.3 as 9. Ruijie#configure Examples Ruijie(config)#ip access-list standard 20 Ruijie(config-std-nacl)#permit host 1.1.1.3 Ruijie(config-std-nacl)#exit Ruijie(config)# interface gigabitEthernet 0/1 Ruijie(config-if)# switchport mode dot1q-tunnel Ruijie(config-if)# traffic-redirect access-group 20 nested-vlan 10 in Ruijie(config-if)# end Related Command Description Commands show traffic-redirect Platform Description 12.28 traffic-redirect access-group acl outer-vlan vid in...
  • Page 452 The following example specifies outer vid of input message whose source address is 1.1.1.1 as 3. Ruijie# configure Examples Ruijie(config)#ip access-list standard 2 Ruijie(config-std-nacl)# permit host 1.1.1.1 Ruijie(config-std-nacl)# exit Ruijie(config)# interface gigabitEthernet 0/1 Ruijie(config-if)# switchport mode trunk Ruijie(config-if)# traffic-redirect access-group 2 outer-vlan 3 in Ruijie(config-if)# end Related Command Description Commands show traffic-redirect Platform Description 12.29 vlan-mapping-out vlan src-vlan remark dest-vlan...
  • Page 453 The following example specifies the vid of the incoming messages whose vid in the tag is 3 as 4 and Examples forwards it. Ruijie# configure terminal Ruijie(config)# vlan range 3-4 Ruijie(config-vlan-range)# exit Ruijie(config)# interface gigabitEthernet 0/1 Ruijie(config-if)# switchport mode trunk Ruijie(config-if)# vlan-mapping-out vlan 3 remark 4 Ruijie(config-if)# end Related Command Description Commands show interface [ intf-id ] vlan-mapping Platform...
  • Page 454: Erps Commands

    Ruijie(config)# interface fastEthernet 0/2 Ruijie(config-if)# switchport mode trunk Ruijie(config-if)# exit # Enter the erps configuration mode. Ruijie(config)# erps raps-vlan 4093 #Add the ports that participate in the ERPS protocol computing to the Ethernet ring. Ruijie(config-erps4093)# ring-port west fastEthernet 0/1 east fastEthernet...
  • Page 455 Ruijie(config)# interface fastEthernet 0/3 Ruijie(config-if)# switchport mode trunk Ruijie(config-if)# exit Ruijie(config)# erps raps-vlan 100 Ruijie(config-erps100)# ring-port west fastEthernet 0/3 east virtual-channel Ruijie(config-if)# exit # Associate the subring with other Ethernet rings. Ruijie(config)# erps raps-vlan 4093 Ruijie(config-erps4093)# associate sub-ring raps-vlan 100...
  • Page 456 Enter configuration commands, one per line. End with CNTL/Z. # Enable the ERPS function globally. Ruijie(config)# erps enable # Enter the ERPS configuration mode Ruijie(config)# erps raps-vlan 4093 # Enable the ERPS function for the specified ring. Ruijie(config-erps4093)# state enable Related...
  • Page 457 Command Reference ERPS Commands Enter configuration commands, one per line. End with CNTL/Z. # Configure the method of monitoring the link state. Ruijie(config)# erps monitor link-state by oam vlan 100 Related Command Description Commands Platform Description 13.4 erps raps-vlan Use this command to configure the R-APS VLAN of Ethernet ring.
  • Page 458 Ruijie# configure terminal Enter configuration commands, one per line. End with CNTL/Z. # Configure the VLAN configured by the ERP1. Ruijie(config)# spanning-tree mst configuration Ruijie(config-mst)# instance 1 vlan 100, 1-99, 101-2000 Ruijie(config-mst)# exit Ruijie(config)# erps raps-vlan 100 Ruijie(config-erps100)#protected-instance 1 # Configure the VLAN configured by the ERP2.
  • Page 459 Command Reference ERPS Commands Ruijie(config-mst)# exit Ruijie(config)# erps raps-vlan 4093 Ruijie(config-erps4093)#protected-instance 2 Related Command Description Commands Platform Description 13.6 ring-port Use this command to configure the ERPS ring. ring-port west { interface-name1 | virtual-channel } east { interface-name2 | virtual-channel }...
  • Page 460 ERPS Commands Ruijie(config-if)# exit # Enter the ERPS configuration mode. Ruijie(config)# erps raps-vlan 4093 #Add the ports that participate in the ERPS protocol computing to the Ethernet ring. Ruijie(config-erps4093)# ring-port west fastEthernet 0/1 east fastEthernet Related Command Description Commands state enable Enable the ERPS protocol of the specified ring in the ERPS mode of the specified ring.
  • Page 461 Ruijie(config)# erps raps-vlan 4093 # Add the ports that participate in the ERPS protocol computing to the Ethernet ring. Ruijie(config-erps4093)# ring-port west fastEthernet 0/1 east fastEthernet # Specify the port where the RPL link is and the RPL owner. Ruijie(config-erps4093)# rpl-port west rpl-owner...
  • Page 462 Command Reference ERPS Commands Any mode. Command Mode Usage Guide Configuration The following example shows the use of this command. Ruijie# show erps Examples ERPS Information Global Status : Enabled Link monitored by : Not Oam -------------------------------------------- R-APS VLAN : 4092...
  • Page 463 Command Reference ERPS Commands WTR Time : 5 minutes Current Ring State : Idle Ruijie# show erps raps_vlan 4093 sub-ring R-APS VLAN: 4093 Sub-Ring R-APS VLANs TC Propagation State ------------------- --------------------- Enable Enable Related Command Description Commands Platform Description 13.9 state enable Use this command to enable/disable the specified R-APS ring.
  • Page 464 # Enter the ERPS configuration mode. Ruijie(config)# erps raps-vlan 4093 # Add the ports that participate in the ERPS protocol computing to the Ethernet ring. Ruijie(config-erps4093)# ring-port west fastEthernet 0/1 east fastEthernet # Enable the ERPS function for the specified ring. Ruijie(config-erps4093)#state enable # Enable the global ERPS function.
  • Page 465 # Enter the ERPS configuration mode. Ruijie(config)# erps raps-vlan 4093 # Add the ports that participate in the ERPS protocol computing to the Ethernet ring. Ruijie(config-erps4093)# ring-port west fastEthernet 0/1 east fastEthernet #Configure the Ethernet subring. Ruijie(config)# erps raps-vlan 100...
  • Page 466 Examples Ruijie# configure terminal Enter configuration commands, one per line. End with CNTL/Z. # Enter the ERPS configuration mode. Ruijie(config)# erps raps-vlan 4093 # Configure the protocol timer. Ruijie(config-erps4093)# timer holdoff-time 10 Ruijie(config-erps4093)# timer guard-time 10 Ruijie(config-erps4093)# timer wtr-time 10...
  • Page 467 Command Reference ERPS Commands Commands Platform Description...
  • Page 468 IP Address & Application Commands 1. IP Address/Service Commands 2. ARP Commands 3. IPv6 Commands 4. DHCP Commands 5. DHCPv6 Commands 6. DNS Commands 7. FTP Server Commands 8. FTP Client Commands 9. TFTP Server Commands 10. Network Connectivity Test Tool Commands 11.
  • Page 469 Command Reference IP Address/Service Commands 1 IP Address/Service Commands 1.1 ip-address Use this command to configure the IP address of an interface. Use the no form of this command to restore the default setting. ip address ip-address network-mask [ secondary ] | [ slave ] no ip address [ ip-address network-mask [ secondary ] | | [ slave ]] Parameter Parameter...
  • Page 470 255.255.255.0 respectively . Ruijie(config-if)# ip address 10.10.10.1 255.255.255.0 The following example configures the master and slave IP addresses as 10.10.10.1/24 and 10.10.20.1/24 respectively. Ruijie(config)# interface gigabitEthernet 0/1 Ruijie(config-if-GigabitEthernet 0/1)# ip address 10.10.10.1 255.255.255.0 Ruijie(config-if-GigabitEthernet 0/1)# ip address 10.10.20.1 255.255.255.0 slave Related Command...
  • Page 471 “1” and the broadcast packets defined by itself. The following example sets the destination address of IP broadcast packets generated by this Configuration interface to 0.0.0.0. Examples Ruijie(config)# interface gigabitEthernet 0/1 Ruijie(config-if-GigabitEthernet 0/1)# ip broadcast-address 0.0.0.0 Related Command Description Commands Platform Description 1.3 ip directed-broadcast...
  • Page 472 Configuration The following example enables forwarding of directed broadcast packet on the fastEthernet 0/1 Examples port of a device. Ruijie(config)# interface fastEthernet 0/1 Ruijie(config-if)# ip directed-broadcast Related Commands Command Description Platform Description 1.4 ip icmp error-interval...
  • Page 473 Examples by DF in the IP header to 100 per second. Ruijie(config)# ip icmp error-interval DF 1000 100 The following example sets the rate to send other ICMP error packets to 10 per second. Ruijie(config)# ip icmp error-interval 1000 10...
  • Page 474 The following example sets the FastEthernet 0/1 interface of a device to respond the ICMP Configuration Examples mask request message. Ruijie(config)# interface fastEthernet 0/1 Ruijie(config-if)# ip mask-reply Related Command Description...
  • Page 475 IP MTU value is changed, the MTU value of the interface will remain unchanged. Configuration The following iexample sets the IP MTU value of the fastEthernet 0/1 interface to 512 bytes. Ruijie(config)# interface fastEthernet 0/1 Examples Ruijie(config-if)# ip mtu 512...
  • Page 476 If an invalid option is detected, an ICMP parameter problem message will be sent to the data source, and then this packet is discarded. Configuration The following example disables the IP source route. Ruijie(config)# no ip source-route Examples Related Command...
  • Page 477 Defaults The default is 64. Command Global configuration mode Mode Usage Guide Configuration The following example sets the TTL value of the unicast packet to 100. Ruijie(config)# ip ttl 100 Examples Related Command Description Commands Platform Description 1.10 ip unreachables Use this command to allow the RGOS software to generate ICMP destination unreachable messages.
  • Page 478: Show Ip Interface

    Command Reference IP Address/Service Commands 0/1. Examples Ruijie(config)# interface fastEthernet 0/1 Ruijie(config-if)# no ip unreachables Related Command Description Commands Platform Description 1.11 show ip interface Use this command to display the IP status information of an interface. show ip interface [ interface-type interface-number | brief ]...
  • Page 479 Command Reference IP Address/Service Commands VLAN 1 1.1.1.1/24 no address down down Description of fields: Field Description Status Link status of an interface. The value can be up, down, or administratively down. Protocol IPv4 protocol status of an interface. The following example displays the output of the show ip interface vlan command. SwitchA#show ip interface vlan 1 VLAN 1 IP interface state is: DOWN...
  • Page 480 Command Reference IP Address/Service Commands Show whether the IP address is obtained through IP address negotiate is: negotiation. Forward direct-broadcast is: Show whether the directed broadcast is forwarded. ICMP mask reply is: Show whether an ICMP mask response message is sent. Send ICMP redirect is: Show whether an ICMP redirection message is sent.
  • Page 481 Configuration The following example displays the statistics of IP packet queues. Examples RG-S29 series products do not support the VRF parameter. The following example is for reference purpose. Please take the actual product as the standard. Ruijie#show ip packet queue Receive 31925 packets(fragment=0): IP packet receive queue: length 0, max 1542, overflow 0.
  • Page 482 Command Reference IP Address/Service Commands 1.13 show ip packet statistics Use this command to display the statistics of IP packets. show ip packet statistics [ total | interface-name ] Parameter Parameter Description Description interface-name Interface name total Displays the total statistics of all interfaces. Defaults N/A.
  • Page 483 Description Description Protocol. Defaults N/A. Command Mode Priviledged EXEC mode. Usage Guide N/A. Configuration The following example displays all IPv4 raw sockets. Ruijie# show ip raw-socket Examples Number Protocol Process name ICMP dhcp.elf ICMP vrrp.elf IGMP igmp.elf VRRP vrrp.elf Total: 4...
  • Page 484: Show Ip Sockets

    Description Description N/A. N/A. Defaults N/A. Command Mode Privileged EXEC mode. Usage Guide N/A. Configuration The following displays all IPv4 sockets. Ruijie# show ip sockets Examples Number Process name Type Protocol LocalIP:Port ForeignIP:Port State dhcp.elf ICMP 0.0.0.0:1 0.0.0.0:0 vrrp.elf ICMP 0.0.0.0:1...
  • Page 485 Command Reference IP Address/Service Commands mpls.elf DGRAM 0.0.0.0:3503 0.0.0.0:0 rds_other_th DGRAM 0.0.0.0:3799 0.0.0.0:0 rg-snmpd DGRAM 0.0.0.0:14800 0.0.0.0:0 rg-sshd STREAM 0.0.0.0:22 0.0.0.0:0 LISTEN rg-telnetd STREAM 0.0.0.0:23 0.0.0.0:0 LISTEN wbard STREAM 0.0.0.0:4389 0.0.0.0:0 LISTEN wbard STREAM 0.0.0.0:7165 0.0.0.0:0 LISTEN Total: 15 Field Description Field Description Number...
  • Page 486 Local port number Defaults N/A. Command Mode Privileged EXEC mode. Usage Guide N/A. Configuration The following example displays all IPv4 UDP sockets. Ruijie# show ip udp Examples Number Local Address Peer Address Process name 0.0.0.0:68 0.0.0.0:0 dhcpc.elf 0.0.0.0:161 0.0.0.0:0 rg-snmpd 0.0.0.0:2000...
  • Page 487: Arp Commands

    The clear arp-cache command can be used to delete the ARP mapping that is learned dynamically. Configuration The following example sets an ARP static mapping record for a host in the Ethernet. Ruijie(config)# arp 1.1.1.1 4e54.3800.0002 arpa Examples Related Command...
  • Page 488 Configuration The following example sets the IP message number that triggers ARP to discarding entry as 5. Ruijie(config)# arp anti-ip-attack 5 Examples The following example disables the ARP anti-ip-attack function.
  • Page 489 The following example sets the maximum number of ARP learned on the interface to 300. Ruijie(config)# interface gi 0/0 Examples Ruijie(config-if-GigabitEthernet 0/0)# arp cache interface-limit 300 The following example restores the default setting. Ruijie(config)# interface gi 0/0 Ruijie(config-if-GigabitEthernet 0/0)# no arp any-ip...
  • Page 490 The following example sets to send one free ARP request to SVI 1 per second. Ruijie(config)# interface vlan 1 Examples Ruijie(config-if)# arp gratuitous-send interval 1 The following example stops sending the free ARP request to SVI 1. Ruijie(config)# interface vlan 1...
  • Page 491 Command Reference ARP Commands Ruijie(config)# arp retry interval 30 Examples Related Command Description Commands arp retry times Number of times for retransmitting an ARP request message. Platform Description 2.6 arp retry times Use this command to set the local retry times of the ARP request message, namely, the times of sending the ARP request message to resolve one IP address.
  • Page 492: Arp Timeout

    The following example sets the timeout for the dynamic ARP mapping record that is learned Configuration dynamically from FastEthernet port 0/1 to 120 seconds. Examples Ruijie(config)# interface fastEthernet 0/1 Ruijie(config-if)# arp timeout 120 Related Command Description...
  • Page 493 Too much trusted ARP entries may lead to insufficient ARP entry space. In general, you should set the maximum number of trusted ARP entries according to your real requirements. Configuration The following example sets 1000 trusted ARPs. Ruijie(config)# arp trusted 1000 Examples Related Command Description...
  • Page 494 ARP entry. The following example sets the VLAN sent by the server to 3, but the VLAN which takes effect in the Configuration trusted ARP entry to 5. Examples Ruijie(config)# arp trusted user-vlan 3 translated-vlan 5 Related Command Description Commands service trustedarp Enables the trusted ARP function.
  • Page 495 The following example enables egress gateway trusted ARP. Ruijie(config)# interface gi 0/0 Examples Ruijie(config-if-GigabitEthernet 0/0)# arp trust-monitor enable The following example disables engress gateway trusted ARP. Ruijie(config)# interface gi 0/0 Ruijie(config-if-GigabitEthernet 0/0)# no arp trust-monitor enable Related Command Description Commands Platform Description 2.12 arp unresolve...
  • Page 496 Command Reference ARP Commands The following example sets the maximum number of the unresolved items to 500. Configuration Ruijie(config)# arp unresolve 500 Examples Related Command Description Commands Platform Description 2.13 clear arp-cache Use this command to remove a dynamic ARP mapping record from the ARP cache table and clear an IP route cache table.
  • Page 497 Command Reference ARP Commands The following example deletes the dynamic ARP entry on interface SVI1. Ruijie# clear arp-cache interface Vlan 1 Related Command Description Commands Adds a static mapping record to the ARP cache table. Platform Description 2.14 ip proxy-arp Use this command to enable ARP proxy function on the interface.
  • Page 498 ARP request. The ARP response contains a MAC address which is the device’s Ethernet MAC address, realizing communication between different hosts through L3 routes. Configuration The following example enables local proxy ARP on VLAN1. Ruijie(config)# interface vlan 1 Examples Ruijie(config-if-VLAN 1)# local-proxy-arp Related...
  • Page 499: Show Arp

    Command Reference ARP Commands scheme, it should be used together with the GSN scheme. The following example enables the trusted ARP function in global configuration mode. Configuration Ruijie(config)# service trustedarp Examples Related Command Description Commands Platform Description 2.17 show arp...
  • Page 500 Protocol Address Age(min) Hardware Type Interface Internet 192.168.195.68 1 0013.20a5.7a5f arpa VLAN 1 The following example displays the output result of show arp 192.168.195.0 255.255.255.0 Ruijie# show arp 192.168.195.0 255.255.255.0 Protocol Address Age(min) Hardware Type Interface Internet 192.168.195.64 0 0018.8b7b.9106 arpa VLAN 1 Internet 192.168.195.2 1 00d0.f8ff.f00e arpa VLAN 1...
  • Page 501: Show Arp Counter

    Privileged EXEC mode Mode Usage Guide Configuration The following example displays the output result of the show arp counter command: Ruijie#sho arp counter Examples ARP Limit: 75000 Count of static entries: 0 Count of dynamic entries: 1 (complete: 1 incomplete: 0)
  • Page 502 Configuration The following example displays the output result of the show arp detail command: Ruijie# show arp detail Examples IP Address MAC Address Type Age(min) Interface Port 20.1.1.1 000f.e200.0001 Static -- -- -- 20.1.1.1 000f.e200.0001 Static -- Vl3 --...
  • Page 503 Displays the statistics of ARP packets on the specified interface. Defaults N/A. Command Privileged EXEC mode. Mode Usage Guide N/A. The following example displays the output information of the command. Configuration Ruijie# show arp packet statistics Examples Interface Received Received Received Sent Sent Name Requests Replies Others Requests Replies...
  • Page 504: Show Arp Timeout

    Command Reference ARP Commands --------- -------- -------- -------- -------- ------- VLAN 1 10 20 1 50 10 VLAN 2 5 8 0 10 10 VLAN 3 20 5 0 15 12 VLAN 4 5 8 0 10 10 VLAN 5 20 5 0 15 12 VLAN 6 20 5 0 15 12 VLAN 7 20 5 0 15 12 VLAN 8 5 8 0 10 10...
  • Page 505: Show Ip Arp

    Command Reference ARP Commands Ruijie# show arp timeout Examples Interface arp timeout(sec) ---------------------- ---------------- VLAN 1 3600 The meaning of each field in the ARP cache table is described in Table 1. Related Command Description Commands N/A. N/A. Platform Description 2.22 show ip arp...
  • Page 506 Command Reference ARP Commands Age of the ARP cache record, in minutes; If it is not locally or statically Age (min) configured, the value of the field is represented with “-”. Hardware Hardware address corresponding to the IP address The type of hardware address. The value is ARPA for all Ethernet Type addresses.
  • Page 507: Ipv6 Commands

    Usage Guide This command does not clear all the dynamic neighbors on authentication VLAN. Note that the static neighbors will not be cleared. The following example clears the dynamic IPv6 neighbors. Configuration Ruijie# clear ipv6 neighbors Examples Related Commands Command Description ipv6 neighbor Configures the neighbor.
  • Page 508 Ruijie(config-if)# ipv6 address 2001:1::1/64 Configuration Ruijie(config-if)# no ipv6 address 2001:1::1/64 Examples Ruijie(config-if)# ipv6 address 2002:1::1/64 eui-64 Ruijie(config-if)# no ipv6 address 2002:1::1/64 eui-64 Related Command Description Commands Platform...
  • Page 509: Ipv6 Address Autoconfig

    DHCPv6. The “other configurations” usually means the IPv6 address of the DNS server, the IPv6 address of the NTP server, etc. Use the no ipv6 address autoconfig command to delete the IPv6 address. Ruijie(config-if)# ipv6 address autoconfig default Configuration Ruijie(config-if)# no ipv6 address autoconfig...
  • Page 510 The IPv6 function of an interface can be enabled by configuring ipv6 enable or by configuring IPv6 address for the interface. If an IPv6 address is configured for the interface, the IPv6 function will be enabled automatically on the interface and cannot be disabled with no ipv6 enable. Ruijie(config-if)# ipv6 enable Configuration Examples Related...
  • Page 511 A general prefix could contain multiple prefixes. These longer specified prefixes are usually used for the Ipv6 address configuration on the interface. Configuration The following example configures manually a general prefix as my-prefix. Ruijie(config)# ipv6 general-prefix my-prefix 2001:1111:2222::/48 Examples Related Command...
  • Page 512 ICMPv6-oversize error packet and other ICMPv6 error packet respectively. Note that ICMPv6 redirect packet is not an ICMPv6 error packet and Ruijie sets the frequency of the ICMPv6 redirect packet the same as that of other ICMPv6 error packet.
  • Page 513: Ipv6 Mtu

    IPv6 MTU of the interconnected interface must be the same. The following example sets the IPv6 MTU of the FastEthernet 0/1 interface to 1400 bytes. Configuration Ruijie(config)# interface fastEthernet 0/1 Examples Ruijie(config-if)# ipv6 mtu 1400 Related...
  • Page 514: Ipv6 Nd Dad Attempts

    Otherwise, the configuration does not take effect. Configuration The following example sets the number of neighbors learned on the interface to 100. Ruijie(config)# interface GigabitEthernet 0/1 Examples Ruijie(config-if-GigabitEthernet 0/1)# ipv6 nd cache interface-limit 100 Related Command Description Commands Platform Description 3.10 ipv6 nd dad attempts...
  • Page 515 Whenever the state of an interface changes from down to up, the address collision check function of the interface will be enabled. Ruijie(config-if)# ipv6 nd dad attempts 3 Configuration Examples...
  • Page 516 This flag determines whether the host that receives the RA message obtains an IP address through stateful auto configuration. If the flag is set, the host obtains an IP address through stateful auto configuration, otherwise it does not be used. Ruijie(config-if)# ipv6 nd managed-config-flag Configuration Examples...
  • Page 517 Interface configuration mode. mode Usage Guide The configured value will be advertised through RA and will be used by the device itself. It is not recommended to set a too short interval. Ruijie(conifig-if)# ipv6 nd ns-interval 2000 Configuration Examples Related Command...
  • Page 518: Ipv6 Nd Prefix

    Command Reference IPv6 Commands Platform Description 3.15 ipv6 nd prefix Use this command to configure the address prefix included in the RA. Use the no form of this command to delete the set prefix or restore the default setting. ipv6 nd prefix { ipv6-prefix/prefix-length | default } [ [ valid-lifetime preferred-lifetime ] | [ at valid-date preferred-date ] | [ infinite | preferred-lifetime ] ] [ no-advertise] | [ [ off-link ] [ no-autoconfig ] ] pool pool-name no ipv6 nd prefix { ipv6-prefix/prefix-length | default }...
  • Page 519 The following example adds a prefix for SVI 1. Ruijie(config)# interface vlan 1 Examples 2592000 Ruijie(conifig-if)# ipv6 nd prefix 2001::/64 infinite The following example sets the default prefix parameters for SVI 1 (they cannot be used for auto address configuration): Ruijie(config)# interface vlan 1...
  • Page 520 If the key word min-max is specified, the actual interval for sending the packet will be chosen between the range of minimum value and maximum value. Ruijie(conifig-if)# ipv6 nd ra-interval 110 Configuration Ruijie(config-if)# ipv6 nd ra-interval min-max 110 120 Examples...
  • Page 521 If the value is set to 0, the device will not serve as the default device any longer. If it is not set to 0, it shall be larger than or equal to the interval of sending the RA (ra-interval) Ruijie(conifig-if)# ipv6 nd ra-lifetime 2000 Configuration Examples...
  • Page 522 IPv6 MTU value of the network interface. Command Interface configuration mode. Mode Usage Guide If it is specified as 0, the RA will not have the MTU option Ruijie(config -if)# ipv6 nd ra-mtu 1400 Configuration Examples Related Command Description Commands Displays the interface information.
  • Page 523 0, it indicates that the time is not specified, that is, the default value is used. According to RFC4861, the actual time to reach neighbor is not consistent with the configured value, ranging from 0.5*configured value to 1.5*configured value. Ruijie(config-if)# ipv6 nd reachable-time 1000000 Configuration Examples...
  • Page 524 Description Defaults The ipv6 nd suppress-ra command is enabled by default. Command Mode Interface configuration mode. This command suppresses the sending of the RA message on an interface. Usage Guide Ruijie(config-if)# ipv6 nd suppress-ra Configuration Examples Related Command Description Commands show ipv6 interface Displays the interface information.
  • Page 525: Ipv6 Neighbor

    This command is used to prevent unresolved ND table entries generated by malicious scan attacks from consuming table entry resources, Configuration The following example sets the maximum number of the unresolved neighbor table entries to 200. Ruijie(config)# ipv6 nd unresolved 200 Examples Related Command...
  • Page 526 Use the clear ipv6 neighbors command to clear all neighbors learned dynamically through NDP. Configuration The following example configures a static neighbor on SVI 1. Ruijie(config)# ipv6 neighbor 2001::1 vlan 1 00d0.f811.1111 Examples Related Command...
  • Page 527: Ipv6 Redirects

    Interface configuration mode. Mode Usage Guide The transmission rate of any ICMPv6 error message is limited. By default, it is 10pps. Configuration The following example enables ICMPv6 redirection on interface GigabitEthernet 0/1. Ruijie(config-if-GigabitEthernet 0/1)# ipv6 redirects Examples Related Command Description Commands Displays the interface information.
  • Page 528: Show Ipv6 Address

    Therefore, forwarding the IPv6 packet with route header is disabled by default. However, the IPv6 packet of route header with type 0 that destined to the local machine is processed. Ruijie(config)# no ipv6 source-route Configuration Examples...
  • Page 529 Command Reference IPv6 Commands The following example displays the IPv6 address configured on the GigabitEthernet 0/1. Related Command Description Commands Platform Description 3.29 show ipv6 general-prefix Use this command to display the information of the general prefix. show ipv6 general-prefix Parameter Parameter Description...
  • Page 530: Show Ipv6 Interface

    Use this command to display the address configuration, ND configuration and other information of an IPv6 interface. The following example displays the information of the IPv6 interface. Configuration Ruijie# show ipv6 interface vlan 1 Examples Interface vlan 1 is Up, ifindex: 2001 address(es):...
  • Page 531 Indicate that the interface ID of the address is automatically AUTOIFID generated by the system, which is usually an EUI-64 ID. The following example displays the RA information of the IPv6 interface.Ruijie# show ipv6 interface vlan 1 ra-info vlan 1: DOWN RA timer is stopped...
  • Page 532 Command Reference IPv6 Commands Flags: !M!O, Adv MTU: 1500 ND advertised reachable time is 0 milliseconds ND advertised retransmit time is 0 milliseconds ND advertised CurHopLimit is 64 Prefixes: (total: 1) fec0:1:1:1::/64(Def,Auto,vltime: 2592000, pltime: 604800, flags: LA) Description of the fields in ra-info: Field Meaning RA timer is stopped (on)
  • Page 533: Show Ipv6 Neighbors

    The following example displays the neighbors on the SVI 1 interface:Ruijie# show Configuration ipv6 neighbors vlan 1 Examples IPv6 Address Linklayer Addr Interface fa::1 00d0.0000.0002 vlan 1 fe80::200:ff:fe00:2 00d0.0000.0002 vlan 1 Show the neighbor details: Ruijie# show ipv6 neighbors verbose...
  • Page 534 Command Reference IPv6 Commands IPv6 Address Linklayer Addr Interface 2001::1 00d0.f800.0001 vlan 1 State: Reach/H Age: - asked: 0 fe80::200:ff:fe00:1 00d0.f800.0001 vlan 1 State: Reach/H Age: - asked: 0 Field Meaning IPv6 IPv6 address of the Neighbor Address Linklayer Link address, namely, MAC address. If it is not available, incomplete is displayed. Addr Interface Interface the neighbor locates.
  • Page 535 Static: 0,Dynamic: 0,Local: 0 Incomplete:0, Reachable:0, Stale:0, Delay:0, Probe:0 Ruijie# The following example displays the statistics of all IPv6 neighbors. Ruijie#show ipv6 neighbor statistics all IPv6 neighbor table count: 1 Static neighbor count: 0(0 active, 0 inactive) Total Memory: 0 bytes...
  • Page 536 Privileged EXEC mode. Command Mode Usage Guide Configuration The following example displays the total statistics of the IPv6 packets and the statistics of each Examples inerface. Ruijie#show ipv6 pack statistics Total Received 0 packets, 0 bytes Unicast:0,Multicast:0 Discards:0 HdrErrors:0(HoplimitExceeded:0,Others:0) NoRoutes:0 Others:0...
  • Page 537 Command Reference IPv6 Commands Sent 0 packets, 0 bytes Unicast:0,Multicast:0 Ruijie# The following example displays the total statistics of the IPv6 packets. Ruijie#show ipv6 pack statistics total Total Received 0 packets, 0 bytes Unicast:0,Multicast:0 Discards:0 HdrErrors:0(HoplimitExceeded:0,Others:0) NoRoutes:0 Others:0 Sent 0 packets, 0 bytes...
  • Page 538 Configuration The following example displays the IPv6 router Ruijie# show ipv6 routers Examples Router FE80::2D0:F8FF:FEC1:C6E1 on VLAN 2, last update 62 sec Hops 64, Lifetime 1800 sec, ManagedFlag=0, OtherFlag=0, MTU=1500...
  • Page 539 Parameter Parameter Description Description Defaults Command Privileged EXEC mode. Mode Usage Guide Configuration The following example displays all IPv6 sockets. Ruijie# show ipv6 sockets Examples Number Process name Type Protocol LocalIP:Port ForeignIP:Port State vrrp.elf ICMPv6 :::58 :::0 tcpip.elf ICMPv6 :::58 :::0 vrrp.elf...
  • Page 540 Local port number. peer-port num Peer port number. Defaults Command Privileged EXEC mode Mode Usage Guide The following example displays all IPv6 UDP sockets. Configuration Ruijie# show ipv6 udp Examples Number Local Address Peer Address Process name :::161 :::0 rg-snmpd :::162 :::0...
  • Page 541 Command Reference IPv6 Commands Platform Description...
  • Page 542: Dhcp Commands

    Examples mypool0 ranging from 172.16.1.1 to 172.16.1.8. Ruijie(config)# mypool0 ip dhcp pool Ruijie(dhcp-config)# class class1 Ruijie (config-dhcp-pool-class)# address range 172.16.1.1 172.16.1.8 Related Command Description Commands Defines the name of the DHCP address pool and enters the DHCP ip dhcp pool address pool configuration mode.
  • Page 543 Command Reference DHCP Commands 4.2 bootfile Use this command to define the startup mapping file name of the DHCP client. Use the no or default form of this command to restore the default setting. bootfile file-name no bootfile default bootfile Parameter Parameter Description...
  • Page 544: Clear Ip Dhcp Binding

    CLASS is not configured, this CLASS’s default network segment range is same as the range of address pool where the CLASS is. The following example configures the address mypool0 to associate with class1. Configuration Ruijie(config)# ip dhcp pool mypool0 Examples Ruijie(dhcp-config)# class class1 Related...
  • Page 545: Clear Ip Dhcp Conflict

    Command Reference DHCP Commands Mode This command can only clear the automatic DHCP binding, but the manual DHCP binding can be Usage Guide deleted by the no ip dhcp pool command. Configuration The following example clears the DHCP binding with the IP address 192.168.12.100. clear ip dhcp binding 192.168.12.100 Examples Related...
  • Page 546 Command Privileged EXEC mode Mode Usage Guide This command is configured on the DHCP server. Configuration The following example clears all addresses assigned by the DHCP server. Ruijie# clear ip dhcp history * Examples Related Command Description Commands Platform Description 4.7 clear ip dhcp relay statistics...
  • Page 547: Clear Ip Dhcp Server Statistics

    Command Reference DHCP Commands The following example clears the DHCP relay statistics. Configuration Ruijie# clear ip dhcp relay statistics Examples Related Command Description Commands Platform Description 4.8 clear ip dhcp server rate Use this command to clear statistics about the packet processing rate of every module.
  • Page 548 Command Reference DHCP Commands Defaults Privileged EXEC mode. Command Mode Usage Guide The DHCP server carries out the statistics counter, records the DHCP address pool, automatic binding, manual binding and expired binding. Furthermore, it also carries out the statistics to the number of sent and received DHCP messages.
  • Page 549 This command can be used to define the name of the DHCP client only when the DHCP is defined by Usage Guide manual binding. This name should not include the suffix domain name. The following example defines a string river as the name of the client. Configuration Ruijie(dhcp-config)# client-name river Examples Related Command Description...
  • Page 550 Command Reference DHCP Commands configure the DHCP manual binding. Defines the name of the DHCP address pool and enters the ip dhcp pool DHCP address pool configuration mode. Platform Description 4.12 default-router Use this command to define the default gateway of the DHCP client in the DHPC address pool configuration mode.
  • Page 551 Command Reference DHCP Commands interface-number } no dns-server Parameter Parameter Description Description Defines the IP address of the DNS server. At least one IP address ip-address should be configured. ip-address2…ip-address8 (Optional) Up to 8 DNS servers can be configured. use-dhcp-client interface-type Uses the DNS server learned by the DHCP client of the RGOS interface-number software as the DNS server of the DHCP client.
  • Page 552 After the DHCP client obtains specified suffix domain name, it can access a host with the same suffix domain name by the host name directly. Configuration The following example defines the suffix domain name i-net.com.cn for the DHCP client. Ruijie(dhcp-config)#domain-name ruijie.com.cn Examples Related Command...
  • Page 553 Command Reference DHCP Commands The following example defines the MAC address 00d0.f838.bf3d with the type ethernet. Configuration hardware-address 00d0.f838.bf3d Examples Related Command Description Commands Defines the unique ID of the DHCP client (Indicated by the client-identifier hexadecimal numeral, separated by dot). Defines the IP address and network mask, which is used to configure host the DHCP manual binding.
  • Page 554: Ip Address Dhcp

    DHCP, which should be supported by the server. At present, our server can support this function. Configuration The following example makes the FastEthernet 0 port obtain the IP address automatically. Ruijie(config)# interface GigabitEthernet 0/1 Examples Ruijie(config-if-GigabitEthernet 0/1) ip address dhcp Related Command Description Commands Defines the DNS server of DHCP client.
  • Page 555 Usage Guide After executing this command, it enters the global CLASS configuration mode which is shown as “Ruijie (config-dhcp-class)#”. In this configuration mode, user can configure the Option82 information that matches the CLASS and the CLASS identification information. The following example configures a global CLASS.
  • Page 556 Command Reference DHCP Commands Defaults The DHCP server assigns the IP addresses of the whole address pool by default. Command Global configuration mode. Mode Usage Guide If the excluded IP address is not configured, the DHCP server attempts to assign all IP addresses in the DHCP address pool.
  • Page 557 DHCPDISCOVER packets. The forcible NAK packet sending function is added to shorten the interval at which the client sends DHCPDISCOVER packets. Configuration The following example enables the forcible NAK packet sending function in global configuration Examples mode. Ruijie(config)# ip dhcp force-send-nak Related Command Description Commands Platform Description 4.21 ip dhcp monitor-vrrp-state...
  • Page 558: Ip Dhcp Ping Packets

    Command Reference DHCP Commands Platform Description 4.22 ip dhcp ping packets Use this command to configure the times of pinging the IP address when the DHCP server detects address conflict in the global configuration mode. Use the no form of this command to restore the default setting.
  • Page 559: Ip Dhcp Pool

    Command Reference DHCP Commands ping operation to detect the address conflict in the global configuration mode. Use the no form of this command to restore the default setting. ip dhcp ping timeout milli-seconds no ip dhcp ping timeout Parameter Parameter Description Description Time that the DHCP server waits for ping response in the range 100...
  • Page 560 Switch will select the server to be sent according to server-id option when forwarding DHCP Usage Guide REQUEST via this command. Without this command configured, the switch forwards the DHCP REQUEST to all configured DHCP servers. Configuration The following example enables the ip dhcp relay check server-id function. Ruijie# configure terminal Examples...
  • Page 561 DHCP Relay, adds the option information in the DHCP request packets. Configuration The following example sets the custom string for circuit-id. Ruijie(config)# ip dhcp relay information circuit-id format hex abc111 Examples Ruijie(config)# ip dhcp relay information circuit-id format ascii device-test The following example disables this function.
  • Page 562: Ip Dhcp Relay Information Option

    DHCP Relay, adds the option information in the DHCP request packets. Configuration The following example sets the device name for circuit-id. Ruijie(config)# ip dhcp relay information circuit-id string device-name Examples The following example disables this function. Ruijie(config)# no ip dhcp relay information circuit-id string...
  • Page 563 DHCP Relay, adds the option information in the DHCP request packets. The following example sets the custom string for circuit-id. Configuration Ruijie(config)# ip dhcp relay information remote-id format hex abc111 Examples Ruijie(config)# ip dhcp relay information remote-id format ascii port-test The following example disables this function.
  • Page 564 DHCP Relay, adds the option information in the DHCP request packets. The following example sets the port name for remote-id. Configuration Ruijie(config)# ip dhcp relay information remote-id string port-name Examples The following example disables this function. Ruijie(config)# no ip dhcp relay information remote-id string...
  • Page 565 After executing this command, the system will not relay the DHCP request message on the interface. Configuration The following example enables the relay suppression function on the interface 1. Ruijie# configure terminal Examples Ruijie(config)# interface fastEthernet 0/1 Ruijie(config-if)# ip dhcp relay suppression Ruijie(config-if)# exit Ruijie(config)# Related Command Description Commands Enables the DHCP Relay.
  • Page 566 Ruijie(config-if-GigabitEthernet 0/2)# ip dhcp relay information remote-id format ascii port-test The following example disables this function. Ruijie(config-if-GigabitEthernet 0/2)# no ip dhcp relay information remote-id format hex Ruijie(config-if-GigabitEthernet 0/2)# no ip dhcp relay information remote-id format ascii Related...
  • Page 567 This command is used to detect whether the user has gone offline, If the user does not go online Usage Guide within a certain period, the IP address is reclaimed. Configuration The following example enables the user-offline detection. Ruijie(config)# ip dhcp server arp-detect Examples Related Command Description...
  • Page 568 DHCP Commands Defaults Enabled Command This function is enabled by defualt. Mode Usage Guide Configuration The following example enables the CLASS to allocate addresses. Ruijie(config)# ip dhcp use class Examples Related Command Description Commands Platform Description 4.36 ip helper-address Use this command to add an IP address of the DHCP server. Use the no form of this command to delete an IP address of the DHCP server.
  • Page 569 Command Reference DHCP Commands Related Command Description Commands service dhcp Enables the DHCP relay. Platform Description 4.37 lease Use this command to define the lease time of the IP address that the DHCP server assigns to the client in the DHCP address pool configuration mode. Use the no form of this command to restore the default setting.
  • Page 570 Command Reference DHCP Commands 4.38 lease-threshold Use this command in DHCP address pool configuration mode to define the DHCP alarm threshold. Use the default or no form of this command to restore the default setting. lease-threshold percentage defaut lease-threshold no lease-threshold Parameter Parameter Description...
  • Page 571 Command Reference DHCP Commands Parameter Parameter Description Description IP address of the WINS server. It is required to configure one IP ip-address address at least. (Optional) IP addresses of WINS servers. Up to 8 WINS servers can ip-address2…ip-address8 be configured. Defaults No WINS server is defined by default.
  • Page 572 Command Reference DHCP Commands p-node: peer-to-peer node m-node: mixed node h-node: hybrid node Defaults No type of the NetBIOS node is defined by default. Command DHCP address pool configuration mode. Mode Usage Guide There are 4 types of the NetBIOS nodes of the Microsoft DHCP client: 1) Broadcast, which carries out the NetBIOS name resolution by the broadcast method, 2) Peer-to-peer, which directly requests the WINS server to carry out the NetBIOS name resolution, 3) Mixed, which requests the name resolution by the broadcast method firstly, and then carry out the name resolution by the WINS server...
  • Page 573 Command Reference DHCP Commands defined, the natural network mask will be used by default. Defaults No network number or network mask is defined by default. Command DHCP address pool configuration mode. Mode Usage Guide This command defines the subnet and subnet mask of a DHCP address pool, and provides the DHCP server with an address space which can be assigned to the clients.
  • Page 574 Command Reference DHCP Commands DHCP address pool configuration mode. Command Mode Usage Guide When more than one startup server is defined, the former will possess higher priory. The DHCP client will select the next startup server only when its communication with the former startup server fails. Configuration The following example specifies the startup server 192.168.12.4 for the DHCP client.
  • Page 575 IP packet forwarding. The configuration below enable the IP packet forwarding on the DHCP client. Ruijie(dhcp-config)# option 19 hex 1 The following example defines the option code 33, which provides the DHCP client with the static route information. The DHCP client will install two static routes: 1) the destination network 172.16.12.0 and the gateway 192.168.12.12, 2) the destination network 172.16.16.0 and the gateway...
  • Page 576 Usage Guide After executing this command, it enters the Option82 matching information configuration mode which is shown as “Ruijie (config-dhcp-class-relayinfo)#”. In this configuration mode, user can configure the class matching multiple Option82 information. The following example configures a global CLASS and enters the Option82 matching information Configuration configuration mode.
  • Page 577 Command Global CLASS configuration mode Mode Usage Guide Configuration The following example configures a global CLASS which can match multiple Option82 information. Ruijie(config)# ip dhcp class myclass Examples Ruijie(config-dhcp-class)# relay agent information Ruijie(config-dhcp-class-relayinfo)# relay-information hex 0102256535 Ruijie(config-dhcp-class-relayinfo)# relay-information hex 010225654565...
  • Page 578: Service Dhcp

    Mode Usage Guide Configuration The following example configures the identification information for a global CLASS. Ruijie(config)# ip dhcp class myclass Examples Ruijie(config-dhcp-class)# remark used in #1 build Related Command Description Commands ip dhcp class Defines a CLASS and enter the global CLASS configuration mode.
  • Page 579: Show Dhcp Lease

    IP address. Configuration The following example displays the result of the show dhcp lease. Ruijie# show dhcp lease Examples Temp IP addr: 192.168.5.71 for peer on Interface: FastEthernet0/0 Temp sub net mask: 255.255.255.0 DHCP Lease server: 192.168.5.70, state: 3 Bound...
  • Page 580: Show Ip Dhcp Conflict

    If the IP address is not defined, show the binding condition of all addresses. If the IP address is defined, show the binding condition of this IP address Configuration The following is the result of the show ip dhcp binding. Ruijie# show ip dhcp binding Examples Total number of clients Expired clients...
  • Page 581 This command can display the conflict address list detected by the DHCP server. Configuration The following example displays the output result of the show ip dhcp conflict command. Ruijie# show ip dhcp conflict Examples IP address Detection Method 192.168.12.1 Ping The meaning of various fields in the show result is described as follows.
  • Page 582 Description Defaults Privileged EXEC mode Command Mode Usage Guide Configuration The following example displays the DHCP address pool ID and address usage. Ruijie# show ip dhcp identifier Examples Pool name Identifier Total Distributed Remained ------------ ----------- ----------- ----------- -------- 597455782...
  • Page 583: Show Ip Dhcp Pool

    Usage Guide Use this command to show the address statistics of an address pool. Configuration The following example displays the output result of the show ip dhcp pool poolname command. Ruijie# show ip dhcp poolname Examples Pool poolname: Address range 192.168.0.1 –...
  • Page 584 Privileged EXEC mode Mode Usage Guide This command is used to display the statistics of the DHCP relay. Configuration The following example displays the statistics of the DHCP relay. Ruijie# show ip dhcp relay-statistics Examples Cycle mode Message Count Discover...
  • Page 585: Show Ip Dhcp Server Statistics

    This command displays the statistics of the DHCP server. Configuration The following example displays the output result of the show ip dhcp server statistics command. Examples Ruijie# show ip dhcp server statistics Address pools Lease counter Active Lease Counter Expired Lease Counter...
  • Page 586 Command Reference DHCP Commands DHCPINFORM Message Sent BOOTREPLY DHCPOFFER DHCPACK DHCPNAK DHCPREQTIMES DHCPREQSUCTIMES DISCOVER-PROCESS-ERROR 0 LEASE-IN-PINGSTATE NO-LEASE-RESOURCE SERVERID-NO-MATCH -------------------------------------------- recv send The meaning of various fields in the show result is described as follows. Field Description Address pools Number of address pools. Lease count Number of allocated lease.
  • Page 587 DHCP Commands Parameter Parameter Description Description Defaults Command Privileged EXEC mode Mode Usage Guide Configuration The following example displays the socket used by the DHCP server. ruijie#show ip dhcp socket Examples dhcp socket = 47. Related Command Description Commands Platform Description...
  • Page 588: Dhcpv6 Commands

    This command is used to reset the DHCPv6 client, which may lead the client to request for the configurations from the server again. The following example resets DHCP client VLAN 1. Configuration Ruijie# clear ipv6 dhcp client vlan 1 Examples Related Command...
  • Page 589 Mode Usage Guide Configuration The following example clears the packet sending and receiving condition with the DHCPv6 Relay Examples function enabled. Ruijie# clear ipv6 dhcp relay statistics Related Command Description Commands show ipv6 dhcp relay statistics Displays the statistical information.
  • Page 590: Ipv6 Dhcp Client Pd

    The following example enables the prefix information request on the interface. Configuration Ruijie(config)# interface fastethernet 0/1 Examples Ruijie(config-if)# ipv6 dhcp client pd pd_name Related Command Description Commands...
  • Page 591: Show Ipv6 Dhcp

    The relay reply message can be forwarded without the relay function enabled on the interface. Configuration The following example sets the relay destination address on the interface. Ruijie(config)# interface fastethernet 0/1 Examples Ruijie(config-if)# ipv6 dhcp relay destination 2008:1::1 Related Command Description Commands show ipv6 dhcp interface Displays the DHCPv6 interface information.
  • Page 592: Show Ipv6 Dhcp Interface

    If the interface-name is not specified, all DHCPv6 interface information isdisplayed. If the interface-name is specified, the specified interface information is displayed. Configuration The following example displays the DHCPv6 interface information. Ruijie# show ipv6 dhcp interface Examples VLAN 1 is in server mode Server pool dhcp-pool...
  • Page 593 (optional) by an interface for which the relay function has been enabled by Relay Agent. Examples The following example displays all the relay destination addresses. Ruijie# show ipv6 dhcp relay destination all Interface: Vlan1 //interface for which the relay function has been enabled Destination address(es)
  • Page 594 Mode Usage Guide N/A. Configuration The following example displays the packet sending and receiving condition with the DHCPv6 Relay Examples function enabled. Ruijie# show ipv6 dhcp relay statistics Packets dropped Error Excess of rate limit Packets received : 28 SOLICIT...
  • Page 595: Dns Commands

    2) the DNS dynamic learning. Execute this command to delete the host name records learned by the DNS dynamically. Configuration The following configuration deletes the dynamically learned mapping records from the host name-IP Examples address buffer table. Ruijie(config)#clear host * Related Command Description Commands Displays the host name buffer table.
  • Page 596 The host name of the equipment ip-address The IP address of the equipment Defaults Global configuration mode. Command Mode Usage Guide Configuration The following example configures IPv4 address 192.168.5.243 for domain name www .test.com. Ruijie(config)# ip host www.test.com 192.168.5.243 Examples Related Command Description...
  • Page 597 Command Reference DNS Commands Commands Show related configuration show hosts information. Platform Description 6.4 ip name-server Use this command to configure the IP address of the domain name server. Use the no form of this command to delete the configured domain name server. ip name-server { ip-address | ipv6-address } no ip name-server [ ip-address | ipv6-address ] Parameter...
  • Page 598: Ipv6 Host

    Global configuration mode. Mode Usage Guide To delete the host list, use the no ipv6 host host-name ipv6-address command. Configuration The following example configures the IPv6 address for the domain name. Ruijie(config)# ipv6 host switch 2001:0DB8:700:20:1::12 Examples Related Command Description Commands...
  • Page 599 Command Reference DNS Commands This command is used to display the DNS related configuration information. Usage Guide Ruijie# show hosts Configuration Name servers are: Examples 192.168.5.134 static Host type Address TTL(sec) switch static 192.168.5.243 www.ruijie.com dynamic 192.168.5.123 Field Description Name servers...
  • Page 600 Configuration The following example enables the FTP Server and confines the FTP client access to the syslog Examples subdirectory: Ruijie(config)# ftp-server topdir /syslog Ruijie(config)# ftp-server enable The following example disables the FTP Server: Ruijie(config)# no ftp-server enable Related Command...
  • Page 601 If you don’t perform authentication again before the timeout interval expires, you will be forced offline. The following example sets the timeout interval for login to the FTP server to 5 minutes. Configuration Examples Ruijie(config)# ftp-server login timeout 5 The following example restores the default setting. Ruijie(config)# no ftp-server login timeout Related Command...
  • Page 602 If the number of your login attempts exceeds 3, you will be forced offline. The following example sets the number of login attempts to 5. Configuration Examples Ruijie(config)# ftp-server login times 5 The following example restores the default setting. Ruijie(config)# no ftp-server login times Related...
  • Page 603 The session idle time refers to the time for the FTP session between two FTP operations Configuration The following example sets the session idle timeout to 5 minutes: Examples Ruijie(config)# ftp-server timeout 5 The following example restores the default setting. Ruijie(config)# no ftp-server timeout Related...
  • Page 604 Command Reference FTP Server Commands Ruijie(config)# ftp-server enable The following example restores the default setting. Ruijie(config)# no ftp-server topdir Related Command Description Commands Platform Description 7.6 ftp-server username password Use this command to set the login username and password for the FTP server. Use the no form of this command to restore the default setting.
  • Page 605 Command Reference FTP Server Commands The following example sets the username to user: Configuration Examples Ruijie(config)# ftp-server username user password pass The following example restores the default setting: Ruijie(config)# no ftp-server username user Related Command Description Commands Platform Description 7.7 show ftp-server Use this command to show the status information of the FTP server.
  • Page 606 Command Reference FTP Server Commands enable : Y topdir : tmp:/ timeout: 10min username:aaaa password:(PLAINT)bbbb connect num[2] [0]trans-type:BINARY (ctrl)server IP:192.168.21.100[21] client IP:192.168.21.26[3927] [1]trans-type:ASCII (ctrl)server IP:192.168.21.100[21] client IP:192.168.21.26[3929] username:a1 password:(PLAINT)bbbb connect num[0] username:a2 password:(PLAINT)bbbb connect num[0] username:a3 password:(PLAINT)bbbb connect num[0] username:a4 password:(PLAINT)bbbb connect num[0] username:a5...
  • Page 607: Ftp Client Commands

    Command Reference FTP CLIENT Commands 8 FTP CLIENT Commands 8.1 copy flash Use this command to upload the file from the server to the device through FTP Client. copy flash:[ local-directory/ ] local-file ftp://username:password@dest-address [ /remote-directory ] / remote-file Parameter Parameter Description Description...
  • Page 608 The following example uploads the file named "local-file" in directory "home" of local device to Configuration directory "root" on the FTP Server whose user name is user, password is pass and IP address is Examples 192.168.23.69, and changes the filename to "remote-file". Ruijie# copy flash:home/local-file ftp://user:pass@192.168.23.69/root/remote-file Related...
  • Page 609 The default command is used to restore the FTP client setting. Specifically, data connection is in PASV mode and file transfer BINARY. The client source IP address is not bound. The following example configures ASCII FTP transfer. Configuration Ruijie (config)# ftp-client ascii Examples The following example configures binary FTP transfer.
  • Page 610 Command Reference FTP CLIENT Commands Ruijie(config)# no ftp-client ascii The following example restores the default setting of the FTP Client. Ruijie(config)# default ftp-client Related Command Description Commands Platform Description 8.4 ftp-client port Use this command to configure PORT mode used for FTP data connection. Use the no form of this command to restore the default setting.
  • Page 611 PASV mode and file transfer BINARY. The client source IP address is not bound. The following example binds FTP Client with source IP address 192.168.23.236. Configuration Ruijie(config)# ftp-client source-address 192.168.23.236 Examples The following example binds FTP Client with source IP address 2003:0:0:0::2.
  • Page 612 Usage Guide upload or download files. Configuration The following example enables the TFTP server and sets the top directory of the TFTP server to /syslog. Ruijie(config)# tftp-server topdir /syslog Examples Ruijie(config)# tftp-server enable The following example disables the TFTP server.
  • Page 613 TFTP server before a top directory is correctly configured for the server. Configuration The following example enables the TFTP servicer and sets the top directory for TFTP clients to /syslog. Ruijie(config)# tftp-server topdir /syslog Examples Ruijie(config)# tftp-server enable The following example removes the top directory.
  • Page 614 Privileged EXEC mode Mode Usage Guide Configuration The following example clears all Rping entries. Ruijie# clear rping table all Examples The following example clears the specified Rping entry. Ruijie# clear rping table user ruijie Related Command Description Commands Platform Description 10.2 ping Use this command to test the connectivity of a network to locate the network connectivity problem.
  • Page 615 Configurat The following example tests the connectivity of a network to locate the network connectivity problem. (RG-S29 series products do not support the VRF parameter. The following example is for reference Examples purpose. Please take the actual device as the standard.) (regular ping).Ruijie# ping 192.168.21.26...
  • Page 616 The following example tests the connectivity of a network to locate the network connectivity problem (extension ping). Ruijie# ping 192.168.21.26 length 1500 ntimes 100 data ffff source 192.168.21.99 timeout 3 Sending 100, 1500-byte ICMP Echoes to 192.168.21.26, timeout is 3 seconds: <...
  • Page 617: Ping Ipv

    Command Reference Network Connectivity Test Tool Commands Related Command Command Description Platform Descriptio 10.3 ping ipv6 Use this command to test the connectivity of a network to locate the network connectivity problem. The command format is as follows: ping [ipv6] [ip-address [length length] [ntimes times] [timeout seconds] [data data] [source source] [detail ] [ interval millisecond ] [ out-interface interface [ next-hop next-hop ] ] ] Parameter Descriptio...
  • Page 618 Configuration section. Configurat The following example tests the connectivity of a network to locate the network connectivity problem. Ruijie# ping ipv6 2000::1 Sending 5, 100-byte ICMP Echoes to 2000::1, timeout is 2 seconds: Examples < press Ctrl+C to break >...
  • Page 619 This command is used to display the Rping information such as numbers of test accounts and users. Usage Guide Configuration The following example displays Rping information. Ruijie#show rping detail Examples Total owner number: 2 Total test number: 4 owner: user1...
  • Page 620 The following is two examples of the application bout traceroute, the one is of the smooth network, and the other is the network in which some gateways aren’t connected successfully. Examples 1. When the network is connected smoothly: Ruijie# traceroute 61.154.22.36 < press Ctrl+C to break > Tracing the route to 61.154.22.36 192.168.12.1...
  • Page 621 The above result clearly shown that the gateways passed by the packets sent to the host with an IP address of 202.108.37.42 (gateways 1~17) and the spent time are displayed, and gateway 4 fails. Ruijie# traceroute www.ietf.org Translating "www.ietf.org"...[OK] < press Ctrl+C to break >...
  • Page 622 The following is two examples of the application bout traceroute ipv6, the one is of the smooth network, and the other is the network in which some gateways aren’t connected successfully. Examples 1. When the network is connected smoothly: Ruijie# traceroute ipv6 3004::1 < press Ctrl+C to break > Tracing the route to 3004::1 3000::1...
  • Page 623 Command Reference Network Connectivity Test Tool Commands 3001::1 4 msec 4 msec 4 msec 3002::1 8 msec 8 msec 4 msec * * * 3004::1 4 msec 28 msec 12 msec The above result clearly shown that the gateways passed by the packets sent to the host with an IP address of 3004::1 (gateways 1~5) and the spent time are displayed, and gateway 4 fails.
  • Page 624 60 respectively. If the device sends the keepalive packet for four consecutive times without receiving any TCP packet from the peer end, the TCP connection is considered invalid. Ruijie(config)# ip tcp keepalive interval 60 times 4 idle-period 180 Related...
  • Page 625 MSS. However, this configuration is not needed in general. This command applies to both IPv4 and IPv6 TCP. The following example sets the upper limit of the MSS value to 1300 bytes. Configuration Ruijie(config)# ip tcp mss 1300 Examples Related Command...
  • Page 626 PMTU at the specified interval untill the PMTU value reaches the MSS or the user stops this timer. Use the parameter age-timer infinite to stop this timer. The following example enables PMTU discovery. Configuration Ruijie(config)# ip tcp path-mtu-discovery Examples Related Command...
  • Page 627 This command applies to both IPv4 and IPv6 TCP. Configuration The following example disables the device from sending the reset packet when receiving the TCP Examples port unreachable packet. Ruijie(config)# no ip tcp send-reset Related Command Description Commands...
  • Page 628 This command changes both the receiving buffer and sending buffer, and only applies to subsequent connections. This command applies to both IPv4 and IPv6 TCP. Configuration The following example sets the TCP window size to 16386 bytes. Ruijie(config)# ip tcp window-size 16386 Examples Related Command...
  • Page 629 Configuration The following example enables the keepalive function for the TCP server and sets the interval of Examples sending the keepalive packet to 10 seconds. The keepalive packet contains one-byte invalid data. Ruijie(config)# service tcp-keepalives-in 10 garbage Related Command Description...
  • Page 630 Configuration The following example enables the keepalive function for the TCP client and sets the interval of Examples sending the keepalive packet to 10 seconds. The keepalive packet contains one-byte invalid data Ruijie(config)# service tcp-keepalives-out 10 garbage Related Command Description...
  • Page 631 :::22 :::0 LISTEN rg-sshd :::23 :::0 LISTEN rg-telnetd 1000::1:23 1000::2:64201 ESTABLISHED rg-telnetd The following example displays the current IPv6 TCP connection statistics. Ruijie#show ipv6 tcp connect statistics State Count ----- ----- ESTABLISHED 1 SYN_SENT SYN_RECV FIN_WAIT1 FIN_WAIT2 TIME_WAIT CLOSED CLOSE_WAIT...
  • Page 632 Peer IPv6 address peer-port num Peer port Defaults Command Privileged EXEC mode Mode Usage Guide The following example information about IPv6 TCP PMTU. Configuration Ruijie# show ipv6 tcp pmtu Examples Number Local Address Foreign Address PMTU 1000::1:23 1000::2.13560 Field Description Number...
  • Page 633 Port number Defaults Command Privileged EXEC mode Mode Usage Guide The following example displays the current IPv6 TCP port status. Configuration Ruijie#show ipv6 tcp port Examples TCP connections on port 23: Number Local Address Foreign Address State 1000::1:23 1000::2:64571 ESTABLISHED...
  • Page 634 Command Reference TCP Commands State Current status of the TCP connection. There are eleven possible states: CLOSED: The connection has been closed. LISTEN: Listening state SYNSENT: In the three-way handshake phase when the SYN packet has been sent out. SYNRCVD: In the three-way handshake phase when the SYN packet has been received.
  • Page 635 Command Reference TCP Commands Defaults Command Privileged EXEC mode Mode Usage Guide Configuration The following example displays the current IPv4 TCP connection information. Ruijie#show tcp connect Examples Number Local Address Foreign Address State Process name 0.0.0.0:22 0.0.0.0:0 LISTEN rg-sshd 0.0.0.0:23 0.0.0.0:0...
  • Page 636 Command Reference TCP Commands FIN packet. Process name Process name. The following example displays the current IPv4 TCP connection statistics. Ruijie#show tcp connect statistics State Count ----- ----- ESTABLISHED 1 SYN_SENT SYN_RECV FIN_WAIT1 FIN_WAIT2 TIME_WAIT CLOSED CLOSE_WAIT LAST_ACK LISTEN CLOSING...
  • Page 637 Command Reference TCP Commands The following example shows TCP parameters. Configuration Ruijie#show tcp parameter Examples Hash table information: Established hash bucket size: 16384 Bind hash bucket size: 16384 Memory information: Global memory limit: low=92160, pressure=122880, high=184320 (unit: pages) Per-socket receive buffer size: min=4096, default=87380, max=3932160 (unit:...
  • Page 638 Peer IP address. peer-port num Peer port. Defaults Command Privileged EXEC mode Mode Usage Guide The following example displays PMTU of IPv4 TCP connection. Configuration Ruijie# show tcp pmtu Examples Number Local Address Foreign Address PMTU 192.168.195.212.23 192.168.195.112.13560 1440 Field Description Number Sequence number.
  • Page 639 Defaults Command Privileged EXEC mode Mode Usage Guide Configuration The following example displays the current IPv4 TCP port status. Ruijie#sh tcp port Examples tcp port status: Tcpv4 listen on 2650 have connections: Foreign Address Port State Tcpv4 listen on 2650 have total 0 connections.
  • Page 640: Show Tcp Statistics

    Use this command to show TCP statistics on received packets, three way handshake and time-wait. show tcp parameter Parameter Parameter Description Description Defaults Command Privileged EXEC mode Mode Usage Guide The following example shows TCP parameters. Configuration Ruijie#show tcp statistics Examples TCP Packets Received: 1103...
  • Page 641 Command Reference TCP Commands Errors : 0(checksum: 0) Three way handshake Request queue overflow: 0 Accept backlog full: 0 Web authentication limit per user: 0 Failed to alloc memory for request sock: 0 Failed to create open request child: 0 SYN ACK retransmits: 0 Timeouted requests: 0 Time-wait...
  • Page 642 Command Reference IPv4/IPv6 REF Commands 12 IPv4/IPv6 REF Commands 12.1 clear ip ref packet statistics Use this command to clear IPv4 Ruijie Express Forwarding (REF) packet statistics. clear ip ref packet statistics Parameter Parameter Description Description Defaults Privileged EXEC mode...
  • Page 643 Command Reference IPv4/IPv6 REF Commands The following example clears IPv6 REF packet statistics. Configuration Ruijie #clear ipv6 ref packet statistics Examples Related Command Description Commands Platform Description 12.3 show ip ref adjacency Use this command to display the information about the specified adjacent node or all adjacent nodes.
  • Page 644 Command Reference IPv4/IPv6 REF Commands 6 unresolved glean 1 0.0.0.0 GigabitEthernet 0/0 4 unresolved local 3 0.0.0.0 Local 1 Description of fields: Field Description Adjacent node ID Adjacent node state: state Unresolved Resolved Adjacent node type Local: local adjacency Forward: forward adjacency type Discard: discard adjacency Glean: glean adjacency...
  • Page 645 Usage Guide display the path of forwarding the current packet with REF Configuration The following example displays the IPv4 REF exact route from 192.168.217.74 to 192.168.13.1. Ruijie# show ip ref exact-route 192.168.217.74 192.168.13.1 Examples 192.168.217.74 --> 192.168.13.1: id state type...
  • Page 646 Description Defaults Command Privileged EXEC mode Mode Usage Guide Configuration The following example displays IPv4 REF packet statistics. Ruijie #show ip ref pkt-statistic Examples ref packet statistic: bad head lookup fib fail : 0 local adj glean adj forward redirect...
  • Page 647 Parameter Parameter Description Description Defaults Command Privileged EXEC mode Mode Usage Guide Configuration The following example displays IPv4 REF resolution information. Ruijie#show ip ref resolve-list Examples res_state flags interface 1.1.1.1 unres GigabitEthernet 0/0 Field Description IP address unres: unresolved res_state...
  • Page 648 This command is used to display the related routing information on the current REF table, and specify the default route and all the routing information matching IP/MASK. The following example displays all the routing information in the IPv4 REF table. Configuration Ruijie#show ip ref route Examples Codes: * - default route # - zero route...
  • Page 649 This command can be used to display the information about the adjacent node table in the privileged EXEC mode and global configuration mode. Configuration The following example displays the information about the IPv6 adjacent node.. Ruijie#show ipv6 ref adjacency Examples state type...
  • Page 650 Command Privileged EXEC mode Mode Usage Guide Configuration The following example displays the IPv4 REF exact route from 2001:db8:1::1 to 3001:db8:2::2. Examples Ruijie#show ipv6 exact-route 2001:db8:1::1 3001:db8:2::2 2001:db8:1::1 --> 3001:db8:2::2: ID state type rfct chg ip interface linklayer(header data) unresolve...
  • Page 651 Parameter Description Description Defaults Command Privileged EXEC mode Mode Usage Guide Configuration The following example displays IPv6 REF packet statistics. Ruijie#show ipv6 ref packet statistics Examples ref packet statistic: bad head lookup fib fail : 0 local adj glean adj...
  • Page 652 Command Reference IPv4/IPv6 REF Commands forward redirect hop-limit expiration : 0 no ipv6 unicast-routing Field Description bad head Number of the packets with false header Number of the packets with failed REF lookup fib fail routing Number of the packets matching the drop adj dropped adjacency Number of the packets matching the...
  • Page 653 Command Reference IPv4/IPv6 REF Commands Ruijie#show ipv6 ref resolve-list Examples res_state flags interface 1000::1 unres GigabitEthernet 0/0 Field Description IPv6 address unres: unresolved res_state res: resolved 0: related to adjacency flags 1: unrelated to adjacency interface Interface Related Command Description...
  • Page 654 Command Reference IPv4/IPv6 REF Commands Configuration The following example displays all the routing information in the REF IPv6 table. Examples Ruijie#show ipv6 ref route Codes: * - default route prefix/len weight path_id next_hop interface 2001:da8:ffe:2::/64 GigabitEthernet 0/0 2001:da8:ffe:2::3/128 Local 1...
  • Page 655 IP Routing Commands 1 RIP Commands 2 OSPFv2 Commands 3 OSPFv3 Commands 4 RIPng Commands 5 NSM Commands 6 Protocol-independent Configuration Commands...
  • Page 656: Rip Commands

    The range of the supernet route is wider than that of the classful network. Therefore, this command takes no effect on the supernet route. Configuration The following example disables automatic route summary of RIPv2. Ruijie (config)# router rip Examples Ruijie (config-router)# version 2 Ruijie (config-router)# no auto-summary...
  • Page 657 Command Reference RIP Commands Related Command Description Commands Defines the RIP software versions: v1 or v2. version Both v1 and v2 are supported by default. Platform Description 1.2 default-information originate Use this command to generate a default route in the RIP progress. Use the no form of this command to delete the generated default route.
  • Page 658 For the default route generated by using the ip default-network command, the default-information originate command is required to add the default route to RIP. Configuration The following example generates a default route to the RIP routing table. Ruijie(config-router)# default-information originate always Examples Related Command...
  • Page 659 The following example enables the RIP routing protocol to redistribute the routes learned by the Configuration OSPF routing protocol, whose initial RIP metric value is set to 3. Examples Ruijie (config)# router rip Ruijie (config-router)# default-metric 3 Ruijie (config-router)# redistribute ospf 100 Related Command Description Commands Redistributes the routes from one routing redistribute domain to another routing domain.
  • Page 660 The following example enables RIP to control the routes received from the Fastethernet 0/0, only Examples permitting the routes starting with 172.16. Ruijie (config)# router rip Ruijie (config-router)# network 200.168.23.0 Ruijie (config-router)# distribute-list 10 in fastethernet 0/0 Ruijie (config-router)# no auto-summary...
  • Page 661 Command Reference RIP Commands Ruijie (config-router)# access-list 10 permit 172.16.0.0 0.0.255.255 Related Command Description Commands access-list Defines the ACL rule. prefix-list Defines the prefix list. Platform Description 1.6 distribute-list out Use this command to control route update advertisement for filtering routes. Use the no form of this command to restore the default setting.
  • Page 662 Configuration Ruijie (config)# router rip Examples Ruijie (config-router)# network 200.4.4.0 Ruijie (config-router)# network 192.168.12.0 Ruijie (config-router)# distribute-list 10 out Ruijie (config-router)# version 2 Ruijie (config-router)#access-list 10 permit 192.168.12.0 0.0.0.255 Related Command Description Commands access-list Defines the ACL rule. Defines the prefix list.
  • Page 663 Command Reference RIP Commands Platform Description 1.8 graceful-restart Use this command to configure the RIP graceful restart (GR) function for a device. Use the no form of this command to restore the default configuration. graceful-restart [ grace-period grace-period ] no graceful-restart [ grace-period ] Parameter Parameter Description...
  • Page 664 The following example enables RIP authentication on the fastEthernet 0/1 with the associated Examples keychain ripchain. Ruijie (config)#interface fastEthernet 0/1 Ruijie (config-if-FastEthernet 0/1)#ip rip authentication key-chain ripchain Meanwhile, use the key chain command to define this keychain in global configuration mode. Ruijie(config)#key chain ripchain Ruijie(config-keychain)#key 1...
  • Page 665: Ip Rip Authentication Mode

    RIPv2 instead of RIPv1 supports authentication of the RIP data packet. Configuration The following example configures the RIP authentication mode on the fastEthernet 0/1 as MD5. Ruijie (config)#interface fastEthernet 0/1 Examples Ruijie (config-if-FastEthernet 0/1)# ip rip authentication mode md5...
  • Page 666 Command Reference RIP Commands Related Command Description Commands Enables the RIP authentication mode and specifies the keychain used for RIP ip rip authentication key-chain authentication. Only RIPv2 supports authentication of the RIP data packet. Enables the RIP authentication mode, and sets the password string of RIP plaintext ip rip authentication text-password authentication.
  • Page 667 Command Reference RIP Commands Ruijie(config)#interface fastEthernet 0/1 Ruijie(config-if-FastEthernet 0/1)# ip rip authentication text-password hello Related Command Description Commands ip rip authentication mode Defines the RIP authentication mode. Enables the RIP authentication mode and specifies the keychain used for RIP ip rip authentication key-chain authentication.
  • Page 668: Ip Rip Receive Enable

    RIP data package. Configuration The following example prohibits receiving RIP data packages on fastEthernet 0/1. Ruijie (config)# interface fastEthernet 0/1 Examples Ruijie (config-if-FastEthernet 0/1)# no ip rip receive enable Related Command Description Commands...
  • Page 669: Ip Rip Receive Version

    The following example enables receiving both RIPv1 and RIPv2 data packages. Configuration Ruijie (config)#interface fastEthernet 0/1 Examples Ruijie (config-if-FastEthernet 0/1)# ip rip receive version 1 2 Related Command Description Commands Defines the default version of the RIP packets version received/sent on the interface.
  • Page 670 RIP data package. Configuration The following example prohibits sending RIP data packages on fastEthernet 0/1. Ruijie (config)# interface fastEthernet 0/1 Examples Ruijie (config-if-FastEthernet 0/1)# no ip rip send enable Related Command Description Commands...
  • Page 671: Ip Rip Send Version

    If the command is configured without parameters, package receiving depends on the configuration of the version. Configuration The following example enables sending both RIPv1 and RIPv2 packages on the fastEthernet 0/1 Examples interface. Ruijie (config)# interface fastEthernet 0/1 Ruijie (config-if-FastEthernet 0/1)# ip rip send version 1 2...
  • Page 672 This function makes no influence on the neighbor defined with the neighbor command. The following example disables the RIP split horizon function on the interface fastethernet 0/0. Configuration Ruijie (config)# interface fastethernet 0/1 Examples Ruijie (config-if)# no ip rip split-horizon...
  • Page 673 Configuration convergence is configured so that fastEthernet 0/1 advertises the converged route 172.16.0.0/16. Examples Ruijie (config)# interface fastEthernet 0/1 Ruijie (config-if-FastEthernet 0/1)# ip rip summary-address 172.16.0.0 255.255.0.0 Ruijie (config-if-FastEthernet 0/1)# ip address 172.16.1.1 255.255.255.0 Ruijie (config)# router rip Ruijie (config-router)# network 172.16.0.0...
  • Page 674 Command Reference RIP Commands Ruijie (config-router)# no auto-summary Related Command Description Commands Enables the automatic convergence of RIP auto-summary routes. Platform Description 1.20 ip rip triggered Use this command to enable triggered RIP based on links. Use the no form of this command to restore the default setting.
  • Page 675 10 seconds and 18 respectively for Update Request and Update Response packets. Ruijie(config)# interface fastEthernet 0/1 Ruijie(config-if-FastEthernet 0/1)# ip rip triggered Ruijie(config-if-FastEthernet 0/1)# ip rip triggered retransmit-timer 10 Ruijie(config-if-FastEthernet 0/1)# ip rip triggered retransmit-count 18 Related Command...
  • Page 676 Configuration The following example sends RIPv2 packets in broadcast mode on the fastEthernet 0/1 interface. Ruijie(config)# interface fastEthernet 0/1 Examples Ruijie(config-if-FastEthernet 0/1)# no ip rip split-horizon Related Command Description Commands Defines the default version of the RIP packets version received and sent on the interface.
  • Page 677 RIP information. The passive interface is configured. No request packet is sent after the interface is enabled. Configuration The following RIP advertises routing information to neighbor IP address 192.168.1.2 only. Ruijie(config)# router rip Examples Ruijie(config-router)# passive-interface default Ruijie(config-router)# neighbor 192.168.1.2...
  • Page 678 Configuration The following example defines two network numbers associated with RIP and allows the interface IP Examples address between 192.168.12.0/24 and 172.16.0.0/24 to join RIP running. Ruijie (config)# router rip Ruijie (config-router)# network 192.168.12.0 Ruijie(config-router)# network 172.16.0.0 0.0.0.255 Related Command...
  • Page 679 Ruijie (config-router)# offset-list 7 out 7 Examples The following example increases the metric of the RIP routes by 7 in the range specified by ACL 7 and learned by fastethernet 0/1. Ruijie (config-router)# offset-list 8 in 7 fastethernet 0/1 Related Command Description...
  • Page 680 Configuration The following example sets all interfaces to the passive interfaces and then sets ethernet0/1 to the Examples non-passive interface. Ruijie(config-router)# passive-interface default Ruijie(config-router)# no passive-interface gigabitEthernet 0/1 Related Command Description Commands Enables or disables receiving RIP packets on ip rip receive enable the interface.
  • Page 681 Command Reference RIP Commands Platform Description 1.27 redistribute Use this command to redistribute external routes in route configuration mode. Use the no form of this command to restore the default setting. redistribute { connected | ospf process-id | static } [match { internal | external [ 1|2 ] | nssa-external [ 1|2 ] }] [ metric metric-value ] [ route-map route-map-name ] no redistribute { connected | ospf process-id | static } [ match { internal | external [ 1|2 ] | nssa-external [ 1|2 ] } ] [ metric metric-value ] [ route-map route-map-name ]...
  • Page 682: Router Rip

    One RIP routing process must be defined with one network number. If a dynamic routing protocol Usage Guide runs on asynchronous lines, configure the async default routing command on the asynchronous interface. Configuration The following example creates the RIP routing process and enters the routing process configuration Examples mode. Ruijie (config)# router rip...
  • Page 683: Show Ip Rip

    The following example displays the basic information of the RIP process such as the update time and Examples management distance. Ruijie#show ip rip Routing Protocol is "rip" Sending updates every 10 seconds, next due in 4 seconds Invalid after 20 seconds, flushed after 10 seconds...
  • Page 684: Show Ip Rip Database

    When the last sub-route information in the converged address entries becomes invalid, the converged address information will be deleted from the database. Configuration The following example displays all converged address entries in the RIP routing database. Ruijie# show ip rip database Examples 192.168.1.0/24 auto-summary 192.168.1.0/30...
  • Page 685 [1] via 192.168.4.22, Serial 0/1 00:28 permanent The following example displays the converged address entries related with 192.168.121.0/24 in the RIP routing database. Ruijie# show ip rip database 192.168.121.0 255.255.255.0 192.168.121.0/24 redistributed [1] via 192.168.2.22, FastEthernet 0/1 The following example displays the statistical information summary of various routes in the RIP routing database.
  • Page 686: Show Ip Rip Interface

    Command Reference RIP Commands Mode Usage Guide Configuration The following example displays direct routes redistributed by the RIP process. Ruijie# show ip rip external Examples Protocol connected route: [connected] 192.100.3.0/24 metric=0 nhop=0.0.0.0, if=2 [connected] 192.101.1.0/24 metric=0 nhop=0.0.0.0, if=3 Protocol static route: [static] 10.1.1.1/32 metric=0...
  • Page 687: Show Ip Rip Peer

    This command is used to display the information about RIP interfaces. If no RIP interface exists, no Usage Guide information is displayed. Configuration The following example displays the RIP interface information. Ruijie# show ip rip interface Examples FastEthernet 0/1 is up, line protocol is up Routing Protocol: RIP Receive RIPv2 packets only...
  • Page 688: Timers Basic

    This command is used to display the RIP neighbor information. If no RIP neighbor exists, no Usage Guide information will be displayed. The following example displays the RIP neighbor information. Configuration Ruijie# show ip rip peer Examples Peer 192.168.3.2: Local address: 192.168.3.1 Input interface: GigabitEthernet 0/2...
  • Page 689 The following example enables the RIP update packets that are sent every 10 seconds. If no update Examples packet is received within 30 seconds, related routes become invalid and enter the invalid status. When another 90s elapses, they will be cleared. Ruijie (config)# router rip Ruijie (config-router)# timers basic 10 30 90 Related Command Description Commands...
  • Page 690 Configuration The following example disables verification of the source IP address of the update packet. Ruijie (config)# router rip Examples Ruijie (config-router)# no validate-update-source Related...
  • Page 691 RIP version are processed on every interface by using the ip rip receive version and ip rip send version commands. The following example configures the RIP version as version 2. Configuration Ruijie (config)# router rip Examples Ruijie (config-router)# version 2 Related...
  • Page 692 The corresponding network area command exists in any area. All network segment commands added to an area must be removed at first. Configuration The following example removes the configuration of OSPF area 2. Ruijie(config)# router ospf 2 Examples Ruijie(config-router)# no area 2 Related...
  • Page 693 (backbone area) of the OSPF routing process. Ruijie(config)# interface fastEthernet 0/1 Ruijie(config-if-FastEthernet 0/1)# ip address 192.168.12.1 255.255.255.0 Ruijie(config-if-FastEthernet 0/1)# ip ospf message-digest-key 1 md5 backbone Ruijie(config)# router ospf 1 Ruijie(config-router)# network 192.168.12.0 0.0.0.255 area 0 Ruijie(config-router)# area 0 authentication message-digest...
  • Page 694 Configuration The following example sets the cost of the default aggregate route to 50. Ruijie(config)# router ospf 1 Examples Ruijie(config-router)# network 172.16.0.0 0.0.255.255 area 0 Ruijie(config-router)#network 192.168.12.0 0.0.0.255 area 1 Ruijie(config-router)# area 1 stub Ruijie(config-router)# area 1 default-cost 50 Related...
  • Page 695: Area Nssa

    The following example sets area 1 to learn only the inter-area routes of 172.22.0.0/8. Ruijie# configure terminal Examples Ruijie(config)# access-list 1 permit 172.22.0.0 0.255.255.255 Ruijie(config)# router ospf 100 Ruijie(config-router)# area 1 filter-list access 1 in Related Command Description Commands Platform Description 2.5 area nssa...
  • Page 696 Command Reference OSPFv2 Commands no area area-id nssa [ no-redistribution ] [ default-information-originate [ metric value ] [ metric-type type ] ] [ no-summary ] [ translator [ stability-interval | always ] ] Parameter Parameter Description Description area-id NSSAID Imports the routing information to a common area other than the no-redistribution NSSA for the NSSA ABR.
  • Page 697: Area Range

    Type-5 LSAs. Configuration The following example sets area 1 as an NSSA on all routers of the area. Ruijie(config)#router ospf1 Examples Ruijie(config-router)#network 172.16.0.0 0.0.255.255 area0 Ruijie (config-router)#network 192.168.12.0 0.0.0.255 area 1 Ruijie(config-router)# area1nssa Related Command Description Commands...
  • Page 698 The area range of route aggregation is determined according to the longest match when multiple aggregate routes with direct inclusion relationships are configured. Configuration The following example aggregate the routes of area 1 into a route 172.16.16.0/20. Ruijie(config)#router ospf 1 Examples Ruijie(config-router)#network 172.16.0.0 0.0.15.255area0 Ruijie((config-router)#network 172.16.17.0 0.0.15.255area1 Ruijie(config-router)#area1range 172.16.16.0 255.255.240.0...
  • Page 699 The following example sets area 1 as the stub area on all devices in area 1. Configuration Ruijie(config)# router ospf1 Examples Ruijie(config-router)# network172.16.0.0 0.0.255.255 area 0 Ruijie (config-router)# network 192.168.12.0 0.0.0.255 area 1 Ruijie(config-router)# area 1 stub Related Command Description...
  • Page 700 Command Reference OSPFv2 Commands Parameter Parameter Description Description ID of the OSPF transition area. The value can be a decimal integer or area-id an IP address. ID of the router neighboring to the virtual link. It can be viewed with router-id the show ip ospf command.
  • Page 701: Command Mode

    The following example sets area 1 as the transition area to establish virtual link with neighbor 2.2.2.2. Ruijie(config)# router ospf 1 Examples Ruijie(config-router)# network 172.16.0.0 0.0.15.255 area0 Ruijie(config-router)# network 172.16.17.0 0.0.15.255 area1 Ruijie(config-router)#area1 virtual-link2.2.2.2 The following example sets area 1 as the transition area to establish a virtual link with neighbor 1.1.1.1.
  • Page 702 OSPFv2 Commands Ruijie(config-router)# network172.16.17.0 0.0.15.255area1 Ruijie(config-router)# network172.16.252.0 0.0.0.255 area10 Ruijie(config-router)# area 0 authentication message-digest Ruijie(config-router)# area1virtual-link 1.1.1.1message-digest-key1md5hello The following example sets area 1 as the transition area to establish a virtual link with neighbor 1.1.1.1, enables the Fast Hello function on this virtual link, and sets the multiplier to 3.
  • Page 703: Usage Guide

    If you run the ip ospf cost command to configure the cost of an interface, the configured cost will automatically overwrite the cost that is computed based on the auto cost. Configuration The following example configures the reference bandwidth as 10 Mbps. Ruijie(config)# routerospf1 Examples Ruijie(config-router)# network172.16.10.0 0.0.0.255 area0 Ruijie(config-router)# auto-costreference-bandwidth10 Related Command Description Commands...
  • Page 704: Related Commands

    Resetting the entire OSPF process causes that all neighbors are re-established and OSPF is greatly affected. Therefore, you are prompted to confirm the execution for deliberation. Configuration The following example clears data of OSPF instance 1 and restarts OSPF instance 1. Ruijie#clearipospf1process Examples Related Command...
  • Page 705 The RFC 1583 rule is used by default. Command Mode Routing process configuration mode Usage Guide Configuration The following example determines the best route with the RFC 2328 rule. Ruijie(config)# routerospf1 Examples Ruijie(config-router)# nocommpatiblerfc1583 Related Command Description Commands Displays the OSPF global configuration...
  • Page 706 The following example configures that OSPF generates an external default route and injects it to the Configuration OSPF routing domain. The default route is of type 1 and the metric 50. Examples Ruijie(config)#routerospf 1 Ruijie(config-router)#network172.16.24.0 0.0.0.255 area 0 Ruijie(config-router)#default-information originate alwaysmetric50metric-type1 Related Command...
  • Page 707 Switch(config)# router rip Examples Ruijie(config-router)# network192.168.12.0 Switch(config-router)# version 2 Ruijie(config-router)# exit Ruijie(config)# routerospf1 Ruijie(config-router)# network172.16.10.0 0.0.0.255area0 Switch(config-router)# default-metric 50 Ruijie(config-router)# redistribute rip subnets Related Command Description Commands Redistributes the routes of other routing redistribute processes. Displays the OSPF global configuration show ip ospf information.
  • Page 708: Discard-Route

    ABR or the ASBR. The discard-route is generated automatically and will not be transmitted. Configuration The following example disables adding the discard routes generated with the area range command. Ruijie(config)# router ospf 1 Examples Ruijie(config-router)# no discard-route internal Related...
  • Page 709: Distance Ospf

    This command is used to specify different ADs for different types of OSPF routes. Usage Guide Configuration The following example sets the OSPF external route AD to 160. Ruijie(config)# routerospf1 Examples Ruijie(config-router)# distance ospf external 160 Related Command Description Commands Platform Description 2.17 distribute-list in...
  • Page 710 (containing the not-advertise parameter) command on the ABR to prevent generation of black-hole routes. Configuration The following example configures LSA filtering. Ruijie(config)# access-list3permit172.16.0.00.0.127.255 Examples Ruijie(config)# router ospf 25 Ruijie(config-router)# distribute-list 3 in ethernet 0/1 Related Command Description Commands distribute-list out Filters redistribution routes.
  • Page 711 Configuration The following example filters the redistributed static routes. Ruijie(config)# routerospf1 Examples Ruijie(config)# redistribute static subnets Ruijie(config-router)# distribute-list 22 outstatic Ruijie(config-router)# distribute-list prefix jjj out static % Access-list filter exists, please de-config first Related Command Description Commands Configures LSA filtering.
  • Page 712 To operate the specified OSPF process over Simple Network Management Protocol(SNMP), use this command to bind the MIB to SNMP. The following example operates OSPFv2 process 100 over SNMP: Configuration Ruijie(config)# routerospf100 Examples Ruijie(config-router)# enable mib-binding Related Command Description Commands Displays the OSPF global configuration show ip ospf information.
  • Page 713 Command Reference OSPFv2 Commands [ IfStateChange | NbrRestartHelperStatusChange | NbrStateChange | NssaTranslatorStatusChange | RestartStatusChange | VirtIfStateChange | VirtNbrRestartHelperStatusChange | VirtNbrStateChange ] ] no enable traps [ error [ IfAuthFailure | IfConfigError | IfRxBadPacket | VirtIfAuthFailure | VirtIfConfigError | VirtIfRxBadPacket ] | lsa [ LsdbApproachOverflow | LsdbOverflow | MaxAgeLsa | OriginateLsa ] | retransmit [ IfTxRetransmit | VirtIfTxRetransmit ] | state-change [ IfStateChange | NbrRestartHelperStatusChange | NbrStateChange | NssaTranslatorStatusChange | RestartStatusChange | VirtIfStateChange |...
  • Page 714 This command is not limited by the binding of process and MIB, allowing to enable the TRAP switch for different processes simultaneously. Configuration The following example enables all TRAP switches of OSPFv2 process 100. Ruijie(config)# routerospf100 Examples Ruijie(config-router)# enable traps Related Command Description Commands Displays the OSPF global configuration show ip ospf information.
  • Page 715 GR is unavailable when the Fast Hello function is enabled. Configuration The following example enables GR for the OSPF instance 1 and sets the restart interval for GR. Ruijie(config)# router ospf 1 Examples Ruijie(config-router)# graceful-restart Ruijie(config-router)# graceful-restart grace-period 60...
  • Page 716 GR and consequently reduce the convergence of the entire network. Configuration The following example disables the GF helper and modifies the policy of checking network changes. Ruijie(config)# router ospf1 Examples Ruijie(config-router)# graceful-restart helper disable Ruijie(config-router)# no graceful-restart helper disable Ruijie(config-router)# graceful-restart helper strict-lsa-checking Related Command Description...
  • Page 717: Ip Ospf Authentication

    Configuration The following example configures MD5 authentication for OSPF on fastEthernet 0/1. Ruijie (config)#interface fastEthernet0/1 Examples Ruijie(config-if-FastEthernet 0/1)# ipaddress172.16.1.1 255.255.255.0 Ruijie(config-if-FastEthernet 0/1)# ip ospf authentication message-digest Related Command Description Commands Enables authentication and defines area authentication authentication mode in the OSPF area.
  • Page 718 Configuration The following example configures the OSPF authentication key ospfauth for fast Ethernet 0/1. Ruijie (config)#interfacefastEthernet0/1 Examples Ruijie(config-if-FastEthernet 0/1)# ipaddress172.16.1.1 255.255.255.0 Ruijie(config-if-FastEthernet 0/1)# ip ospf authentication-key ospfauth Related Command Description Commands Enables OSPF area authentication and defines area authentication...
  • Page 719: Ip Ospf Cost

    The OSPF cost configured with the ip ospf cost command will overwrite the default configuration. The following example configures the OSPF cost of fastEthernet 0/1 to100. Configuration Ruijie(config)# interfacefastEthernet0/1 Examples Ruijie(config-if-FastEthernet 0/1)# ipospfcost100 Related Command Description Commands Specifies the interface bandwidth. This setting bandwidth does not affect the data transmission rate.
  • Page 720 LSAs to neighbors. Configuration The following example stops sending LSA update packets of fastEthernet 0/1. Ruijie(config)# interface fastEthernet 0/1 Examples Ruijie(config-if-FastEthernet 0/1)# ip address 172.16.10.1 255.255.255.0 Ruijie(config-if-FastEthernet 0/1)# ip ospf database-filter all out Related Command Description Commands Platform Description 2.27 ip ospf dead-interval...
  • Page 721 The following example configures the interval for determining the death of the OSPF neighbor on Examples fastEthernet 0/1 to30seconds. Ruijie(config)# interface fastEthernet 0/1 Ruijie(config-if-FastEthernet 0/1)# ip address 172.16.10.1 255.255.255.0 Ruijie(config-if-FastEthernet 0/1)# ip ospf dead-interval30 The following example configures the value of hello-multiplier to3.
  • Page 722: Ip Ospf Disable All

    Command Reference OSPFv2 Commands Ruijie(config)# interface fastEthernet 0/1 Ruijie(config-if-FastEthernet 0/1)# ip address 172.16.10.1 255.255.255.0 Ruijie(config-if-FastEthernet 0/1)# ip ospf dead-interval minimal hello-multiplier 3 Related Command Description Commands Specifies the interval at which the OSPF sends ip ospf hello-interval Hello packets show ip ospf interface Displays OSPF interface information.
  • Page 723 Configuration The following example configures the interval of sending the Hello packets on fastEthernet 0/1 to15. Ruijie(config)# interface fastEthernet 0/1 Examples Ruijie(config-if-FastEthernet 0/1)# ip address172.16.10.1 255.255.255.0 Ruijie(config-if-FastEthernet 0/1)# ip ospf hello-interval15 Related Command Description...
  • Page 724 Ruijie(config-if-FastEthernet 0/1)# ip address 172.16.24.2 255.255.255.0 Ruijie(config-if-FastEthernet 0/1)# ip ospf authentication message-digest Ruijie(config-if-FastEthernet 0/1)# ip ospf message-digest-key 10 md5 hello10 Ruijie(config-if-FastEthernet 0/1)# ip ospf message-digest-key 5md5 hello5 When all neighbors are added with new keys, the old keys shall be deleted for all devices.
  • Page 725 Command Reference OSPFv2 Commands Ruijie(config)# interface fastEthernet 0/1 Ruijie(config-if-FastEthernet 0/1)# no ip ospf message-digest-key10md5 hello10 Related Command Description Commands Enables OSPF area authentication and defines area authentication authentication mode. Enables authentication on the interface and ip ospf authentication defines authentication mode.
  • Page 726: Ip Ospf Network

    The following example configures the frame relay interface network as the P2P type. Ruijie(config)# interface Serial 1/0 Examples Ruijie(config-Serial 1/0)#ip address 172.16.24.4 255.255.255.0 Ruijie(config-Serial 1/0)# encapsulation frame-relay Ruijie(config-Serial 1/0)# ip ospf network point-to-point The following example configures the frame relay interface network as the NBMA type.
  • Page 727: Ip Ospf Priority

    Ruijie(config-Serial 1/0)# ip address 172.16.24.4 255.255.255.0 Ruijie(config-Serial 1/0)# encapsulation frame-relay Ruijie(config-Serial 1/0)# ip ospf network non-broadcast Ruijie(config-Serial 1/0)#exit Ruijie(config)# router ospf 20 Ruijie(config-router)# neighbor 172.16.24.2 priority 1 poll-interval 150 Related Command Description Commands Defines the mapping between IP address and dialer map ip dialing number.
  • Page 728 Configuration The following example configures the LSU packet retransmission interval on fastEthernet 0/1 as 10 Examples seconds. Ruijie(config)# interface fastEthernet 0/1 Ruijie(config-if-FastEthernet 0/1)# ip ospf retransmit-interval 10 Related Command Description...
  • Page 729 OSPF neighbors. The source address check shall be never enabled, especially for the unnumbered interfaces. Configuration The following example disables the source address check function in the point-to-point link. Ruijie(config)# interface serial 1/0 Examples Ruijie(config-if)# ip ospf source-check-ignore Related...
  • Page 730 LSA will be cleared from the link state database. Configuration The following example configures the transmission delay of fastEthernet 0/1 as 10. Ruijie(config)# interface fastEthernet 0/1 Examples Ruijie(config-if-FastEthernet 0/1)# ip ospf transmit-delay 10 Related Command Description Commands area virtual-link Defines an OSPF virtual link.
  • Page 731 Command Mode Routing process configuration mode Usage Guide The following example logs the neighbor state changes. Configuration Ruijie(config)# router ospf 1 Examples Ruijie(config-router)# log-adj-changes detail Related Command Description Commands Displays the OSPF global configuration show ip ospf information.
  • Page 732 The following example sets the maximum number of DD packets to 4. Configuration After the configuration, the device can initiate to interact with four neighbors and can concurrently Examples accept the interaction. That is, the device can interact with a maximum of eight neighbors. Ruijie(config)# routerospf10 Ruijie(config-router)# max-concurrent-dd4 Related Command Description...
  • Page 733 LSAs. Configuration The following example configures the LSA maximum metric as 100 seconds after starting the device. Ruijie(config)# router ospf 20 Examples Ruijie(config-router)# max-metric router-lsa on-startup 100 Related Command Description Commands Displays the OSPF related configurations.
  • Page 734 Configuration The following example declares an OSPF non-broadcast network neighbor, with the IP address Examples 172.16.24.2, priority 1 and polling interval 150 seconds. Ruijie(config)# routerospf 20 Ruijie(config-router)# network 172.16.24.0 0.0.0.255 area 0...
  • Page 735: Network Area

    Command Reference OSPFv2 Commands Ruijie(config-router)# neighbor 172.16.24.2 priority 1 poll-interval 150 Related Command Description Commands ip ospf priority Sets the interface priority. ip ospf network Sets the network type Platform Description 2.41 network area Use this command to define which interfaces run OSPF and the OSPF areas they belong to in routing process configuration mode.
  • Page 736: Overflow Database

    Configuration The following example configures that OSPF instance 10 will be shut down when there are more than Examples 10 LSAs. Ruijie(config)# router ospf 10 Ruijie(config-router)# overflow database 10 hard Related Command Description Commands...
  • Page 737: Overflow Database External

    The following example configures that the maximum number of external LSAs is 10, and it turns to the Configuration Examples overflow status upon timeout, and the time interval attempting to restore from the overflow state to the normal state is 3 seconds. Ruijie(config)# routerospf10 Ruijie(config-router)# overflow database external10 3...
  • Page 738 OSPF instance will stop and all learned routes will be removed. Configuration The following example prevents the OSPF from entering the OVERFLOW state when the memory is Examples insufficient. Ruijie(config)# router ospf 1 Ruijie(config-router)# no overflow memory-lack Related Command Description Commands clear ip ospf process Resets the OSPF instances.
  • Page 739 The following example configures fastEthernet 0/1 as a passive interface and the IP address of the Examples interface 1.1.1.1 as the passive address. Ruijie(config)# routerospf 30 Ruijie(config-router)# passive-interface fastEthernet 0/1 Ruijie(config-router)# passive-interface fastEthernet 0/1 1.1.1.1 Related Command Description Commands Displays the configuration information of the show ip ospf interface interface.
  • Page 740 Command Reference OSPFv2 Commands Description 2.46 redistribute Use this command to redistribute the external routing information. Use the no form of this command to restore the default setting. redistribute { connected | ospf process-id | rip | static } [ match { internal | external [ 1|2 ] |nssa-external [ 1|2 ] } ] [ metric metric-value ] [ metric-type { 1|2 }] [ route-map route-map-name ] [ subnets ] [ tag tag-value ] no redistribute {| connected | ospf process-id | rip | static } [ match { internal | external [ 1|2 ] |...
  • Page 741: Router Ospf

    Command Reference OSPFv2 Commands original one. Only the routes matching the specific type can be redistributed. Use the no form of this command to restore the default configuration. When you filter routes for redistribution by following the route-map rule, the match rule of the route-map rule is specific for the original redistribution parameters.
  • Page 742 The following example sets the maximum number of DD packets to 4. Examples After the configuration, the device can initiate to interact with four neighbors and can concurrently accept the interaction. That is, the device can interact with a maximum of eight neighbors. Ruijie(config)# router ospfmax-concurrent-dd4 Related Command Description...
  • Page 743: Show Ip Ospf

    ID changes, the OSPF protocol will do a lot of processing. Therefore, it is not recommended to change the router ID. The device can be changed only when no LSA is generated. Configuration The following example modifies the router ID to 0.0.0.36. Ruijie(config)# router ospf 20 Examples Ruijie(config-router)# router-id0.0.0.36 Related...
  • Page 744 This command displays the information of the OSPF routing process. Configuration The following example displays the output of the show ip ospf command. Ruijie# show ip ospf Examples Routing Process "ospf 1" with ID 1.1.1.1 Domain ID type 0x0105, value 0x010101010101...
  • Page 745 Command Reference OSPFv2 Commands Number of LSA originated 6 Number of LSA received 2 Log Neighbor Adjency Changes :Enabled Graceful-restart disabled Graceful-restart helper support enabled Number of areas attached to this router: 1 BFD enabled Area 0 (BACKBONE) Number of interfaces in this area is 1(1) Number of fully adjacent neighbors in this area is 1 Area has no authentication SPF algorithm last executed 00:01:26.640 ago...
  • Page 746 Command Reference OSPFv2 Commands GR Help capability described in the RFC3623 Graceful Graceful-restart helper Restart Router Type OSPF device type, including normal, ABR, and ASBR Delay before the SPF calculation is invoked after the SPF Delay topology change is received SPF-holdtime Minimum holdtime between two SPF calculations Parameter used for LSA pacing, checksum calculation, and...
  • Page 747 Command Reference OSPFv2 Commands Number of fully adjacent Number of Full neighbors of the area neighbors in this area Number of fully adjacent Number of Full neighbors with virtual connections in the area. virtual neighbors through It is effective only in the non-backbone default-type areas. this area Area authentication Authentication mode of the area...
  • Page 748: Show Ip Ospf Database

    The OSPF internal routing table has the destination address of the router ID instead of the destination network. Configuration The following example displays the output of the show ip ospf border-mrouters command. Ruijie# show ip ospf border-routers Examples OSPF internal Routing Table Codes:i - Intra-area route, I - Inter-area route i 1.1.1.1 [2] via 10.0.0.1, FastEthernet 0/1, ABR, ASBR, Area 0.0.0.1 select...
  • Page 749 Proper use of commands may help OSPF troubleshooting. Configuration The following example displays the output of the show ip ospf database command. Ruijie# show ip ospf database Examples OSPF Device with ID (1.1.1.1) (Process ID 1) Device Link States (Area 0.0.0.0)
  • Page 750 Displays the device information included in the LSA. Displays the tag of the LSA. The following example displays the output the show ip ospf database asbr-summary command. Ruijie# show ip ospf database asbr-summary OSPF Device with ID (1.1.1.35) (Process ID 1) ASBR-Summary Link States (Area 0.0.0.1)
  • Page 751 Displays the metric of the route corresponding to the LSA. The following example displays the output of the show ip ospf database external command. Ruijie# show ip ospf database external OSPF Device with ID (1.1.1.35) (Process ID 1) AS External Link States...
  • Page 752 OSPF routes. The following example displays the output of the show ip ospf database network command: Ruijie# show ip ospf database network OSPF Router with ID (1.1.1.1) (Process ID 1) Network Link States (Area 0.0.0.0)
  • Page 753 Displays the device that is connected with the network. The following example displays the output of the show ip ospf database device command: Ruijie# show ip ospf database router OSPF Router with ID (1.1.1.1) (Process ID 1) Router Link States (Area 0.0.0.0)
  • Page 754 TOS 0 Metrics TOS0 metric The following example displays the output of the show ip ospf database summary command: Ruijie# show ip ospf database summary OSPF Device with ID (1.1.1.1) (Process ID 1) Summary Link States (Area 0.0.0.0) LS age: 499...
  • Page 755 Displays the metric of the route corresponding to the LSA. The following example displays the output of the show ip ospf database nssa-external command: Ruijie# show ip ospf database nssa-external OSPF Device with ID (1.1.1.1) (Process ID 1) NSSA-external Link States (Area 0.0.0.1 [NSSA])
  • Page 756 Command Reference OSPFv2 Commands TOS: 0 Metric: 20 NSSA: Forward Address: 100.0.2.1 External Route Tag: 0 The following table describes the fields in the output of the show ip ospf database nssa-external command. Field Description OSPF Router Displays the router ID. with ID NSSA-external Displays the type 7 autonomous external LSA information.
  • Page 757 Command Reference OSPFv2 Commands The following example displays the output of the show ip ospf database external command: Ruijie# show ip ospf database external OSPF Device with ID (1.1.1.1) (Process ID 1) AS External Link States LS age: 1290 Options: 0x2 (*|-|-|-|-|-|E|-) LS Type: AS-external-LSA Link State ID: 20.0.0.0 (External Network Number)
  • Page 758 OSPF does not use the route tag by itself, but it will be used in redistributing OSPF routes by other routing process. The following example displays the output of the show ip ospf database database-summary command: Ruijie# show ip ospf database database-summary OSPF process 1: Device Link States Network Link States...
  • Page 759: Show Ip Ospf Interface

    This command displays the OSPF information on the interface. Configuration The following example displays the output of the show ip ospf interface fastEthernet 0/1 command: Ruijie# show ip ospf interface fastEthernet0/1 Examples FastEthernet 0/1 is up, line protocol is up Internet Address 192.88.88.27/24, Ifindex 4, Area 0.0.0.0, MTU 1500...
  • Page 760 Command Reference OSPFv2 Commands State of the network interface; UP means normal working and FastEthernet 0/1 State Down means faults. Internet Address Interface IP address Area OSPF area of the interface Corresponding MTU Matching network config Network area configured for the corresponding OSPF Process ID Corresponding process ID Router ID...
  • Page 761: Show Ip Ospf Neighbor

    Command Reference OSPFv2 Commands 2.54 show ip ospf neighbor Use this command to display the OSPF neighbor list. show ip ospf [ process-id ] neighbor[ statistics | { [ interface-type interface-number ] | [ neighbor-id ] | [ detail] } ] Parameter Parameter Description...
  • Page 762 Command Reference OSPFv2 Commands ip-address mask Statistics of routes which have a specified prefix and mask. Defaults Command Mode Privileged mode Usage Guide This command displays the OSPF routing information. The count option displays the OSPF routing statistics. Configuration The following example displays the output of the show ip ospf route command. OSPF process 1: Examples Codes: C - connected, D - Discard , O - OSPF,...
  • Page 763 This command displays the routing counts within the latest 30 minutes in the OSPF area and current routing total counts. Configuration The following example displays the output of the show ip ospf [process-id] spf command: Ruijie# show ip ospf 1 spf Examples OSPF process 1: Area_id...
  • Page 764 Command Reference OSPFv2 Commands Configuration The following example displays the output of the show ip ospf summary-address command: Ruijie# show ip ospf summary-address Examples OSPF Process 1, Summary-address: 172.16.0.0/16, Metric 20, Type 2, Tag 0, Match count 3, advertise Field...
  • Page 765: Summary-Address

    Command Reference OSPFv2 Commands Local address 10.0.0.37/32 Remote address 10.0.0.27/32 Transmit Delay is 1 sec, State Point-To-Point, Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 Hello due in 00:00:05 Adjacency state Full The following table describes the fields in the output. Field Description Virtual Link VLINK0 to...
  • Page 766 Configuration The following example generates an external aggregate route 100.100.0.0/16. Ruijie(config)# router ospf20 Examples Ruijie(config-router)# summary-address100.100.0.0 255.255.0.0 Ruijie(config-router)# redistribute static subnets Ruijie(config-router)# network200.2.2.0 0.0.0.255 area 1 Ruijie(config-router)# network172.16.24.0 0.0.0.255area 0 Ruijie(config-router)# area1nssa Related Command Description Commands...
  • Page 767: Platform N/A Description

    No action is done when the same LSA is received within the specified time. Configuration The following example configures the time delay for the same LSA as 2seconds. Ruijie(config)# routerospf1 Examples Ruijie(config-router)# timers arrival-time 2000 Related Command Description Commands show ip ospf Displays the OSPF information.
  • Page 768 (40 to 100 LSAs), increasing the pacing interval to 10 to 20 minutes might be better. Configuration The following example configures the pacing time as 120 seconds. Ruijie(config)# deviceospf 20 Examples Ruijie (config-router)# timers paing lsa-group 120 Related Command Description Commands show ip ospf Displays the OSPF information.
  • Page 769 Command Reference OSPFv2 Commands Ruijie(config-router)# timers pacing lsa-transmit 50 20 Related Command Description Commands Displays the OSPF process information, show ip ospf including the router ID. Platform Description 2.63 timers spf Use this command to configure the delay for SPF calculation after the OSPF receives the topology change as well as the interval between two SPF calculations.
  • Page 770 OSPFv2 Commands The following example configures the delay and holdover period of the OSPF as 3 and 9 seconds Configuration respectively. Examples Ruijie(config)# deviceospf20 Ruijie(config-router)# timersspf 3 9 Related Command Description Commands Displays the configuration information of the show ip ospf ospf.
  • Page 771 Configuration The following example configures the first delay as 10ms, hold-time as 1second and the longest delay Examples as 5seconds. Ruijie(config)# routerospf1 Ruijie(config-router)# timers throttle lsa all 10 1000 5000 Related Command Description Commands Displays the configuration information of the...
  • Page 772 CPU resources, increase the delay time. Configuration The following example sets the .delay time of the inter-area route calculation to one second. Ruijie(config)# router ospf 1 Examples Ruijie(config-router)# timers throttle route inter-area 1000 Related Command Description Commands...
  • Page 773 5ms, 1000ms and 90000ms respectively. If the topology changes consecutively, the SPF calculation intervals are: 5ms, 1second, 3 seconds, 7 seconds, 15 seconds, 31 seconds, 63 seconds, 89 seconds, 179 seconds, 179+90seconds… Ruijie(config)# routerospf20 Ruijie(config-router)# timersspf 5 1000 90000 Related Command Description...
  • Page 774 DD, LSU, LSR and LSAck packets from a neighbor in the network (except for the Hello packets), avoiding the neighbor invalidation caused by delayed or dropped Hello packets. Configuration The following example disables the OSPF two-way-maintain function. Ruijie(config)# routerospf1 Examples Ruijie(config-router)# notwo-way-maintain Related Command...
  • Page 775: Ospfv3 Commands

    The following example specifies MD5 authentication for area 1 where OSPFv3 routing processes Configuration reside, and sets the authentication password to aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa. Examples Ruijie(config-router)# area 1 authentication ipsec spi 300 md5 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa Related Command Description...
  • Page 776 Command Reference OSPFv3 Commands ipv6 ospf authentication Specifies interface authentication. area virtual-link authentication Specifies virtual link authentication. Platform Description 3.2 area default-cost Use this command to set the cost of the default route for the ABR in the stub or NSSA area. Use the no form of this command to restore the default setting.
  • Page 777 Configuration The following example specifies null encryption and MD5 authentication for area 1 where OSPFv3 Examples routing processes reside, and sets the authentication password to aaaaaaaaaaaaaaaaaaaaaaaaaaaaa. Ruijie(config-router)# area 1 encryption ipsec spi 300 esp null md5 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa Related Command Description...
  • Page 778 Command Reference OSPFv3 Commands command to restore the default setting. area area-id range ipv6-prefix/prefix-length [ advertise|not-advertise ] no area area-id range ipv6-prefix/prefix-length Parameter Parameter Description Description ID of the area in which the addresses are converged. area-id It can be an integer or an IPv4 prefix. ipv6-prefix/prefix-length Range of the converged addresses.
  • Page 779: Area Stub

    Command Reference OSPFv3 Commands 3.5 area stub Use this command to create a stub area or set its attributes. Use the no form of this command to restore the default setting. area area-id stub [ no-summary ] no area area-id stub [ no-summary ] Parameter Parameter Description...
  • Page 780 Command Reference OSPFv3 Commands 3.6 area virtual-link Use this command to create a virtual link or set its parameters. Use the no form of this command to restore the default setting. area area-id virtual-link router-id [ hello-interval seconds ] [ dead-interval seconds ] [ retransmit-interval seconds ] [ transmit-delay seconds ] [ instance instance-id ] [ authentication ipsec spi spi [ md5 | sha1 ] [ 0 | 7 ] key ] [ encryption ipsec spi spi esp null [ md5 | sha1 ] [ 0 | 7 ] key ]...
  • Page 781 Configuration The following example configures a virtual link. Ruijie(config)# ipv6 router ospf 1 Examples Ruijie(config-router)# area 1 virtual-link 192.1.1.1...
  • Page 782 Command Reference OSPFv3 Commands Related Command Description Commands Displays the OSPFv3 routing process show ipv6 ospf information. show ipv6 ospf neighbor Displays the OSPFv3 neighbor information. show ipv6 ospf Displays the OSPFv3 virtual link information. virtual-links Platform Description 3.7 auto-cost The metric of the OSPFv3 protocol is the interface-based bandwidth.
  • Page 783: Clear Ipv6 Ospf Process

    Command Reference OSPFv3 Commands Platform Description 3.8 clear ipv6 ospf process Use this command to clear and restart the OSPF process. clear ipv6 ospf { process | process-id ] Parameter Parameter Description Description process-id OSPF process ID, in the range from 1 to 65535 Defaults Command Privileged EXEC mode...
  • Page 784 Command Reference OSPFv3 Commands unconditionally, no matter whether the default route exists locally or not. (Optional) Initial metric value of the default route, in the range from 0 metric metric to 16777214 (Optional) Type of the default route. There are two type of OSPF metric-type type external routes: type 1, different metrics seen on different routers;...
  • Page 785  The redistributed direct route, for which 20 is always the default metric value. Configuration The following example sets the default metric for the routes to be redistributed to 10. Ruijie(config)# ipv6 router ospf 1 Examples Ruijie(config-router)# default-metric 10 Related...
  • Page 786 Setting the management distance as 255 indicates the routing entry is unreliable and will not for the packet forwarding. Configuration the following example sets the OSPFv3 external route management distance to 160. Ruijie(config)# ipv6 router ospf 20 Examples Ruijie(config-router)# distance ospf external 160 Related...
  • Page 787 Configuration The following example filters routes that are computed based on Link State Advertisement (LSA). Ruijie(config)# ipv6 prefix-list aaa seq 10 permit 2001::/64 Examples Ruijie(config)# ipv6 router ospf 25 Ruijie(config-router)# redistribute rip metric 100...
  • Page 788 ACL filtering rule or the prefix list filtering rule to filter the routes from a specific source. Configuration The following example filters static routes that are re-distributed. Ruijie(config)# ipv6 router ospf 1 Examples Ruijie(config-router)# redistribute static subnets Ruijie(config-router)# distribute-list prefix-list jjj out static Related Command Description Commands Re-distributes routes that are carried by other redistribute routing processes.
  • Page 789 To operate a specific OSFPv3 process through SNMP, you can bind OSFPv3 MIB to the process. Configuration The following example enables users to operate the OSPFv3 process with the process number of 100 Examples through SNMP. Ruijie(config)# ipv6 router ospf 100 Ruijie(config-router)# enable mib-binding Related Command Description...
  • Page 790 You can synchronously enable the trap function of different processes even if MIB is not bound to these processes. The following example enables all traps of OSPFv3 process 100. Configuration Ruijie(config)#ipv6 router ospf 100 Examples Ruijie(config-router)# enable traps Related Command...
  • Page 791 Command Reference OSPFv3 Commands Platform Description 3.16 graceful-restart Use this command to enable the OSPFv3 graceful restart (GR) function and to set the GR period. Use the no form of this command to restore the default setting. graceful-restart [ grace-period grace-period | inconsistent-lsa-checking ] no graceful-restart [ graceful-period ] Parameter Parameter...
  • Page 792 The GR function is unavailable when the Fast Hello function is enabled. The following example enables GR for OSPFv3 instance 1 and sets the GR period to 60 seconds. Configuration Ruijie(config)# ipv6 router ospf 1 Examples Ruijie(config-router)# graceful-restart Ruijie(config-router)# graceful-restart grace-period 60...
  • Page 793: Ipv6 Ospf Area

    Configuration The following example disables the GF helper function of the OSPFv3 instance 1 and modifies the Examples topology change detection policy. Ruijie(config)# ipv6 router ospf 1 Ruijie(config-router)# graceful-restart helper disable Ruijie(config-router)# no graceful-restart helper disable Ruijie(config-router)# graceful-restart helper strict-lsa-checking...
  • Page 794 Command Reference OSPFv3 Commands automatically started after this command is used. Use no ipv6 ospf area to disable the specified interface to participate in the OSPFv3 routing process. Use no ipv6 router ospf to disable all the interfaces to participate in the OSPFv3 routing process. The neighbor relationship can only be established between the routers with the same instance ID.
  • Page 795: Ipv6 Ospf Cost

    OSPFv3 authentication parameters configured on interconnected interfaces must be consistent. Configuration The following example specifies MD5 authentication in OSPFv3 interface configuration mode and Examples sets the authentication password to aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa. Ruijie(config-if)# ipv6 ospf authentication ipsec spi 300 md5 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa Related Command Description Commands Specifies interface authentication.
  • Page 796 The OSPFv3 cost configured with the command ipv6 ospf cost will overwrite the default configuration. Configuration The following example sets the cost of the interface to 1: Ruijie(config)# int fastethernet 0/0 Examples Ruijie(config-if)# ipv6 ospf cost 1 Related Command Description Commands show ipv6 ospf interface Displays the OSPFv3 interface information.
  • Page 797 Command Reference OSPFv3 Commands Mode The dead interval of neighbors must be longer than the hello interval. Usage Guide The OSPFv3 fast hello function allows OSPFv3 to fast discovery neighbors and detect whether neighboring relationships are valid. To enable the OSPFv3 fast hello function, you can specify the minimal and hello-multiplier keywords and the multiplier parameter in this command.
  • Page 798 OSPFv3 encryption authentication parameters configured on interconnected interfaces must be consistent. The following example specifies null encryption and MD5 authentication in OSPFv3 interface Configuration configuration mode and sets the authentication password to aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa. Examples Ruijie(config-if)# ipv6 ospf encryption ipsec spi 300 esp null md5 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa Related Command Description Commands area encryption Specifies area encryption authentication.
  • Page 799 Configuration The following example sets the interval for the interface to send the Hello message to 20 seconds. Ruijie(config)# int fastethernet 0/0 Examples Ruijie(config-if)# ipv6 ospf hello-interval 20 Related Command Description Commands Sets the interval for the interface to consider ipv6 ospf dead-interval that the neighbor fails.
  • Page 800: Ipv6 Ospf Neighbor

    MTU greater than its own interface’s MTU, the neighbor relationship cannot be established. This can be fixed by disabling the MTU check. Configuration The following example disables the MTU check function on the ethernet 1/0. Ruijie(config)# interface ethernet 1/0 Examples Ruijie(config-if)# ipv6 ospf mtu-ignore Related...
  • Page 801: Ipv6 Ospf Network

    Configuration The following example shows how to configure the OSPFv3 neighbor as follows: IPv6 address: Examples 2001:DB8:4::1, priority value: 1, polling interval: 150 seconds. Ruijie(config)# interface fastEthernet 0/1 Ruijie(config-if)# ipv6 ospf neighbor 2001:DB8:4::1 priority 1 poll-interval Related Command Description Commands Ipv6 ospf priority Sets the priority value of an interface.
  • Page 802: Ipv6 Ospf Priority

    The following example sets the network type of the interface that participates in the OSPFv3 to Configuration point-to-point. Examples Ruijie(config)# interface ethernet 1/0 Ruijie(config-if)# ipv6 ospf network point-to-point Related Command Description Commands ipv6 ospf priority Sets the interface priority.
  • Page 803 The device with the priority level of 0 does not participate in the election of DR/BDR. Configuration The following example disables the interface from being elected as the DR/BDR. Ruijie(config)# interface ethernet 1/0 Examples Ruijie(config-if)# ipv6 ospf priority 0 Related Command Description Commands Sets the network type of an interface.
  • Page 804 If no acknowledgement is received within the specified period, the LSA information will be retransmitted. Configuration The following example sets the interval for retransmitting the LSA to 10 seconds. Ruijie(config)# interface ethernet 1/0 Examples Ruijie(config-if)# ipv6 ospf retransmit-interval 10 Related Command Description Commands show ipv6 ospf interface Displays the OSPFv3 interface information.
  • Page 805: Ipv6 Router Ospf

    Command Reference OSPFv3 Commands show ipv6 ospf interface Displays the OSPFv3 interface information. Platform Description 3.30 ipv6 router ospf Use this command to start the OSPFv3 routing process. Use the no form of this command to restore the default setting. ipv6 router ospf process-id no ipv6 router ospf process-id Parameter...
  • Page 806 4 neighbors are allowed to be initiated on this device concurrently, and interactions initiated by up to 4 neighbors are allowed to be received concurrently. That is, interaction with up to 8 neighbors is allowed on this device. Ruijie(config)#ipv6 router ospf max-concurrent-dd 4 Related Command...
  • Page 807 Command Reference OSPFv3 Commands Routing process configuration mode Command Mode Usage Guide Configuration The following example turns on the log of adjacency state change. Ruijie(config)# router ospf 1 Examples Ruijie(config)# log-adj-changes detail Related Command Description Commands Displays the OSPF global configuration...
  • Page 808 This command applies to the interfaces participating in the OSPFv3 but not to the virtual links. Configuration The following example enables only the VLAN1 interface to participate in the OSPFv3 process. Ruijie(config)# ipv6 router ospf 1 Examples Ruijie(config-router)# passive-interface default...
  • Page 809 Command Reference OSPFv3 Commands show ipv6 ospf neighbor Displays the OSPFv3 neighbor information. Platform Description 3.35 redistribute Use this command to start the route redistribution in order to import the routing information of other routing protocols to the OSPFv3 routing process. Use the no form of this command to restore the default setting.
  • Page 810 Command Reference OSPFv3 Commands Command Routing process configuration mode Mode Usage Guide When a device supports multiple routing protocols, the coordination between these protocols becomes an important task. The device can run the protocols at the same time, so it should redistribute the protocols.
  • Page 811: Show Ipv6 Ospf

    ID once an OSPFv3 process starts before configuring other parameters for the process Configuration The following example sets the ID of the device that participates in the OSPFv3 process to 1.1.1.1. Ruijie(config)# ipv6 router ospf 1 Examples Ruijie(config-router)# router-id 1.1.1.1...
  • Page 812 Privileged EXEC mode Mode Usage Guide The following example displays the information about the OSPFv3 process. Configuration Ruijie# show ipv6 ospf Examples Routing Process "OSPFv3 (1)" with ID 1.1.1.1 Process uptime is 24 minutes Enable two-way-maintain SPF schedule delay 5 secs, Hold time between SPFs 10 secs...
  • Page 813: Show Ipv6 Ospf Database

    Privileged EXEC mode. Command Mode Usage Guide Configuration The following example displays the information about the OSPFv3 process database. Ruijie# show ipv6 ospf database Examples OSPFv3 Router with ID (1.1.1.1) (Process 1) Link-LSA (Interface FastEthernet 1/0) Link State ID ADV Router...
  • Page 814: Show Ipv6 Ospf Interface

    Command Reference OSPFv3 Commands 0.0.0.5 2.2.2.2 206 0x80000001 0x8c86 Link-LSA (Interface Loopback 1) Link State ID ADV Router Age Seq# CkSum Prefix 0.0.64.1 1.1.1.1 82 0x80000001 0xb760 Router-LSA (Area 0.0.0.0) Link State ID ADV Router Age Seq# CkSum Link 0.0.0.0 1.1.1.1 17 0x80000006 0x62a1 0.0.0.0...
  • Page 815 Command Reference OSPFv3 Commands Usage Guide Configuration The following example displays the information about the OSPFv3 interface. Ruijie# show ipv6 ospf interface Examples FastEthernet 1/0 is up, line protocol is up Interface ID 2 IPv6 Prefixes fe80::2d0:22ff:fe22:2223/64 (Link-Local Address) OSPFv3 Process (1), Area 0.0.0.0, Instance ID 0 Router ID 1.1.1.1, Network Type BROADCAST, Cost: 1...
  • Page 816: Show Ipv6 Ospf Neighbor

    2.2.2.2 Full/DR 00:00:33 FastEthernet 1/0 0 Ruijie# show ipv6 ospf neighbor detail Neighbor 2.2.2.2, interface address fe80::c800:eff:fe84:1c In the area 0.0.0.0 via interface FastEthernet 1/0 Neighbor priority is 1, State is Full, 6 state changes DR is 2.2.2.2 BDR is 1.1.1.1...
  • Page 817 Command Privileged EXEC mode Mode Usage Guide Configuration The following example displays the restarter status. Ruijie# show ipv6 ospf restart Examples Routing Process is ospf 1 Graceful-restart enabled Restart grace period 120 secs Current Restart status is plannedRestart Current Restart remaining time 50 secs Graceful-restart helper support enabled The following example displays the helper status.
  • Page 818: Show Ipv6 Ospf Route

    Mode Usage Guide Configuration The following example displays the information about OSPFv3 routes. Ruijie# show ipv6 ospf route Examples OSPFv3 Process (1) Codes: C - connected, D - Discard, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2...
  • Page 819 OSPFv3 process ID number Defaults Command Privileged EXEC mode. Mode Usage Guide Configuration The following example displays the external route convergence information of OSPFv3. Ruijie# show ipv6 ospf summary-prefix Examples OSPFv3 Process 1, Summary-prefix: 2001:db8::/64,Metric 16777215,Type0,Tag0,Match count0,advertise Related Command Description Commands Starts the OSPFv3 routing process.
  • Page 820 Command Reference OSPFv3 Commands Mode Usage Guide Configuration The following command displays the topology information about each area of OSPFv3. Ruijie# show ipv6 ospf topology Examples OSPFv3 Process (1) OSPFv3 paths to Area (0.0.0.0) routers Router ID Bits Metric Next-Hop Interface 1.1.1.1...
  • Page 821 Command Reference OSPFv3 Commands The following command displays the information about the OSPFv3 virtual link. Configuration Ruijie# show ipv6 ospf virtual-links Examples Virtual Link VLINK1 to router 2.2.2.2 is down Transit area 0.0.0.1 via interface FastEthernet 1/0, instance ID 0...
  • Page 822 Type-5 routes translated from Type-7. Configuration The following example configures the external route within the 2001:DB8::/64 to the converged route Examples 2001:DB8::/64 to advertise it. Ruijie(config)# ipv6 router ospf 1 Ruijie(config-router)# summary-prefix 2001:DB8::/64 Related Command Description...
  • Page 823 Command Reference OSPFv3 Commands Ruijie(config-router)# timers lsa arrival 2000 Related Command Description Commands Displays OSPFv3 process information, show ipv6 ospf including identifiers of routing devices. Platform Description 3.48 timers pacing lsa-group Use this command to set an LSA group pace interval. Use the no form of this command to restore the default setting.
  • Page 824 Configuration The following example sets the interval for sending LS-UPDs to 50 milliseconds and the specified 20 Examples packets to be sent each time. Ruijie(config)# ipv6 router ospf 1 Ruijie(config-router)# timers pacing lsa-transmit 50 20 Related Command Description Commands show ipv6 ospf...
  • Page 825 The timer spf configuration and the timers throttle spf configuration will overwrite each other. Configuration The following example sets the delay and holdtime of the OSPFv3 to 3 seconds and 9 seconds Examples respectively. Ruijie(config)# ipv6 router ospf 20 Ruijie(config-router)# timers spf 3 9 Related Command Description...
  • Page 826 The following example sets delay-time to 10 milliseconds, hold-time to one second, and Configuration Examples max-wait-time to five seconds. Ruijie(config)# ipv6 router ospf 1 Ruijie(config-router)# timers throttle lsa all 10 1000 5000 Related Command Description Commands...
  • Page 827 CPU resources, increase the delay time. The following example sets the delay time of the inter-area route calculation to one second. Configuration Ruijie(config)# ipv6 router ospf 1 Examples Ruijie(config-router)# timers throttle route inter-area 1000 Related Command Description Commands...
  • Page 828 Command Reference OSPFv3 Commands Description 3.53 timers throttle spf Use this command to configure, the delay for SPF calculation as well as the minimum and maximum intervals between two SPF calculations after receiving the topology change information for OSPFv3 in the routing process configuration mode. Use the no form of this command to restore the default setting.
  • Page 829 OSPFv3 as 5ms, 1000ms and 90000ms respectively. If the topology changes consecutively, the time for SPF calculation is: five milliseconds, one second, three seconds, seven seconds, 15 seconds, 31 seconds, 63 seconds, 89 seconds, 179 seconds, 179+90 seconds…… Ruijie(config)# ipv6 router ospf 20 Ruijie(config-router)# timers spf 5 1000 90000 Related Command Description...
  • Page 830 DD, LSU, LSR, and LSAck packets from the neighbor. This prevents the neighboring relationship from failing due to receiving delay or discarding of hello packets. Configuration The following example disables two-way OSPFv3 maintenance. Ruijie(config)# ipv6 router ospf 1 Examples Ruijie(config-router)# no two-way-maintain Related...
  • Page 831: Ripng Commands

    Running this command removes all RIPng routes and this operation may have great impact on the RIPng protocol. This command should be used with caution. The following example clears the RIPng routes: Configuration Ruijie# clear ipv6 rip Examples Related Command...
  • Page 832 By default, the default-metric value is 1. Configuration The following example shows how to set the RIPng metric value as 3 when redistributing OSPF Examples process 100: Ruijie(config-router)# default-metric 3 Ruijie(config-router)# redistribute ospf 100 Related Command Description Commands redistribute Redistributes the route from one route domain to another route domain.
  • Page 833 The following example shows how to filter the received update route on the interface eth0 (only those Examples update routes within the prefix-list allowpre prefix list range can be received) Ruijie(config)# ipv6 router rip Ruijie(config-router)# distribute-list prefix-list allowpre in eth0 Related Command Description...
  • Page 834 When GR is performed for the RIPng process, ensure that the network environment is stable. The following example enables the GR function for the RIPng process and configures the GR period. Configuration Ruijie(config)# ipv6 router rip Examples...
  • Page 835 The following example shows how to create a default route to the RIPng routing process on the Examples interface ethernet0/0 and enable this interface to advertise the default route only: Ruijie(config)# interface ethernet 0/0 Ruijie(config-if)# ipv6 rip default-information only Related Command Description...
  • Page 836: Ipv6 Rip Enable

    This command is used to add the RIPng interface. Before this command is configured, if the RIPng is Usage Guide not enabled, use this command to enable the RIPng automatically. Configuration The following example shows how to enable the RIPng on the interface 0/0: Ruijie(config)# interface ethernet 0/0 Examples Ruijie(config-if)# ipv6 rip enable Related Command...
  • Page 837: Ipv6 Router Rip

    To this end, the interface metric value influences the route usage. The following example shows how to set the metric value of the interface Ethernet 0/1 as 5: Configuration Ruijie(config)# interface ethernet 0/1 Examples Ruijie(config-if)# ipv6 rip metric-offset 5 Related Command Description Commands...
  • Page 838 Configuration The following example shows how to enable the passive mode on all interfaces and remove interface Examples ethernet 0/0 from the passive mode: Ruijie(config-router)# passive-interface default Ruijie(config-router)# no passive-interface ethernet 0/0 Related Command Description Commands Platform...
  • Page 839 Configuration The following example shows how to redistribute the static route, use the route map mymap to filter Examples and set the metric value as 8: Ruijie(config)# ipv6 router rip Ruijie(config-router)# redistribute static route-map mymap metric 8 Related Command...
  • Page 840: Show Ipv6 Rip

    Defaults Command Privileged EXEC mode or user mode. mode Usage Guide Ruijie# show ipv6 rip Configuration Routing Protocol is "RIPng" Examples Sending updates every 10 seconds with +/-50%, next due in 8 seconds Timeout after 30 seconds, garbage collect after 60 seconds...
  • Page 841: Show Ipv6 Rip Database

    Defaults Command Privileged EXEC mode or user mode. mode Usage Guide Ruijie# show ipv6 rip database Configuration Codes: R - RIPng,C - Connected,S - Static,O - OSPF,B - BGP Examples sub-codes:n - normal,s - static,d - default,r - redistribute, i - interface, a/s - aggregated/suppressed...
  • Page 842 You can use the show ipv6 rip command to determine whether the RIPng split-horizon function is enabled or not. Configuration The following example shows how to disable the RIPng horizontal split: Ruijie(config)# ipv6 router rip Examples Ruijie(config-router)# no split-horizon Related...
  • Page 843 The following example shows how to send the RIP update packets every 10 seconds. The routing will Examples be invalid if no update packets are received within 30 seconds, and the routing will be removed after being invalid for 90 seconds. Ruijie(config)# ipv6 router rip Ruijie(config-router)# timers 10 30 90...
  • Page 844 Command Reference RIPng Commands Related Command Description Commands Displays the parameters and the statistical show ipv6 rip information of the RIPng process. show ipv6 rip database Displays the RIPng routes. Platform Description...
  • Page 845: Clear Ip Route

    Command Reference NSM Commands 5 NSM Commands 5.1 clear ip route Use this command to clear the route cache. clear ip route { * | network [ netmask ] | } Parameter Description Clears all route cache. network Specifies the route cache of the network or subnet. Parameter (Optional) Subnet mask.
  • Page 846 Command Reference NSM Commands Defaults No gateway IP address is configured by default. Command Global configuration mode Mode Usage When the device does not know the destination address of a packet, the device will forward the packet to Guide the default gateway. The following example sets the IP address of default gateway to 192.168.1.1.
  • Page 847 Command Reference NSM Commands ip default-network 192.168.100.0 The following example sets 200.200.200.0 as the default network. The route becomes the default one only when it is available in the routing table. ip default-network 200.200.200.0 Command Description Related Commands show ip route Displays the routing table.
  • Page 848 Command Reference NSM Commands The default weight of the static route is 1. To view the static route of non-default weight, execute the show ip route weight command. The parameter weight is used to enable WCMP. When there are load-balanced routes to the destination, the device assigns data flows by their weights. The higher the weight of a route is, the more data flow the route carries.
  • Page 849 Note that if the process or whole system restarts when the no ip routing command is run, the static route configuration will not be reserved. The following example disables IP routing. Examples Ruijie(config)# no ip routing Related Commands Platform Description 5.6 ip static route-limit...
  • Page 850 When the device does not know the destination address of a packet, the device will forward the packet to the Usage Guide default gateway. Use the command show ipv6 redirects to display default gateway configuration. The following example sets the default gateway IPv6 address to 10::1. Examples Ruijie(config)# ipv6 default-gateway 10::1 Platform Description...
  • Page 851: Ipv6 Route

    Command Reference NSM Commands 5.8 ipv6 route Use this command to configure an ipv6 static route. Use the no or default form of this command to restore the default setting. ipv6 route ipv6-prefix / prefix-length { ipv6-address | interface [ ipv6-address ] } [ distance ] [ tag tag ] [ weight number ] [ description description-text ] no ipv6 routeipv6-prefix / prefix-length { ipv6-address | interface [ ipv6-address ] } [ distance ] default ipv6 route ipv6-prefix / prefix-length { ipv6-address | interface [ ipv6-address ] } [ distance ]...
  • Page 852 The following example sets the upper threshold of the ipv6 static routes to 900 and then restores the setting to the default value. Examples Ruijie(config)# ipv6 static route-limit 900 Ruijie(config)# no ipv6 static route-limit Command Description...
  • Page 853 This function can be disabled if the device is just used as the bridge-connection device or the VOIP Usage Guide gateway device. The example disables the IPv6 route function of RGOS. Examples Ruijie# no ipv6 unicast-routing Command Description Related ipv6 route Configure the IPv6 static route.
  • Page 854: Show Ip Redirects

    Use this command to display the default gateway IP address. This command is supported on 2-layer Usage Guide devices or 3-layer devices with the no ip routing command executed. The following example displays the default gateway. Ruijie# show ip redirects Default Gateway: 192.168.195.1 Examples Field...
  • Page 855: Show Ip Route

    The following example displays the configuration of the IP routing table. Ruijie# show ip route Codes: C - Connected, L - Local, S - Static R - RIP, O - OSPF, B - BGP, I - IS-IS, V - Overflow route...
  • Page 856 Command Reference NSM Commands Ruijie# show ip route 30.0.0.0 Routing entry for 30.0.0.0/8 Distance 110, metric 20 Routing Descriptor Blocks: 192.1.1.1, 00:01:11 ago, via VLAN 1, generated by OSPF, extern 2 Ruijie# show ip route count --------- route info ----------...
  • Page 857: Show Ip Route Summary

    0.0.0.0/0 [ma] via 192.168.1.2 [b] via 192.168.2.2 O IA 192.168.10.0/24 [m] via 35.1.10.2, 00:38:26, VLAN 1 [ba] via 35.1.30.2, 00:38:26, VLAN 3 Ruijie# show ip route fast-reroute 30.0.0.0 Routing entry for 30.0.0.0/8 Distance 110, metric 20 Routing Descriptor Blocks: [m] 192.1.1.1, 00:01:11 ago, via VLAN 1, generated by OSPF, extern 2 [ba]192.1.1.1, 00:01:11 ago, via VLAN 1, generated by OSPF, extern 2...
  • Page 858 Command Reference NSM Commands Description Defaults Command Mode Privileged EXEC mode Usage guideline...
  • Page 859 BGP 2 1 1 4 TOTAL 11 7 4 22 The following example displays the statistics of all routing tables. Ruijie# show ip route summary all Codes: NORMAL – Normal route ECMP – ECMP route FRR – Fast-Reroute route IP routing table count:2...
  • Page 860 Command Reference NSM Commands VRF1 Memory: 2000 bytes Entries: 22,based on route prefixes Entries: 29,based on route nexthops NORMAL ECMP FRR TOTAL Connected 3 0 0 3 Static 2 1 1 4 RIP 1 2 1 4 OSPF 2 1 1 4 ISIS 1 2 0 3 BGP 2 1 1 4 TOTAL 11 7 4 22...
  • Page 861: Show Ipv6 Route

    Command Reference NSM Commands Command Privileged EXEC mode Mode Usage Guide The following example displays the default gateway IPv6 address. Ruijie# show ipv6 redirects Default Gateway: 10::1 Examples Field Description Default Gateway IPv6 address of the default gateway Related Command...
  • Page 862: Show Ipv6 Route Summary

    Privileged EXEC mode Usage Guide The following example displays statistics of IPv6 routing table of the global VRF. Ruijie#show ipv6 route summary IPv6 routing table name is - Default(0) global scope - 5 entries IPv6 routing table default maximum-paths is 32...
  • Page 863 Command Reference NSM Commands S29 series switch does not support ISIS or BGP. The configuration example is only for reference. Field Description Memory The memory size occupied by the current routing table. Entries The entries in the current routing table (based on the entry prefix instead of the next hop entry.) Connected Describes the protocol type of the entry.
  • Page 864 Use this command to specify the lifetime of an encryption key in its receiving direction. guideline Examples The following example configures the lifetime of key 1. Ruijie(config)#key chain kc Ruijie(config-keychain)#key 1 Ruijie(config-keychain-key)#key-string Hello Ruijie(config-keychain-key)#accept-lifetime 16:30:00 Oct 1 2010 duration 43200...
  • Page 865 By default, no AS path filter using a regular expression is configured. Command Global configuration mode mode Usage guideline Examples The following example configures an AS path filter matching the path which contains AS number 123 only. Ruijie(config)# ip as-path access-list 105 deny ^123$ Related Command Description command Platform description...
  • Page 866 Local-AS community. Default None configurati Command Global configuration mode. mode Usage guidelines Each community list contains up to 32 community values, including internet and local-AS. Ruijie(config)# ip community-list standard 1 deny 100.20.200.20 Examples Ruijie(config)# ip community-list standard 1 permit internet...
  • Page 867 Command Reference Protocol-independent Configuration Commands Command Description match community Match the community list. Related Remove the community value of the BGP path according to commands set community-list delete the community list. show ip community-list Show the community list information. 6.4 ip extcommunity-list Use this command to create an extcommunity list and add an entry to the list.
  • Page 868 Usage This command is used to define the extcommunity list. guidelines 1.The following example defines an ip extcommunity-list. Ruijie(config)# ip extcommunity-list 1 permit rt 100:1 Ruijie(config)# ip extcommunity-list standard aaa permit rt 100:2 Ruijie(config)# ip extcommunity-list expanded ext1 permit 200:[0~9][0~9] 2.
  • Page 869 IP prefix list, for example, redistribute the routes whose destination IP address is in the range 201.1.1.0/24. Ruijie# configure terminal Examples Ruijie(config)# ip prefix-list pre1 permit 201.1.1.0/24 Ruijie(config)# router ospf Ruijie(config-router)# distribute-list prefix pre1 out rip Ruijie(config-router)# end 6.6 ip prefix-list description...
  • Page 870 The example below adds the description for the prefix list: Ruijie# configure terminal Examples Ruijie(config)# ip prefix-list pre description Deny routes from Net-A 6.7 ip prefix-list sequence-number Use this command to enable sort function for a prefix list. Use the no form of this command to disable the sort function.
  • Page 871 The following example filters the RIP routes the OSPF redistributes by the destination IP address following the rule defined in the associated IP prefix list, for example, redistribute the routes whose Examples destination IP address is in the range 2222::/64. Ruijie# configure terminal...
  • Page 872 No description is added for an IPv6 prefix list, by default. Command Global configuration mode mode The example below adds the description for the prefix list: Ruijie# configure terminal Examples Ruijie(config)# ipv6 prefix-list pre description Deny routes from Net-A Command Description Related commands ipv6 prefix-list Configure the IPv6 prefix list.
  • Page 873 Command mode Global configuration mode The example below adds a sequence number for the prefix list: Ruijie# configure terminal Examples Ruijie(config)# ipv6 prefix-list pre description Deny routes from Net-A Related Command Description commands ipv6 prefix-list Configure the IPv6 prefix list.
  • Page 874: Key Chain

    Usage For a key chain to take effect, you need to configure at least one key. guideline Examples The following example configures key chain ripkeys and enters the key chain configuration mode. Ruijie(config)# key chain ripkeys Related Command Description command...
  • Page 875: Match Community

    One or more match or set commands can be executed to configure one route map. If the match guidelines command is not used, all the routes will be matched. If the set command is not used, no operation will be performed. Ruijie(config)# ip community-list 1 permit 100:2 100:30 Examples...
  • Page 876: Match Interface

    Command Reference Protocol-independent Configuration Commands Ruijie(config)# route-map set_lopref Ruijie(config-route-map)# match community 1 exact-match Ruijie(config-route-map)# set local-preference 20 Command Description match as-path Match the AS_PATH attribute. match metric Match the metric. Related match origin Match the source. commands set as-path prepend Set the AS_PATH attribute.
  • Page 877: Match Ip Address

    Command Reference Protocol-independent Configuration Commands use different commands with the route map. The following example redistributes the RIP route with the next hop of fastethernet 0/0 in the OSPF routing protocol. router ospf redistribute rip subnets route-map redrip network 192.168.12.0 0.0.0.255 area 0 route-map redrip permit 10 match interface fastethernet 0/0 Command...
  • Page 878 Command Reference Protocol-independent Configuration Commands You can redistribute the routes from one routing process to another routing process. For example, guidelines you can redistribute the route in the OSPF routing domain and then advertise it to the RIP routing domain, and vice versa. The mutual route redistribution can be implemented between all the IP routing protocols.
  • Page 879 In the example below, the OSPF routing protocol redistributes the RIP routes. As long as the next hop address of the RIP route matches the access list 10 or 20, the OSPF allows for redistribution. Ruijie(config)# router ospf Ruijie(config-router)# redistribute rip subnets route-map redrip Ruijie(config-router)# network 192.168.12.0 0.0.0.255 area 0 Examples Ruijie(config-router)# exit Ruijie(config)# access-list 10 permit host 192.168.10.1...
  • Page 880 Command Reference Protocol-independent Configuration Commands match metric Match the metric. match route-type Match the route type. match tag Match the tag. set metric Set the metric. set metric-type Set the metric type. set tag Set the tag. 6.18 match ip route-source Use match ip route-source command to redistribute the routes whose source IP address matches the access list.
  • Page 881: Match Ipv6 Address

    Command Reference Protocol-independent Configuration Commands router ospf redistribute rip subnets route-map redrip network 192.168.12.0 0.0.0.255 area 0 access-list 5 permit 192.168.100.1 route-map redrip permit 10 match ip route-source Command Description access-list Set the access list. Match the IP address in the access list. match ip address Match the next-hop interface of the route.
  • Page 882 Command Reference Protocol-independent Configuration Commands between two routing domains. In configuring one route map, one or more match or set commands can be executed. If the match command is not used, all the routes will be matched. If the set command is not used, no operation will be performed.
  • Page 883 Command Reference Protocol-independent Configuration Commands Parameter Description Parameter access-list-name Name of the IPv6 access list. description prefix-list prefix-list-name Specify the IPv6 prefix list to match. Default configuration None Command mode Route map configuration mode You can redistribute the routes from one routing process to another routing process. For example, you can redistribute the route in the OSPF routing domain and then advertise it to the RIP routing domain, and vice versa.
  • Page 884 Command Reference Protocol-independent Configuration Commands set metric Set the metric for route redistribution. set metric-type Set the type for route redistribution. set tag Set the tag for route redistribution. 6.21 match ipv6 route-source Use this command to redistribute the network routes whose next-hop IP address matches the IPv6 access list or the IPv6 prefix list.
  • Page 885: Match Metric

    Command Reference Protocol-independent Configuration Commands The route map can be configured very flexibly to be used for route redistribution and policy-based routing. No matter how the route map is used, the configuration principle is the same, except that different command sets are used. Even if it is used on the route redistribution, different routing protocols can use different commands with the route map.
  • Page 886 Command Reference Protocol-independent Configuration Commands mode You can redistribute the routing information from one routing process to another routing process. For example, you can redistribute the route in the OSPF routing domain and then advertise it to the RIP routing domain, and vice versa. The mutual route redistribution can be implemented between all the IP routing protocols.
  • Page 887 Command Reference Protocol-independent Configuration Commands Indicates the RIP route type. internal Indicates the OSPF internal route type. external Indicates the OSPF external route type. type-1 | type-2 Indicates the OSPF type-1 or type-2 route type. Default configuration None Command mode Route map configuration mode You can redistribute the routing information from one routing process to another routing process.
  • Page 888: Match Tag

    In the example below, the RIP routing protocol redistributes only the routes with tag 50 and 80 in the OSPF routing domain. Ruijie(config)# router rip Ruijie(config-router)# redistribute ospf 100 route-map redrip Examples Ruijie(config-router)# network 192.168.12.0 Ruijie(config-router)# exit Ruijie(config)# route-map redrip permit 10...
  • Page 889 Command Reference Protocol-independent Configuration Commands match route-type Match the route type. set metric Set the metric. set metric-type Set the metric type. set tag Set the tag. 6.25 memory-lack exit-policy Use this command to configure a policy to preferentially exit a routing protocol when the memory reaches the lower limit.
  • Page 890 Command Reference Protocol-independent Configuration Commands 6.26 route-map Use route-map to enter the route map configuration mode and define a route map. Use the no form of this command to remove the setting. route-map route-map-name [permit | deny] [sequence-number] no route-map route-map-name [{permit | deny}sequence-number] Parameter Description Name of the route map.
  • Page 891 Command Reference Protocol-independent Configuration Commands For route redistribution, route maps are usually used to control the mutual route redistribution between two routing domains. One or more match or set commands can be executed to configure a route map. If the match command is not used, all the routes will be matched.
  • Page 892 The following example configures the lifetime from 0:00 on September 9, 2000 to 0:00 on October 12, Examples 2011 Ruijie(config)# key chain ripkeys Ruijie(config-keychain)# key 1 Ruijie(config-keychain-key)# send-lifetime 00:00:00 Sep 9 2000 00:00:00 Dec 12 2011 Related Command Description command...
  • Page 893 6.6.6.6. For the messages received from 2.2.2.2, if the software cannot find the forwarding route, they are forwarded to device 7.7.7.7. The other messages will be discarded if the software cannot find the forwarding route. Ruijie(config)#access-list 1 permit 1.1.1.1 0.0.0.0 Examples Ruijie(config)#access-list 2 permit 2.2.2.2 0.0.0.0...
  • Page 894 Command Reference Protocol-independent Configuration Commands Ruijie(config)#route-map equal-access permit 20 Ruijie(config-route-map)#match ip address 2 Ruijie(config-route-map)#set ip default next-hop 7.7.7.7 Ruijie(config)#route-map equal-access permit 30 Ruijie(config- route-map)#set default interface null 0 Command Description route-map Define a route map. match ip address Match the IP address.
  • Page 895 Command Reference Protocol-independent Configuration Commands set interface Set the outgoing interface. set ip next-hop Set the next hop of the packets. set ip precedence Set the priority of the packets. 6.30 set ip next-hop Use this command to specify the next-hop IP address for the packets that meet the matching rule. Use the no form of this command to remove the setting.
  • Page 896: Set Ip Precedence

    10.0.0.0/8, they will be sent to 192.168.100.1; when the interface receives the packets from 172.16.0.0/16, they will be sent to 172.16.100.1; all other packets will be discarded. Ruijie(config)#interface serial 1/0 Ruijie(config-if)#ip policy route-map load-balance Ruijie(config)#access-list 10 permit 10.0.0.0 0.255.255.255 Ruijie(config)#access-list 20 permit 172.16.0.0 0.0.255.255 Ruijie(config)#route-map load-balance permit 10 Examples Ruijie(config-route-map)#match ip address 10 Ruijie(config-route-map)#set ip next-hop 192.168.100.1...
  • Page 897 IP packet matched the PBR. The following example sets the precedence of the packet with the source IP address 192.168.217.68 received at the interface FastEthernet 0/0 as 4: Ruijie(config)#access-list 1 permit 192.168.217.68 0.0.0.0 Ruijie(config)#route-map name Examples Ruijie(config-route-map)#match ip address 1...
  • Page 898 The TOS value will be specified for the head of the IP packet matched the PBR. The following example sets the TOS value of the packet with the source IP address 192.168.217.68 received at the interface FastEthernet 0/0 as 4: Ruijie(config)#access-list 1 permit 192.168.217.68 0.0.0.0 Ruijie(config)#route-map name Examples...
  • Page 899 Command Reference Protocol-independent Configuration Commands match ip next-hop Match the next-hop IP address in the ACL. match ip route-source Match the route source IP address in the ACL. match metric Match the route metric value. match route-type Match the route type. match tag Match the route tag value.
  • Page 900 Command Reference Protocol-independent Configuration Commands For the switches, this function does not take effect if the mask length is beyond If this command and the set ipv6 next-hop verify-availability are both configured ,the next hop set by the set ipv6 next-hop verify-availability command will take effect preferentially Examples Command...
  • Page 901 Command Reference Protocol-independent Configuration Commands If weight follows any next-hop, the operation mode of this command will be automatically switched to the WCMP load balancing mode. In the WCMP load balancing mode, for the nexthop address without configuring the corresponding weight, the weight is 1 by default. When the packets select the egress from the policy-based routing and routing table, the priorities are as bellows.
  • Page 902: Set Level

    Command Reference Protocol-independent Configuration Commands guideline The following example sets the precedence of IPv6 packet head as “immediate”: Examples ute-map)# set ipv6 precedence immediate Ruijie(config-ro Command Description match ipv6 address Configure the ACL used for matching the packet in IPv6 PBR.
  • Page 903: Set Metric

    Protocol-independent Configuration Commands In the example below, the OSPF routing protocol redistributes the RIP protocol to the backbone area. Ruijie(config)# router ospf Ruijie(config-router)# redistribute rip subnets route-map redrip Examples Ruijie(config-router)# network 192.168.12.0 0.0.0.255 area 0 Ruijie(config-router)# exit Ruijie(config)# route-map redrip permit 10...
  • Page 904 The following example enables the OSPF routing protocol to redistribute the RIP routes and sets the default metric to 40. Ruijie(config)# router ospf Ruijie(config-router)# redistribute rip subnets route-map redrip Examples Ruijie(config-router)# network 192.168.12.0 0.0.0.255 area 0 Ruijie(config-router)# exit...
  • Page 905 The following example enables the OSPF routing protocol to redistribute the RIP route and sets the type as type-1. Ruijie(config)# router ospf Ruijie(config-router)# redistribute rip subnets route-map redrip Examples Ruijie(config-router)# network 192.168.12.0 0.0.0.255 area 0 Ruijie(config-router)# exit...
  • Page 906 If the set command is not used, no operation will be performed. The following example enables the OSPF routing protocol to redistribute the RIP route and sets the next-hop to 192.168.1.2. Ruijie(config)# route-map redrip permit 10 Examples Ruijie(config-route-map)# match ip address 1 Ruijie(config-route-map)# set next-hop 192.168.1.2...
  • Page 907: Set Tag

    The following example enables the OSPF routing protocol to redistribute the RIP route and sets the tag as 100. Ruijie(config)# router ospf Ruijie(config-router)# redistribute rip subnets route-map redrip Examples Ruijie(config-router)# network 192.168.12.0 0.0.0.255 area 0 Ruijie(config-router)# exit...
  • Page 908 Command Privileged EXEC mode mode Usage guideline The following example displays the AS path access lists. Examples Ruijie# show ip as-path-access-list AS path access list 30 permit ^30$ Field Description AS path access list AS path access list number permit Permits advertisement based on matching conditions.
  • Page 909 Privileged EXEC mode, global configuration mode, interface configuration mode, routing protocol mode configuration mode and route map configuration mode. Usage guideline Ruijie # show ip extcommunity-list Examples Standard extended community-list 1 10 permit RT:1:200 20 permit RT:1:100 Standard extended community-list 2...
  • Page 910: Show Ip Protocols

    If no prefix list is specified, the configurations of all the prefix lists are displayed, otherwise only the guidelines configuration of the specified prefix list is displayed. Ruijie# show ip prefix-list seq pre: 2 entries Examples seq 5 permit 192.168.564.0/24 seq 10 permit 192.2.2.0/24...
  • Page 911 If no prefix list is specified, the configurations of all the prefix lists are displayed, otherwise only the Usage configuration of the specified prefix list is displayed. guideline Ruijie# show ipv6 prefix-list ipv6 prefix-list p6: 2 entries Examples seq 5 permit 13::/20 seq 10 permit 14::/20 6.47 show key chain...
  • Page 912 Match clauses: ip address 2 Set clauses: metric 10 Ruijie(config)#show key chain key chain kc key 1 -- text "ruijie" accept-lifetime (12:11:00 May 2 2001) - (infinite) send-lifetime (always valid) - (always valid) [valid now] Field Description key chain Key chain name.
  • Page 913 If no route map is specified, the configurations of all the route maps will be displayed, otherwise only guidelines the configuration of the specified route map is displayed. Ruijie# show route-map route-map AAA, permit, sequence 10 Match clauses: ip address 2...
  • Page 914 Multicast Commands 1. IPv4 Multicast Routing Commands 2. IGMP Snooping Commands...
  • Page 915 Disabled. Command Mode Global configuration mode. Usage Guide The following example enables the overflow overriding mechanism. Ruijie (config)# msf ipmc-overflow override Examples Ruijie (config)# 1.2 msf nsf Use this command to configure the parameter for the continuous multicast forwarding. Use the no or default form of this command to restore the default setting.
  • Page 916 Global configuration mode. Command Mode Usage Guide The following example sets the maximum time for the protocol convergence. Ruijie (config)# msf nsf convergence-time 300 Ruijie (config)# Examples The following example sets the packets leak time: Ruijie(config)# msf nsf leak 200 Ruijie(config)# 1.3 show msf msc...
  • Page 917 Description Description Command Mode Privileged EXEC mode/Global configuration mode/Interface EXEC mode The following example shows the configuration of continuous multicast forwarding. Ruijie# show msf nsf Multicast HA Parameters ---------------------------------------------------+------+ Examples protocol convergence timeout 120 secs flow leak interval 20 secs...
  • Page 918 Command Reference IPv4 Multicast Routing Commands Command Description Related Commands msf nsf Configure the multicast NSF parameter.
  • Page 919: Igmp Snooping Commands

    Configuration The following example clears the Group Destination Address (GDA) table. Ruijie# clear ip igmp snooping gda-table Examples Platform Description 2.2 clear ip igmp snooping statistics...
  • Page 920: Ip Igmp Profile

    This command is used to clear the IGMP Snooping statistics, which can be displayed by using the show ip igmp snooping statistics command. Configuration The following example clears the IGMP Snooping statistics. Ruijie# clear ip igmp snooping statistics Examples Platform Description 2.3 deny...
  • Page 921: Ip Igmp Snooping

    If the permit command is used without any profile specified, all profiles in the profile are denied. The following example creates and permits profile 1 with addresses from 224.2.2.2 to 224.2.2.244. Configuration Ruijie(config)# ip igmp profile 1 Examples Ruijie(config-profile)# range 224.2.2.2 224.2.2.244...
  • Page 922 Examples The following example enables IGMP Snooping and enters the SVGL mode. Ruijie(config)# ip igmp snooping svgl Ruijie(config)# ip igmp snooping svgl profile 1 The following example enables IGMP Snooping and enters the IVGL-SVGL mode. Ruijie(config)# ip igmp snooping ivgl-svgl...
  • Page 923 The following example sets the aging time of the routing interface that the switch learns dynamically to Configuration 100 seconds. Examples Ruijie(config)# ip igmp snooping dyn-mr-aging-time 100 Platform Description 2.7 ip igmp snooping fast-leave enable Use this command to enable the fast leave function.
  • Page 924 Global configuration mode/Interface configuration mode Mode Usage Guide A specific profile must be created before association. Configuration The following example specifies profile 1 for interface fastEthernet 0/1. Ruijie(config)# interface fastEthernet 0/1 Examples Ruijie(config-if)# ip igmp snooping filter 1 Platform Description...
  • Page 925 This command takes effect only after the system receives the next IGMP packet. This command does not change the current aging time. The following example sets the aging time to 30 seconds. Configuration Ruijie(config)# ip igmp snooping host-aging-time 30 Examples Related Command...
  • Page 926 Configuration The following example sets the maximum number of multicast groups to 2000. Ruijie(config)# ip igmp snooping l2-entry-limit 2000 Examples Related Commands Command...
  • Page 927 IGMP snooping. Configuration The following example enables the dynamic routing interface learning function on VLAN 1. Ruijie(config)# no ip igmp snooping mrouter learn pim-dvmrp Examples Ruijie(config)# ip igmp snooping vlan 1 mrouter learn pim-dvmrp Platform Description...
  • Page 928 The following example associates the profile 2 to the Ethernet 0/1 and associates multicast preview with Configuration profile 1. Examples Ruijie(config)# ip igmp snooping preview 1 Ruijie(config-if)# int Ethernet 0/1 Ruijie(config-if)# ip igmp snooping filter 2 Platform Description 2.14 ip igmp snooping preview interval...
  • Page 929: Ip Igmp Snooping Querier

    Configuration The following example sets the multicast preview interval as 100 seconds on the 100M port of 0/1: Ruijie(config)# ip igmp snooping preview 1 Examples Ruijie(config)# ip igmp snooping preview interval 100 Platform Description 2.15 ip igmp snooping querier Use this command to enable the IGMP querier.
  • Page 930: Ip Igmp Snooping Querier Address

    Ruijie(config)# ip igmp snooping querier address 1.1.1.1 Examples The following example specifies the source IP of the IGMP querier as 1.1.1.1 in VLAN 3. Ruijie(config)# ip igmp snooping vlan 3 querier address 1.1.1.1 Platform Description 2.17 ip igmp snooping querier max-response-time Use this command to configure the maximum response time of the IGMP querier.
  • Page 931 Ruijie(config)# ip igmp snooping querier max-response-time 15 Examples The following example specifies the maximum response time of the IGMP querier in VLAN 3. Ruijie(config)# ip igmp snooping vlan 3 querier max-response-time 15 Platform Description 2.18 ip igmp snooping querier query-interval Use this command to specify the interval for IGMP querier to send query packets.
  • Page 932: Ip Igmp Snooping Querier Timer Expiry

    The following example configures the non-querier expiration timer on the device. Ruijie(config)# ip igmp snooping querier timer expiry 60 Examples The following example configures the non-querier expiration timer in VLAN 3. Ruijie(config)# ip igmp snooping vlan 3 querier timer expiry 60 Platform Description 2.20 ip igmp snooping querier version Use the following commands to specify IGMP Snooping querier version.
  • Page 933 Configuration Ruijie(config)# ip igmp snooping querier version 1 Examples The following example configures IGMP querier version on VLAN3. Ruijie(config)# ip igmp snooping vlan 3 querier version 1 Platform Description 2.21 ip igmp snooping query-max-response-time Use this command to specify the time for the switch to wait for the member join message after receiving the query message.
  • Page 934 Configuration The following examples sets the aging time of the routing interface that the switch learns dynamically to Examples 100 seconds. Ruijie(config)# ip igmp snooping query-max-response-time 100 Platform Description 2.22 ip igmp snooping suppression enable Use this command to enable IGMP snooping suppression.
  • Page 935 Usage Guide specify the multicast group address range applied in the SVGL or IVGL-SVGL mode. The following example specifies the profile 2 applied in SVGL mode. Configuration Ruijie(config)# ip igmp snooping svgl profile 2 Examples Platform Description 2.24 ip igmp snooping svgl subvlan Use this command to specify the subvlan of multicast VLAN.
  • Page 936 Command Reference IGMP Snooping Commands Ruijie(config)# ip igmp snooping svgl subvlan 2,5-7 Platform Description 2.25 ip igmp snooping svgl vlan Use this command to specify the shared VLAN in SVGL mode. Use the no form of this command to restore the default setting.
  • Page 937: Ip Igmp Snooping Vlan

    VLAN 1. By default, the second way is used. Configuration The following example enables QinQ support for IGMP Snooping. Ruijie(config)# ip igmp snooping tunnel Examples Platform Description 2.27 ip igmp snooping vlan Use this command to enable the IGMP Snooping in the specified VLAN and enter IVGL mode.
  • Page 938 The following example enters IVGL mode and disables the IGMP Snooping in the VLAN 2. Configuration Ruijie(config)# ip igmp snooping ivgl Examples Ruijie(config)# no ip igmp snooping vlan 2 Platform Description 2.28 ip igmp snooping vlan mrouter interface Use this command to configure a static routing interface.
  • Page 939 When the source port check function is enabled, only the multicast flows from the routing interface are forwarded, and other flows will be discarded. Configuration The following example configures a static routing interface. Ruijie(config)# ip igmp snooping vlan 1 mrout erinterface fastEthernet 0/1 Examples Platform Description 2.29 ip igmp snooping vlan static interface...
  • Page 940 Use the permit command to permit the multicast forwarding for the profile. The following example permits the forwarding of the multicast streams from 224.2.2.2 to 224.2.2.244 of Configuration profile 1. Examples Ruijie(config)# ip igmp profile 1 Ruijie(config-profile)# range 224.2.2.2 224.2.2.244 Ruijie(config-profile)# permit Platform Description 2.31 range...
  • Page 941: Show Ip Igmp Profile

    Use the permit command to permit the multicast forwarding for the profile. Configuration The following is an example of allowingpermits the forwarding of the multicast streams from 224.2.2.2 Examples to 224.2.2.244: of profile 1. Ruijie(config)# ip igmp profile 1 Ruijie(config-profile)# range 224.2.2.2 224.2.2.244224.2.2.2 Ruijie(config-profile)# permit Platform Description 2.32 show ip igmp profile...
  • Page 942: Show Ip Igmp Snooping

    IGMP Snooping version: 2IGMP Preview group aging time : 60(Seconds) Dynamic Mroute Aging Time : 300(Seconds) Dynamic Host Aging Time : 260(Seconds) The following example displays VLAN1 IGMP Snooping information. Ruijie#show ip igmp snooping vlan 1 IGMP Snooping running mode: IVGL IGMP Snooping L2-entry-limit: 65536 Global IGMPv2 Fast-Leave :Disable...
  • Page 943 Command Reference IGMP Snooping Commands Dynamic Host Aging Time : 260(Seconds) vlan 1 ------------- IGMP Snooping state: Enable Multicast router learning mode: pim-dvmrp IGMP Fast-Leave: Disable IGMP VLAN querier: Disable IGMP VLAN Mode: STATIC Platform Description...
  • Page 944 Security Configuration Commands 1 AAA Commands 2 RADIUS Commands 3 TACACS+ Commands 4 802.1X Commands 5 Web Authenticatoin Commands 6 SCC Commands 7 Global IP-MAC Binding Commands 8 Password-Policy Commands 9 Port Security Commands 10 Storm Control Commands 11 SSH Commands 12 GSN Commands 13 CPU Protection Commands 14 DHCP Snooping Commands...
  • Page 945 18 IP Source Guard Commands 19 IPv6 Source Guard Commands 20 Anti-ARP Spoofing Commands 21 NFPP Commands 22 DoS Protection Commands...
  • Page 946: Aaa Commands

    The configured accounting command method must be applied to the terminal line that needs accounting command; otherwise it is ineffective. Configuration The following example enables NAS command accounting. Ruijie(config)# aaa accounting commands 15 default start-stop group tacacs+ Examples Related Command...
  • Page 947: Aaa Accounting Exec

    The configured exec accounting method must be applied to the terminal line that needs accounting command; otherwise it is ineffective. Configuration The following example enables NAS access accounting. Ruijie(config)# aaa accounting network start-stop group radius Examples Related Command Description...
  • Page 948 RGOS performs accounting of user activities by sending record attributes to the security server. Use the start-stop keyword to set the user accounting option. Configuration The following example enables network access accounting. Ruijie(config)# aaa accounting network start-stop group radius Examples Related Command...
  • Page 949: Aaa Accounting Update

    If the AAA security service is not enabled, the accounting update function cannot be used. This command is used to set the accounting interval if the AAA security service has been enabled. Configuration The following example enables the accounting update function. Ruijie(config)# aaa new-model Examples Ruijie(config)# aaa accounting update Related Command Description Commands aaa new-model Enables the AAA security service.
  • Page 950: Aaa Authentication Dot1X

    AAA security service has been enabled. Configuration The following example sets the interval of accounting update to 1 minute. Ruijie(config)# aaa new-model Examples Ruijie(config)# aaa accounting update Ruijie(config)# aaa accounting update periodic 1 Related Command Description Commands aaa new-model Enables the AAA security service.
  • Page 951: Aaa Authentication Enable

    Examples authentication method list, first the RADIUS security server is used for authentication. If the RADIUS security server does not respond, the local user database is used for authentication. Ruijie(config)# aaa authentication dot1x rds_d1x group radius local Related Command Description...
  • Page 952: Aaa Authentication Login

    The following example defines an AAA Enable authentication method list. In the authentication Examples method list, first the RADIUS security server is used for authentication. If the RADIUS security server does not respond, the local user database is used for authentication. Ruijie(config)# aaa authentication enable default group radius local Related Command Description...
  • Page 953 Examples authentication method list, first the RADIUS security server is used for authentication. If the RADIUS security server does not respond, the local user database is used for authentication. Ruijie(config)# aaa authentication login list-1 group radius local Related Command Description...
  • Page 954 RADIUS security server is first used for authentication. If the RADIUS Examples security server does not respond, the local user database is used for authentication. Ruijie(config)# aaa authentication web-auth rds_web group radius none Related Command Description...
  • Page 955 The configured command authorization method must be applied to terminal line which requires the command authorization. Otherwise, the configured command authorization method is ineffective. Configuration The following example uses the TACACS+ server to authorize the level 15 command. Ruijie(config)# aaa authorization commands 15 default group tacacs+ Examples Related Command...
  • Page 956: Aaa Authorization Exec

    If the command authorization function is disabled on the console, the authorization method list applied to the console line is ineffective. Configuration The following example enables the aaa authorization console function. Ruijie(config)# aaa authorization console Examples Related Command Description Commands Enables the AAA security service.
  • Page 957: Aaa Authorization Network

    It cannot enter the CLI if it fails to enable the aaa authorization exec. You must apply the exec authorization method to the terminal line; otherwise the configured method is ineffective. Configuration The following example uses the RADIUS server to authorize Exec. Ruijie(config)# aaa authorization exec default group radius Examples Related Command Description...
  • Page 958 RADIUS authorization is based on RADIUS authorization. RADIUS authorization is performed only when the user passes the RADIUS authorization. Configuration The following example uses the RADIUS server to authorize network services. Ruijie(config)# aaa authorization network default group radius Examples Related Command...
  • Page 959 The domain-name is the specified domain name, if the users are with this domain name, the method lists associated with this domain are used. At present, the system can configure up to 32 domains. Configuration The following example configures the domain name. Ruijie(config)# aaa domain ruijie.com Examples Ruijie(config-aaa-domain)# Related Command...
  • Page 960 Usage Guide Use this command to configure login attempt times. Configuration The following example sets login attempt times to 6. Ruijie #configure terminal Examples Ruijie(config)#aaa local authentication attempts 6 Related Command Description Commands show running-config Displays the current configuration of the switch.
  • Page 961 Use this command to configure the length of lockout-time when the login user has attempted for more than the limited times. Configuration The following example sets the lockout-time period to 5 minutes. Ruijie#configure terminal Examples Ruijie(config)#aaa local authentication lockout-time 5 Related Command Description Commands show running-config Displays the current configuration of the switch.
  • Page 962 Too much printing may flood the screen or even reduce device performance. In this case, use this command to adjust the printing rate. Configuration The following example sets the rate of printing the syslog informing AAA authentication success to Examples Ruijie(config)# aaa log rate-limit 10 Related Command Description Commands...
  • Page 963 By default, no number of users is limited. Defaults Command Domain configuration mode Mode Usage Guide This command limits the number of users for the domain. Configuration The following example sets the number of users to 20 for the domain named ruijie.com. Ruijie(config)# aaa domain ruijie.com Examples...
  • Page 964 Usage Guide Use this command to configure the Network accounting method list for the specified domain. Configuration The following example sets the Network accounting method list for the specified domain. Ruijie(config)# aaa domain ruijie.com Examples Ruijie(config-aaa-domain)# accounting network default Related...
  • Page 965: Authentication Dot1X

    Domain configuration mode Mode Usage Guide Specify an IEEE802.1x authentication method list for the domain. The following example sets an IEEE802.1x authentication method list for the specified domain. Configuration Ruijie(config)# aaa domain ruijie.com Examples Ruijie(config-aaa-domain)# authentication dot1x default Related Command Description...
  • Page 966: Clear Aaa Local User Lockout

    Privileged EXEC mode Mode Usage Guide Use this command to clear all the user lists or a specified user list. The following example clears the lockout user list. Configuration Ruijie(config)# clear aaa local user lockout all Examples Related Command Description Commands show running-config Displays the current configuration of the switch.
  • Page 967 Mode Usage Guide Use this command to display the accounting update interval and whether the accounting update is enabled. Configuration The following example displays the accounting update information. Ruijie# show aaa accounting update Examples Related Command Description Commands Enables the AAA security service.
  • Page 968 Configuration Guide AAA Commands The following example displays the domain named domain.com. Configuration Ruijie(config)# show aaa domain domain.com Examples =============Domain domain.com============= State: Active Username format: Without-domain Access limit: No limit 802.1X Access statistic: 0 Selected method list: authentication dot1x default...
  • Page 969 Privileged EXEC mode/Global configuration mode/Interface configuration mode Command Mode Use this command to display the lockout configuration. Usage Guide Configuration The following example displays the lockout configuration. Ruijie# show aaa lockout Examples Lock tries: Lock timeout: 15 minutes Related Command Description...
  • Page 970 Mode Usage Guide Use this command to display all AAA method lists. The following example displays the AAA method list. Configuration Ruijie# show aaa method-list Examples Authentication method-list aaa authentication login default group radius aaa authentication ppp default group radius...
  • Page 971 The following example displays AAA user information. Configuration Examples Ruijie#show aaa user all ----------------------------- Id ----- Name 2345687901 wwxy ----------------------------- Ruijie# show aaa user by-id 2345687901 ----------------------------- Id ----- Name 2345687901 wwxy Ruijie# show aaa user by-name wwxy ----------------------------- Id ----- Name 2345687901...
  • Page 972 Domain configuration mode Mode Usage Guide Use this command to set whether the specified configured domain is valid. The following example sets the configured domain to be invalid. Configuration Ruijie(config)# aaa domain ruijie.com Examples Ruijie(config-aaa-domain)# state block Related Command Description Commands Enables the AAA security service.
  • Page 973 Configuration Guide AAA Commands Related Command Description Commands aaa new-model Enables the AAA security service. Enables the domain-name-based AAA service. aaa domain enable show aaa domain Displays the domain configuration. Platform Description...
  • Page 974: Radius Commands

    Mode Usage Guide This command is used to configure a RADIUS AAA server group. Configuration The following example configures a RADIUS AAA server group named ss. Ruijie(config)# aaa group server radius ss Examples Ruijie(config-gs-radius)# end Ruijie# show aaa group Type...
  • Page 975 Configuration The following example specifies that the RADIUS packet obtains an IP address from the fastEthernet Examples 0/0 interface and uses it as the source IP address of the RADIUS packet. Ruijie(config)# ip radius source-interface fastEthernet 0/0 Related Command Description...
  • Page 976 Configuration Guide RADIUS Commands to 255. Defaults Only the default configuration of private attributes in Ruijie is recognized. Function type max down-rate user ip vlan id version to client net ip user name password file-directory file-count file-name-0 file-name-1 file-name-2 file-name-3...
  • Page 977 Global configuration mode Mode Usage Guide This command is used to configure the private attribute type value. Configuration The following example sets the type of max up-rate to 211. Ruijie(config)# radius attribute 16 vendor-type 211 Examples Related Command Description Commands...
  • Page 978 DSCP value by default. The following example sets the QoS value sent by the RADIUS server as the CoS value of the Configuration Examples interface: Ruijie(config)# radius set qos cos Related Command Description Commands Extends RADIUS as not to differentiate the IDs radius vendor-specific extend of private vendors.
  • Page 979 Parameter Parameter Description Description Defaults Only the private vendor IDs of Ruijie are recognized. Command Global configuration mode Mode Usage Guide This command is used to identify the attributes of all vendor IDs by type. Configuration...
  • Page 980 Use this command to enable or disable account-request packets to contain a specified RADIUS Usage Guide attribute. Configuration The following example disables account-request packets to contain attribute NAS-PORT-ID. Ruijie(config)# radius-server account attribute 87 unpackage Examples Platform Description 2.8 radius-server account update retransmit Use this command to configure accounting update packet retransmission for the second generation Web authentication user.
  • Page 981 Account-request packets do not contain vendor- specific RADIUS attributes by default. Global configuration mode Command Mode Usage Guide Use this command to enable account-request packets to contain vendor-specific RADIUS attributes. The following example enables account-request packets to contain “cmcc”. Configuration Ruijie(config)# radius-server account vendor cmcc package Examples Platform...
  • Page 982 Configuration Guide RADIUS Commands Description 2.10 radius-server attribute class Use this command to analyze the flow control value of the RADIUS CLASS attributes. Use the no form of this command to restore the default setting. radius-server attribute class no radius-server attribute class Parameter Parameter Description...
  • Page 983 In this case, the RADIUS Calling-Station-ID attribute shall be set as the IETF format type. Configuration The following example defines the RADIUS Calling-Station-ID attribute as IETF format. Ruijie(config)# radius-server attribute 31 mac format ietf Examples Related Commands Command...
  • Page 984 Configuration Guide RADIUS Commands Configuration The following example disables access-request packets to contain attribute NAS-PORT-ID. Ruijie(config)# radius-server authentication attribute 87 unpackage Examples Platform Description 2.13 radius-server authentication vendor Use this command to enable access-request packets to contain vendor-specific RADIUS attributes.
  • Page 985 This command is used to adjust the parameter conditions of timeout and timeout times. Configuration The following example sets the timeout to 120 seconds and timeout times to 20. Ruijie(config)# radius-server dead-criteria time 120 tries 20 Examples Related Command...
  • Page 986 Radius server. Otherwise, the Radius server becomes reachable when the duration set by this command is shorter than the unreachable time. Configuration The following example sets the duration when the device stops sending requests to 1 minute. Ruijie(config)# radius-server deadtime 1 Examples Related Command...
  • Page 987 The following example defines a RADIUS security server host in the IPv4 environment, enable the active detection with the detection interval 60 minutes and disable the accounting UDP port detection: Ruijie(config)# radius-server host 192.168.100.1 test username viven idle-time 60 ignore-acct-port...
  • Page 988 In order to allow the device to communicate with the RADIUS security server, you must define the same shared password on the device and the RADIUS security server. Configuration The following example defines the shared password aaa for the RADIUS security server: Ruijie(config)# radius-server key aaa Examples Related Command...
  • Page 989 When the device retransmits the RADIUS packet for the specified times and the interval between every two retries is timeout, the device considers that the security sever does not respond. Configuration The following example sets the number of retransmissions to 4. Ruijie(config)# radius-server retransmit 4 Examples Related Command Description...
  • Page 990 RADIUS Commands The source port is random by default. This command is used to specify a source port. Usage Guide Configuration The following example configures source port 10000 to send RADIUS packets. Ruijie(config)# radius-server source-port 10000 Examples Related Command Description...
  • Page 991 The following example adds server 192.168.4.12 to server group ss and sets the accounting port and Examples authentication port to 5 and 6 respectively. Ruijie(config)# aaa group server radius ss Ruijie(config-gs-radius)# server 192.168.4.12 acct-port 5 auth-port 6 Ruijie(config-gs-radius)# end Ruijie# show aaa group Type...
  • Page 992 Defaults Command Mode Global configuration mode/Privileged EXEC mode/Interface configuration mode Usage Guide Configuration The following example displays RADIUS accounting statistics. Ruijie#show radius acct statistics Examples Accounting Servers: Server Index........1 Server Address........192.168.1.1 Server Port........1813 Msg Round Trip Time......0 (msec) First Requests........
  • Page 993 Configuration Guide RADIUS Commands Command Global configuration mode/Privileged EXEC mode/Interface configuration mode Mode Usage Guide Configuration The following example displays standard RADIUS attributes. Ruijie#sh radius attribute Examples type implicate ---- --------- 1..User-Name 2..User-Password 3..Chap-Password 4..NAS-Ip-Addr 5..Nas-Ip-Port 6..Service-Type 7..Framed-Protocol 8..Frame-Ip-Address 9..Framed-Ip-Mask 10..Framed-Routing...
  • Page 994 Configuration Guide RADIUS Commands 38..Framed-AppleTalk-Net 39..Framed-AppleTalk-Zone 40..Acct-Status-Type 41..Acct-Delay-Time 42..Acct-Input-Octets 43..Acct-Output-Octets 44..Acct-Session-Id 45..Acct-Authentic 46..Acct-Session-Time 47..Acct-Input-Packet 48..Acct-Output-Packet 49..Acct-Terminate-Cause 50..Acct-Multi-Session-ID 51..Acct-Link-Count 52..Acct-Input-Gigawords 53..Acct-Output-Gigawords 60..Chap-Challenge 61..Nas-Port-Type 62..Port-Limit 63..Login-Lat-Port 64..Tunnel-Type 65..Tunnel-Medium-Type 66..Tunnel-Client-EndPoint 67..Tunnel-Service-EndPoint 79..eap msg 80..Message-Authenticator 81..group id 85..Acct-Interim-Interval 87..Nas-Port-Id 89..cui 95..Nas-Ipv6-Addr 96..Framed-Interface-Id 97..Framed-Ipv6-Prefix 98..Login-Ipv6-Host 99..Framed-Ipv6-Route 100..Framed-Ipv6-Pool 168..Framed-Ipv6-Addr...
  • Page 995 Command Global configuration mode/Privileged EXEC mode/Interface configuration mode Mode Usage Guide Configuration The following example displays RADIUS authentication statistics. Ruijie#show radius auth statistics Examples Authentication Servers: Server Index........1 Server Address........192.168.1.1 Server Port........1812 Msg Round Trip Time......0 (msec) First Requests........
  • Page 996 ==========Radius group radius========== Vrf:not-set Server:192.168.1.1 Server key:ruijie Authentication port:1812 Accounting port:1813 State:Active RG-S29 series do not support the VRF parameter. The above example is for reference purpose. Please take the actual device as standard. Related Command Description Commands Platform Description 2.26 show radius parameter...
  • Page 997: Show Radius Server

    RADIUS Commands Command Global configuration mode/Privileged EXEC mode/Interface configuration mode Mode Usage Guide Configuration The following example displays global RADIUS server parameters. Ruijie# show radius parameter Examples Server Timout: 5 Seconds Server Deadtime: 0 Minutes Server Retries: 3 Server Dead Critera:...
  • Page 998 Configuration Guide RADIUS Commands Test Ports: Authen Server State: Active Current duration 765s, previous duration 0s Dead: total time 0s, count 0 Statistics: Authen: request 15, timeouts 1 Author: request 0, timeouts 0 Account: request 0, timeouts 0 Server IP: 192.168.4.13 Accounting Port: 45 Authen Port:...
  • Page 999 Configuration Guide RADIUS Commands Defaults Command Privileged EXEC mode Mode Usage Guide Configuration The following example displays the configuration of the private vendors. Ruijie#show radius vendor-specific Examples vendor-specific type-value ----- -------------------- ---------- max-down-rate port-priority user-ip vlan-id last-supplicant-vers 5 net-ip user-name...
  • Page 1000 Configuration Guide RADIUS Commands retransmissions. Defines a shared password for the RADIUS radius-server key server. Defines the packet transmission timeout. radius-server timeout Platform Description...

Table of Contents