Chapters Download(435.42 KB)
Chapter 2 Command Line Interfaces
2.2 Command Line Interface Views
2.3 Configuring Hierarchical User Passwords
2.4 Features of Command Line Interface
2.4.1 Command Line Online Help
Chapter 3 Logging into the ET704-B-L
4.1 Configuring the VTY User Interface
4.1.1 Enter the VTY Interface View
4.1.2 Configure Terminal Properties.
4.1.3 Configure Telnet Login Password
Chapter 5 Ethernet Interface Configuration
5.1 Ethernet Interface Configuration Task List
5.2 Bringing Up/Shutting Down an Ethernet Interface
5.3 Enabling the Cable Inspection Function
5.4 Ethernet Interface Display and Maintenance
Chapter 6 Management VLAN Configuration
6.1 Introduction to Management VLAN
6.2 Management VLAN Configuration Task List
6.3 Bringing Up/Shutting Down the Management VLAN Interface
Chapter 7 ET704-B-L Management
7.1 MAC Address Table Management
7.1.1 MAC Address Table Management Task List
7.1.2 Modifying MAC Address Table Entries
7.1.3 Configuring Aging Time of MAC Address Table Entries
7.1.4 Displaying Information of MAC Address Table Entries
7.2.1 Configuration Management Task List
7.2.2 Displaying the Current and Saved Configurations
7.2.3 Save the Current Configuration
7.2.4 Restoring the Default Configuration
7.3.1 System Management Task List
7.3.3 Configuring a System Name for the ET704-B-L
7.3.4 Displaying /Clearing the ARP Table
7.3.5 Displaying the System Version Information
7.3.6 Displaying the Board Information of the ET704-B-L
7.3.7 Displaying the CPU Status of the ET704-B-L
7.3.8 Displaying the TCP Connection Status of the ET704-B-L
7.3.9 Upgrading the Local Software of the ET704-B-L
7.4.2 Enabling/Disabling Terminal Logging
7.4.3 Enabling/Disabling the Information Center
7.4.4 Exporting Logging Information to the Specified Host
7.4.5 Configuring the Logging Information Level
7.4.6 Displaying the Information Center
8.2 AGMP Configuration Task List
8.4 Configuring Basic Functions for a Remote Switch
8.5 Configuring Ethernet Ports for a Remote Switch
8.6 Configuring QoS Settings for a remote Switch
8.7 Displaying AGMP Configuration
9.1 Introduction to System Debugging
9.2 System Debugging Task List
9.3 Enabling/Disabling Protocol Debugging
9.4 Enabling/Disabling Terminal Debugging
9.5 Displaying Debugging Status
Chapter 10 Configuring Display.
ET704-B-L optical network unit (ONU) devices (hereinafter referred to as the ET704-B-L), offered by Hangzhou H3C Technologies Co., Ltd. (hereinafter referred to as H3C) for industry and enterprise users, are compliant with Ethernet passive optical network (EPON) interoperability standards and provide outstanding reliability.
The ET704-B-L provides four Ethernet interfaces and one passive optical network (PON) interface, which are compliant with IEEE 802.3ah 1000Base-PX20 transmission specifications. Working with optical line terminals (OLT) through an optical distribution network (ODN), ONUs form a complete EPON system for users, offering various services including data transmission and IPTV. As such, the ET704-B-L offers a good solution for implementing fiber to the home (FTTH) services.
l Compliant with IEEE 802.3ah EPON standards and IEEE 802.3ah 1000Base-PX20 transmission specifications.
l Compatible to OLTs that meet the interconnectivity standards, enabling remote management, maintenance and configuration through OLTs.
l Supporting remote management of Aolynk Group Management Protocol (AGMP) capable switches.
l Supporting remote maintenance and configuration through Telnet.
l Supporting online software upgrade.
l Supporting power outage notification.
l Supporting security features including hierarchical user management, password protection and black hole MAC address list.
l Providing various debugging functions for locating and diagnosing errors.
The ET704-B-L provides a series of configuration commands and command line interfaces (CLIs), allowing users to configure and manage it conveniently.
Features of command line interfaces include:
l Hierarchical command protection, preventing unauthorized users from accessing the ET704-B-L.
l Online help: Users can gain online help at any time by entering a question mark (?).
l Command history function: This enables users to check the commands that they have lately executed and re-execute the commands.
l Fuzzy match of key words by command line interpreter: to interpret a key word, the user simply needs to enter a distinct keyword, such as “disp” for “display”.
ET704-B-L CLI views are designed for different configuration tasks. They are both correlated and distinguishing. For example, once a user logs into the ET704-B-L successfully, the user enters user view, where the user can perform some simple operations such as checking the operation status and statistics information of the ONU. By executing the system-view command, the user enters system view, where the user can go to other views by entering corresponding commands.
The command line interface views include:
l User view
l System view
l Ethernet interface view
l VLAN interface view
l User interface view
Table 2-1 lists the details of the command line interface views, including the functions, the prompt and the entry and exit commands. Note that the interface numbers are for illustration purpose only.
Table 2-1 Details of command line interface views
View |
Function |
Prompt |
Entry command |
Exit command |
User view |
Simple system management operations such as checking the operation status and statistics information of the ONU |
<H3C> |
This view is entered once the user logs in to the ONU. |
quit: disconnect the ONU. |
System view |
Configure system parameters |
[H3C] |
Enter system-view in user view |
quit: quit to user view return: return to user view |
Ethernet interface view |
Configure Ethernet ports |
[H3C-Ethernet0/1] |
Enter interface Ethernet0/1 in system view |
quit: quit to system view |
VLAN interface view |
Configure VLAN interfaces |
[H3C-Vlan-interface1] |
Enter interface vlan-interface 1 in system view or Ethernet interface view |
|
User interface view |
Configure user interface parameters |
[H3C-Aux0] |
Enter user-interface aux 0 in system view |
|
[H3C-vty0] |
Enter user-interface vty 0 in system view |
The ET704-B-L has two user levels:
l Guest users: only permitted for some basic query operations in user view.
l Administrative users: permitted to enter system view and perform monitoring, configuration and management operations to the ET704-B-L.
By default, the user does not need to enter any password to enter system view. It is recommended to configure hierarchical user passwords on the ET704-B-L by executing the super password command. For the sake of security, the password entered for authentication is displayed as cipher text. If the correct password is entered within three attempts, the user will be switched to administrative user level. Otherwise, the user stays at guest user level.
Table 2-2 presents the method of configuring hierarchical user passwords.
Table 2-2 Follow these steps to configure hierarchical user passwords
To do... |
Use the command… |
Remarks |
Enter system view |
system-view |
— |
Configure hierarchical user passwords |
super password password |
password: a case sensitive string in plain text of 1 to 12 characters If you lose your password, please contact your local dealer. |
Delete hierarchical user passwords |
undo super password |
— |
When configuring the ONU, you can use the online help to get related help information. The CLI provides two types of online help: complete online help and partial online help.
Enter a question mark (?) in any view on your terminal to display all the commands available in the view and their brief descriptions. The following takes user view as an example.
<H3C> ?
debugging Enable system debugging functions
display Display current system information
quit Exit from current command view
reboot Reset ONU
reset Reset operation
save Save current configuration
system-view Enter the system view
terminal Specify the terminal characteristics
undo Cancel current setting
Enter a command, a space, and a question mark (?).If the question mark “?” is at a keyword position in the command, all available keywords at the position and their descriptions will be displayed on your terminal.
<H3C> display ?
agmp AGMP switch information
agmp-group AGMP-Group switch information
arp Display ARP information
cpu CPU usage rate
current-configuration Current configuration
debugging Current setting of debugging switches
device Device
dhcp-client Display dhcp clinet information
dhcp-snooping Display dhcp snooping information
igmp-snooping IGMP snooping
info-center Information center status and configuration
information
interface Interface status and configuration information
mac-address MAC address information
mirror display the mirroring port
saved-configuration The saved configuration information
stp Spanning tree protocol
tcp TCP status and configuration information
update-record display the onu update records
user-interface Terminal user interface status and configuration
information
users Login users status
version System hardware and software version information
Enter a character/string, and then a question mark (?) next to it. All the commands beginning with the character/string will be displayed on your terminal. For example:
<H3C> s?
save system-view
Enter a command, a space, a character/string and a question mark (?) next to it. All the keywords beginning with the character/string (if available) are displayed on your terminal. For example:
<H3C> display u?
user-interface users
Enter the first letter(s) of a command keyword and press Tab. If the letter(s) entered can uniquely represent a keyword, the complete spelling of the keyword will appear on your terminal. For example:
<H3C> disp ¬Press Tab.
<H3C> display
If a command passes the syntax check, it will be successfully executed; otherwise, an error message will be displayed.
Table 2-3 lists the commonly displayed error prompts.
Error prompt |
Caused by |
Unrecognized command |
The command does not exist. |
The keyword does not exist. |
|
The parameter type is wrong. |
|
The parameter value is out of range. |
|
Incomplete command |
The command entered is incomplete. |
Too many parameters |
The parameters entered are too many. |
Ambiguous command |
The parameters entered are ambiguous. |
Wrong parameter |
The parameter entered is wrong. |
The CLI provides the command history function, which automatically saves the commands entered by a user for his/her future use.
The command line interface can store up to 10 commands in the history for each user. Table 2-4 presents the operations of using the command history function.
To do... |
Use the key |
Result |
Access the previous command in the history |
↑ |
If there is a previous command, read the previous command. |
Access the next command in the history |
↓ |
If there is a next command, read the next command. |
The CLI provides basic command edit functions and supports multi-line editing. The maximum number of characters a command can contain is 254. Table 2-5 lists the functions of the keys.
Key |
Function |
A common key |
If the edit buffer is not full, pressing a key will insert the character on it to where the cursor is and move the cursor one character to the right |
Backspace key |
Pressing the backspace key will delete the character on the left of the cursor and move the cursor one character to the left. |
The CLI provides the screen splitting feature to have display output suspended when the screen is full. Table 2-6 lists the options available for a suspended display.
Press the key |
Function |
The Enter key |
Display information of the next command line. |
The space key |
Display the next screen. |
Some other key |
Exit the display. |
Users can telnet to the ET704-B-L for remote management and maintenance.
To telnet to the ET704-B-B, both the ET704-B-L and the user terminal need to be properly configured, as listed in Table 3-1.
Table 3-1 Configurations on the ET704-B-L and the user terminal
Object |
Configurations required |
ET704-B-L |
l If the Telnet user terminal and the ET704-B-L interface where the terminal is connected are in the same local area network (LAN), their IP addresses must be in the same network segment. Otherwise, the Telnet user terminal and the ET704-B-L must be mutually reachable. l By default, the Ethernet interface and management VLAN of the ET704-B-L are down. The user needs to bring them up through operations on the OLT remotely. |
Telnet user |
The Telnet program is installed and started. |
It has obtained the IP address of the management VLAN of the ET704-B-L, for which you can refer to Management VLAN Configuration. |
& Note:
l Only one user can Telnet to the ET704-B-T at a time.
l By default, the ET704-B-L requires no password for login through Telnet. You are recommended to configure a password after the first time login.
The following gives an example on how to Telnet to the ET704-B-L.
1) As shown in Figure 3-1, connect the Ethernet interface of the Telnet user terminal to that of the ET704-B-L through a LAN.
Figure 3-1 Establish the configuration environment
2) Run Telnet on the user terminal, and enter the IP address of the management VLAN of the Ethernet interface on the ET704-B-L that connects with the terminal (assuming it is 192.168.0.234), as shown in Figure 3-2.
3) The user terminal displays “Password” (assuming that a password is configured). After the user enters the correct password, a command line prompt will appear (such as <H3C>). If themessage “Vty user is busy now” appears, it means there is already a user logged into the ET704-B-T through Telnet.
After logging into the ET704-B-T, you can use the commands to configure it or check its operation status. To obtain the help information, enter a question mark “?” at any place. For detailed information of the configuration commands, refer to the following chapters.
Configuring VTY user interface involves the following three steps:
l Enter VTY user interface view
l Configure terminal properties
l Configure Telnet login password
The VTY user interface view stores the properties of the interface when a specified user Telnets to the ET704-B-L. The ET704-B-L supports only one VTY user interface.
Table 4-1 User interface view
To do... |
Use the command... |
Remarks |
Enter system view |
system-view |
— |
Enter VTY Interface View |
user-interface vty number |
number: the number of user interface to be configured. Available option is 0. |
The following gives the example of entering VTY user interface.
<H3C> system-view
[H3C] user-interface vty 0
[H3C-vty0]
Table 4-2 Configure terminal properties
To do... |
Use the command... |
Remarks |
Enter system view |
system-view |
— |
Enter VTY interface view |
user-interface vty number |
number: the number of user interface to be configured. Available option is 0. |
Configure the idle timeout value |
idle-timeout minutes [ seconds ] |
minutes: the number of minutes in the idle timeout value, in the range 1 to 35791. seconds: the number of seconds in the idle timeout value, in the range 0 to 59. By default, the idle timeout value is 10 minutes, which means the user will be automatically disconnected if no operation is performed within 10 minutes on the VTY user interface. |
Restore the idle timeout value to the default |
undo idle-timeout |
— |
The following shows an example of setting the idle timeout value for the VTY user interface to 7 minutes.
<H3C> system-view
[H3C] user-interface vty 0
[H3C-vty0] idle-timeout 7
To prevent access by unauthorized users, you can configure a Telnet login password by executing the set authentication password command on the ONU.
Table 4-3 Configure Telnet login password
To do... |
Use the command... |
Remarks |
Enter system view |
system-view |
— |
Enter VTY interface view |
user-interface vty number |
number: the number of user interface to be configured. Available option is 0. |
Configure Telnet login password |
set authentication password password |
password: a case sensitive string in plain text of 1 to 16 characters By default, there is no Telnet login password. |
Remove the Telnet login password configured |
undo set authentication password |
— |
The following gives an example of setting the Telnet login password to H3C in VTY system view.
<H3C> system-view
[H3C] user-interface vty 0
[H3C-vty0] set authentication password H3C
Table 4-4 User interface display
To do... |
Use the command... |
Remarks |
Display the current user on the interface |
display users |
Available in any view |
Display user interface status and the configurations |
display user-interface |
Available in any view |
The following gives an example of displaying the current user on the interface.
<H3C> display users
UI Delay Type IPaddress Username
F 0 VTY 0 00:00:00
Table 4-5 display users command output description
Field |
Description |
F |
The current user interface in use, which is operating in asynchronous mode. |
UI |
The first line is the absolute number of the user interface, displayed as VTY. The second line is the relative number of the user interface, displayed as 0. |
Delay |
The time elapsed since the user’s most recent entry, in the format “hh:mm:ss”. |
Type |
User type |
IPaddress |
The IP address of the user terminal that is currently connected with the ET704-B-L |
Username |
The user name which is currently logged into the ET704-B-L |
Complete the following tasks to configure Ethernet interfaces:
Task |
Remarks |
Optional |
|
Optional |
|
Optional |
Follow these steps to bring up/shut down an Ethernet interface:
To do... |
Use the command... |
Remarks |
Enter system view |
system-view |
— |
Enter Ethernet interface view |
interface Ethernet interface-number |
— |
Shut down an Ethernet interface |
shutdown |
By default, an Ethernet interface is down. |
Bring up an Ethernet interface |
undo shutdown |
— |
The following gives an example of shutting down an Ethernet interface Ethernet 0/3.
<H3C> system-view
[H3C] interface Ethernet0/3
[H3C-Ethernet0/3] shutdown
You can enable the cable inspection function of the ET704-B-L, which will return the inspection result of the cable connecting the Ethernet interface within 5 seconds: The inspection items include:
l Cable status: results including normal, open, short and test-failure.
l Cable length
l Cable pair
Follow these steps to enable the cable inspection function:
To do... |
Use the command... |
Remarks |
Enter system view |
system-view |
— |
Enter Ethernet interface view |
interface Ethernet interface-number |
— |
Enable the cable inspection function |
virtual-cable-test |
Required By default, the cable inspection function is not enabled. |
The following gives an example of enabling cable inspection function for interface Etherent0/3.
<H3C> system-view
[H3C] interface Ethernet0/3
[H3C-Ethernet0/3] virtual-cable-test
MDI pair Cable status Dist (meters)
1,2 Normal N/A
3,6 Normal N/A
4,5 N/A N/A
7,8 N/A N/A
& Note:
l When the cable status is normal, the display for dist (distance) is N/A (not available).
l When the cable status is open, the distance displayed is the total length of the cable.
l When the cable status is short, the distance displayed is the length from the interface to the place where the abnormity occurs.
l When the returned result is test-failure, the distance displayed is 0.
By performing this task, you can check the status information of the ET704-B-L Ethernet interface and clear all Ethernet interface statistics.
Follow these steps to display Ethernet interface information and clear interface statistics.
To do... |
Use the command... |
Remarks |
Clear all Ethernet interface statistics |
reset counters |
Optional Available in user view. |
Display Ethernet interface status information |
display interface interface-type interface-number |
Optional Available in any view |
The following gives an example of displaying information of interface Ethernet0/1.
<H3C> display interface Ethernet0/1
Ethernet0/1 current state: UP
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 000f-e200-0008
Description: Ethernet0/1 Interface
Mac-address learning is enabled
Media type is twisted pair
Port hardware type is 100_BASE_TX
100Mbps-speed mode, full-duplex mode
Link speed type is autonegotiation, link duplex type is autonegotiation
Inbound line-rate is disabled
Outbound line-rate is disabled
Flow control is disabled
The Maximum Frame Length is 1600
Input(normal): 269186946 packet(s), 48095360 byte(s)
1716 broadcast(s), 0 multicast(s)
Input(error): 0 input error(s), 0 runt(s), 0 giant(s), 0 CRC
Output(normal): 156075193 packet(s), 2797051840 byte(s)
4 broadcast(s), 9426 multicast(s)
Output(error): 0 output error(s), 0 collision(s), 0 late collision(s)
Table 5-1 display interface command output description
Field |
Description |
Mdi type |
Media dependent interface (MDI) type |
Input(normal): 269186946 packet(s), 48095360 byte(s) 1716 broadcast(s), 0 multicast(s) Input(error): 0 input error(s), 0 runt(s), 0 giant(s), 0 CRC Output(normal): 156075193 packet(s), 2797051840 byte(s) 4 broadcast(s), 9426 multicast(s) Output(error): 0 output error(s), 0 collision(s), 0 late collision(s) |
Number of input/output packets and error statistics |
To Telnet to the ET704-B-L for remote management, the ET704-B-L must have an IP address configured. The ET704-B-L has only one VLAN interface that can be configured with an IP address and this VLAN is the management VLAN.
Complete the following tasks to configure the management VLAN:
Task |
Remarks |
Optional |
Follow these steps to bring up/shut down the management VLAN interface:
To do... |
Use the command... |
Remarks |
Enter system view |
system-view |
— |
Enter management VLAN interface view |
interface vlan-interface vlan-id |
vlan-id: ID of the management VLAN, in the range 1 to 4094. By default, the management VLAN ID of the ET704-B-L is 1, its IP address is 192.168.0.100/24. To modify information of the management VLAN of the ET704-B-L, you need to make the modification through the OLT. |
Shut down the management VLAN interface |
shutdown |
— |
Bring up the management VLAN interface |
undo shutdown |
— |
To forward packets, the ET704-B-L needs to maintain a port-based Layer 2 MAC address table, which is the basis of fast forwarding on the ET704-B-L. An entry of the MAC address includes:
l The destination MAC address
l VLAN ID of the interface
l Forwarding interface number
By looking up the MAC address table, the ET704-B-L can find the forwarding interface number for a Layer 2 packet quickly, so as to achieve fast forwarding of Layer 2 packets.
When receiving a packet whose destination MAC address is a black hole MAC address (a special MAC address), the ET704-B-L will discard the packet directly, instead of forwarding it.
The ET704-B-L also provides the MAC address aging function. If no packets are received within a certain time from a device whose MAC address is already in the MAC address table, the ET704-B-L will delete the corresponding entry from the table. The MAC address aging function only applies to entries learned and dynamic entries configured by the user. It does not apply to entries of static MAC addresses and black hole MAC addresses.
Complete the following tasks to manage the MAC address table:
Task |
Remarks |
Modifying MAC Address Table Entries |
Optional |
Configuring Aging Time of MAC Address Table Entries |
Optional |
Displaying Information of MAC Address Table Entries |
Optional |
You can manually add, modify or delete MAC address table entries as needed.
Follow these steps to modify MAC address table entries:
To do... |
Use the command... |
Remarks |
Enter system view |
system-view |
— |
Add MAC address table entries |
mac-address blackhole mac-address |
blackhole: Packet whose destination address is the specified MAC address will be discarded by the ET704-B-L. static: A static entry will not be aged out. A saved static entry will not be lost after a restart dynamic: dynamic addresses will be aged out. mac-address: in the H-H-H format, excluding multicast MAC addresses, the ET704-B-L’s MAC address and broadcast MAC address. interface-number: interface number |
mac-address { dynamic | static } mac-address interface Ethernet interface-number |
||
Delete MAC address table entries |
undo mac-address [ interface Ethernet interface-number | mac-address ] |
— |
The following gives an example of adding a new entry, with the MAC address 000a-eb7f-aaab and interface number Ethernet0/1, and configuring it as a static entry.
<H3C> system-view
[H3C] mac-address static 000a-eb7f-aaab interface Ethernet 0/1
The aging time is very important for implementing the MAC address aging function of the ET704-B-L. An aging time being too long or too short will result in a large number of packets which cannot match any entry and need to be broadcast. This will affect the performance of the ET704-B-L. The following gives the reasons:
l If the aging time is too long, the ET704-B-L may keep many MAC address entries that are outdated, consuming the MAC address table resource and disabling the ET704-B-L from updating the MAC address table according to network changes.
l If the aging time is too short, the ET704-B-L may delete valid MAC address entries, thus decreasing its forwarding efficiency.
Follow these steps to configure the aging time of MAC address table entries:
To do... |
Use the command... |
Remarks |
Enter system view |
system-view |
— |
Configure the aging time of MAC address table entries |
mac-address timer { aging age | no-aging } |
age: the aging time of MAC address table entries, in the range 10 to 3825, in seconds. no-aging: no aging. |
Restore the aging time of MAC address table entries to default |
undo mac-address timer aging |
By default, the aging time of MAC address table entries is 300 seconds. |
The following gives an example of configuring the aging time of MAC address table entries as 500 seconds.
<H3C> system-view
[H3C] mac-address timer aging 500
After completing the configurations described in the sections above, you can display the information of MAC address entries learned and configured by executing the display mac-address command in any view, so that you can verify the configurations. The information includes the VLAN ID, the address state (static or dynamic), the corresponding interface and the aging time.
Follow the step to display information of MAC address table entries.
To do... |
Use the command... |
Remarks |
Display information of MAC address table entries |
display mac-address [ mac-address | interface Ethernet interface-number | blackhole | aging-time | count ] |
l mac-address: MAC address l interface-number: interface number l blackhole: blackhole address entry l aging-time: aging time l count: number of MAC addresses |
The following gives an example of displaying the information of an MAC address table entry with the MAC address 000a-eb7f-aaab.
<H3C> display mac-address 000a-eb7f-aaab
Reading entire MAC table. Please wait...
MAC ADDR VLAN ID STATE PORT INDEX AGING TIME(s)
000a-eb7f-aaab N/A Learned Ethernet0/1 AGING
--- 1 mac address(es) found ---
The information above indicates that packets with destination MAC address 000a-eb7f-aaab will be forwarded out from interface Ethernet0/1.
Complete the following tasks to manage the configuration:
Task |
Remarks |
Displaying the Current and Saved Configurations |
Optional |
Save the Current Configuration |
Optional |
Restoring the Default Configuration |
Optional |
After being powered up, the ET704-B-L reads the configuration from the Flash for initialization. The configuration in the Flash is called the saved configuration. If there is no configuration in the Flash, the ET704-B-L will use the default parameters for initialization. As compared to the saved configuration, the configuration which is in effect during the operation of the ET704-B-L is called the current configuration.
Follow these steps to display the current and saved configurations:
To do... |
Use the command... |
Remarks |
Display the saved configuration |
display saved-configuration |
Available in any view |
Display the current configuration |
display current-configuration |
Available in any view |
& Note:
l If the ET704-B-L does not operate normally after power-up, you can display its saved configuration to locate the problem by executing the display saved-configuration command.
The following gives an example of displaying the current configuration of the ET704-B-L.
<H3C> display current-configuration
#
sysname H3C
#
interface vlan-interface1
ip address 192.168.1.10 255.255.255.0
ip gateway 192.168.1.1
shutdown
#
igmp-snooping enable
#
stp enable
#
interface Ethernet0/1
#
interface Ethernet0/2
#
interface Ethernet0/3
#
interface Ethernet0/4
#
user-interface aux 0
#
user-interface vty 0
#
To make the current configuration effective after the next power-up, you need to save the current configuration to the Flash of the ET704-B-L.
Follow the step to save the current configuration:
To do... |
Use the command... |
Remarks |
Save the current configuration |
save |
l Available in user view l You are recommended to perform this operation to save the current configuration when you finish a set of parameters and they are proved to be correct. |
The following gives an example of saving the current configuration to the Flash.
<H3C> save
This will save the configuration in the Flash
Are you sure?[Y/N]y
Now saving current configuration to Flash
Please wait for a while...
Current configuration saved to Flash successfully
You can restore the ET704-B-L to the factory default configuration.
Follow these steps to restore the default configuration:
To do... |
Use the command... |
Remarks |
Enter system view |
system-view |
— |
Restore the default configuration |
restore default |
Required After being restored to the default configuration, the ET704 will be automatically reset. |
The following gives an example of restoring the ET704-B-L to default configuration.
<H3C> system-view
[H3C] restore default
This will restore the default configuration in the Flash
Are you sure?[Y/N]y
Now saving default configuration to Flash
Please wait for a while...
The system management tasks include:
Task |
Remarks |
Rebooting the ET704-B-L |
Optional |
Configuring a System Name for the ET704-B-L |
Optional |
Displaying /Clearing the ARP Table |
Optional |
Displaying the System Version Information |
Optional |
Displaying the Board Information of the ET704-B-L |
Optional |
Displaying the CPU Status of the ET704-B-L |
Optional |
Displaying the TCP Connection Status of the ET704-B-L |
Optional |
Upgrading the Local Software of the ET704-B-L |
Optional |
Follow the step to reboot the ET704-B-L:
To do... |
Use the command... |
Remarks |
Reboot the ET704-B-L |
reboot |
Available in user view |
The following gives an example of rebooting the ET704-B-L.
<H3C> reboot
Follow these steps to configure a system name for the ET704-B-L:
To do... |
Use the command... |
Remarks |
Enter system view |
system-view |
— |
Configure a system name for the ET704-B-L |
sysname sysname |
sysname: system name, 1 to 30 characters. The default system name of the ET704-B-L is H3C. |
Restore the default system name of the ET704-B-L |
undo sysname |
— |
& Note:
The system name of the ET704-B-L will be the prompt for the command lines. For example, if the system name is H3C, the prompt for all command lines is <H3C>. Therefore, modifying the system name will change the prompt for the command lines.
The following gives an example of configuring the system name of the ET704-B-L as ONU.
<H3C> system-view
[H3C] sysname ONU
[ONU]
Follow these steps to display/clear the address resolution protocol (ARP) table.
To do... |
Use the command... |
Remarks |
Display the ARP table of the ET704-B-L |
display arp [ ip-address ] |
ip-address: displays the IP address of the specified ARP table entry. Available in any view |
Clear the ARP table of the ET704-B-L |
reset arp |
Available in user view |
The following gives an example of displaying all ARP table entries.
<H3C> display arp
IP Address MAC Address VLAN ID Port Name Aging
192.168.0.101 000a-eb66-0cff 1 Ethernet0/2 20
192.168.0.99 000f-e200-0155 1 Ethernet0/1 20
--- 2 entries found ---
Different software versions provide different specifications. By displaying the system version information, you can know the specifications of the current system version.
Follow the step to display the system version information:
To do... |
Use the command... |
Remarks |
Display the system version information |
display version |
Available in any view |
The following gives an example of displaying the system version information.
<H3C> display version
ET704 Product Version ET704-T5601
Copyright (c) 2007 Hangzhou H3C Technologies Co., Ltd.
All rights reserved.
ET704 uptime is 0 week(s), 0 day(s), 17 hour(s), 8 minute(s)
ET704 with 140M ARM Processor
SDRAM: 8M bytes
FLASH: 4M bytes
Hardware Version: VER.A
Bootrom Version: 100
Follow the step to display the board information of the ET704-B-L:
To do... |
Use the command... |
Remarks |
Display the board information of the ET704-B-L |
display device |
Available in any view |
The following gives an example of displaying the board information of the ET704-B-L
<H3C> display device
SlotNo SubSNo PortNum PCBVer FPGAVer CPLDVer BootRomVer Type
0 0 4 Ver.A NULL NULL 100 MAIN
Follow the step to display the CPU status of the ET704-B-L:
To do... |
Use the command... |
Remarks |
Display the CPU status of the ET704-B-L |
display cpu |
Available in any view |
The following gives an example of displaying the CPU status of the ET704-B-L.
<H3C> display cpu
CPU busy status:
16 percent in last 5 seconds.
16 percent in last 1 minute.
16 percent in last 5 minutes.
By performing this task, you can display the status of all TCP connections on the ET704-B-L.
Follow the step to display the TCP connection status of the ET704-B-L:
To do... |
Use the command... |
Remarks |
Display the TCP connection status of the ET704-B-L |
display tcp status |
Available in any view |
For example:
<Sysname> display tcp status
TCPNO Local Add:port Foreign Add:port State
1 100.0.0.204:23 100.0.0.253:65508 Established
Table 7-1 display tcp status command output description
Field |
Description |
TCPNO |
Number of the TCP control module |
Local Add:port |
Local IP address and interface number |
Foreign Add:port |
Peer IP address and interface number |
State |
TCP connection status |
Caution:
l By default, the Ethernet interface and management VLAN of the ET704-B-L are down. You need to bring them up through operations on the OLT remotely first, so that you can Telnet to the ET704-B-L for local software upgrade.
l Before upgrading the software, make sure that the TFTP server and the ET704-B-L are mutually reachable.
l After upgrading the software, you must reboot the ET704-B-L with the reboot command to make the software take effect.
l Before rebooting the ET704-B-L, make sure that you have saved all necessary configuration.
l Do not power off the ET704-B-L when upgrading the software, for fear of upgrade failure.
You can use the Trivial File Transfer Protocol (TFTP) on the Ethernet interface of the ET704-B-L to upgrade the local software of the ET704-B-L.
Follow these steps to upgrade the local software of the ET704-B-L:
To do... |
Use the command... |
Remarks |
Enter system view |
system-view |
— |
Upgrade the local software of the ET704-B-L |
update tftp tftp-server file |
Required tftp-server: the IP address of the TFTP server file: the file name of the update software, containing 1 to 64 characters |
Display upgrade records |
display update-record |
Optional Available in any view |
The following gives an example of upgrading the local software of the ET704-B-L:
1) As shown in Figure 7-1, connect the one Ethernet interface of the ET704-B-L with the TFTP server and another Ethernet interface to a PC (the PC and the TFTP server can be the same machine).
Figure 7-1 Download the software to the ET704-B-L through a TFTP server
2) Run the server program on the TFTP server and specify the file directory of the software to be downloaded (for the operation of TFTP program, refer to the related guidance of the software).
& Note:
The default management VLAN of the ET704-B-L is VLAN 1, and the interface IP address is 192.168.0.100/24. In the network above, assume that the IP address of the TFTP server is 192.168.0.200/24.
3) Configure the ET704-B-L remotely on the OLT to bring up the management VLAN interface and the Ethernet interfaces connecting the PC and the TFTP server (detailed operation description is omitted here).
4) Telnet to the ET704-B-L to download the update software (assuming it is named file.APP) from the TFTP server to the ET704-B-L.
<H3C> system-view
[H3C] update tftp 192.168.0.200 file.APP
This will read software from tftp server and override image 0. Continue? [Y/N]y
TFTP server IP: 192.168.0.200
TFTP client IP: 192.168.0.100
TFTP client port: 13073.
Update file name: file.APP
Please wait until the updating process is over.
................................................................................................................................................................................................................................................
To burn the softwre to flash...
Do flash burning successfully.
Upgrading is over, please reboot the device.
5) Reboot the ONU.
[H3C] quit
<H3C> reboot
The system log stores the information of the ET704-B-T system module. It manages most of the system information output and classifies the information for effective information selection. Together with the debugging program, the system log greatly helps the network administrator to monitor the network operation status and diagnose network failures.
System log tasks include:
Task |
Remarks |
Enabling/Disabling Terminal Logging |
Optional |
Optional |
|
Exporting Logging Information to the Specified Host |
Optional |
Configuring the Logging Information Level |
Optional |
Optional |
Follow these steps to enable/disable terminal logging:
To do... |
Use the command... |
Remarks |
Enable terminal logging |
terminal logging |
l Available in user view l By default, terminal logging is enabled for console users, and is disabled for terminal users. |
Disable terminal logging |
undo terminal logging |
Available in user view |
The system exports system logging information to the host and/or the console only when the information center is enabled.
Follow these steps to enable/disable the information center:
To do... |
Use the command... |
Remarks |
Enter system view |
system-view |
— |
Enable information center |
info-center enable |
By default, the info-center function is enabled on the ET704-B-L. |
Disable information center |
undo info-center enable |
— |
& Note:
With the information center enabled, the system needs to classify and output information, which will have an impact on the system performance when the amount of information to be processed is large.
You can export the logging information of multiple ONUs to the same host.
Follow these steps to export logging Information to the specified host:
To do... |
Use the command... |
Remarks |
Enter system view |
system-view |
— |
Export logging information to the specified host |
info-center loghost host-ip-addr |
host-ip-addr: the IP address of the log host (to which the logging information will be sent) By default, the ET704-B-L does not export logging information to any log host. |
Disable exporting logging Information to the specified host |
undo info-center loghost |
— |
& Note:
l When using the info-center loghost command to configure the IP address of the log host, you need to enter the correct IP address. A loopback address is invalid.
l The ET704-B-L will only export the warning information to the log host. For information about the system logging information categories, refer to Configuring the Logging Information Level.
The following gives an example of configuring the ET704-B-L to export logging information to the log host with the IP address 202.38.160.1 (configurations on the log host are omitted here).
<H3C> system-view
[H3C] info-center enable
[H3C] info-center loghost 202.38.160.1
You can specify that only the information higher than the specified level is to be exported to the log host.
Follow these steps to configure the logging information level:
To do... |
Use the command... |
Remarks |
Enter system view |
system-view |
— |
Configure the logging information level |
info-center monitor level level |
level: the level of the logging information. For details, refer to Table 7-2. By default, the logging information level at the information center is 5. |
Restore the logging information level to the default value |
undo info-center monitor level |
— |
Table 7-2 Levels of logging information at the information center
Severity level |
Value |
Description |
emergencies |
1 |
The system is not operable. |
alerts |
2 |
Operator’s immediate action is required. |
critical |
3 |
Critical information |
errors |
4 |
Error information |
warnings |
5 |
Warning information |
notifications |
6 |
Normal but important information |
informational |
7 |
Informational information |
debugging |
8 |
Information generated in the debugging process |
The following gives an example of setting the logging information level at the information center to 7.
<H3C> system-view
[H3C] info-center level 7
Follow the step to display the information center :
To do... |
Use the command... |
Remarks |
Display the information center |
display info-center |
Available in any view |
The following gives an example of displaying the information center .
<H3C> display info-center
Sysname H3C
Terminal logging enable
Info-center loghost 202.38.160.1
Info-center enable
Info-center level 5
Table 7-3 display info-center command output description
Field |
Description |
Sysname |
System name of the ET704-B-L |
Terminal logging enable |
Terminal logging is enabled |
Info-center loghost |
IP address of the log host |
Info-center |
Status of the information center |
Info-center level |
Information center level |
The Aolynk Group Management Protocol (AGMP), a proprietary protocol of H3C for link layer-based LAN management, implements remote management to AGMP-capable switches in a LAN.
The management functions of AGMP include:
l Configuring the basic functions of remote switches, including saving the configuration, restoring factory default configuration, rebooting the configuration and IGMP Snooping.
l Configuring the ports of remote switches, including broadcast storm suppression, flow control, VLAN and rate limit.
l Configuring QoS settings for remote switches, including QoS trust mode and queueing scheme.
Complete these tasks to configure AGMP:
Task |
Remarks |
Optional |
|
Optional |
|
Optional |
|
Optional |
Follow these steps to enable/disable AGMP:
To do... |
Use the command... |
Remarks |
Enter system view |
system-view |
— |
Enable AGMP |
agmp enable |
By default, AGMP is enabled. |
Disable AGMP |
undo agmp enable |
— |
Follow these steps to configure basic functions for a remote switch:
To do... |
Use the command... |
Remarks |
Enter system view |
system-view |
- |
Configure loopback detection for the remote switch |
agmp { switch-id switch-id | switch-mac mac-address } loopback-detection { enable | disable } |
enable: enable the function disable: disable the function switch-id is the ID of the remote switch, mac-address is the MAC address of the remote switch. You can use the display agmp-group brief command to obtain these information. For details, refer to Displaying AGMP Configuration. Description for the parameters above applies to the following commands as well. |
Configure IGMP Snooping for the remote switch |
agmp { switch-id switch-id | switch-mac mac-address } igmp-snooing { enable | disable } |
— |
Save the configuration for the remote switch |
agmp { switch-id switch-id | switch-mac mac-address } save-config |
— |
Restore the default configuration for the remote switch |
agmp { switch-id switch-id | switch-mac mac-address } restore-default |
— |
Reboot the remote switch |
agmp { switch-id switch-id | switch-mac mac-address } reboot |
— |
The following gives an example of enabling IGMP Snooping for the remote switch whose ID is 1.
<H3C> system-view
[H3C] agmp switch-id 1 igmp-snooing enable
Follow these steps to configure Ethernet ports for a remote switch:
To do... |
Use the command... |
Remarks |
Enter system view |
system-view |
— |
Enable/disable Ethernet ports for a remote switch |
agmp { switch-id switch-id | switch-mac mac-address } port port-id { enable | disable } |
port-id: specified port ID. Description for this parameter, if any, is omitted for other commands in this section. |
Configure the broadcast suppression function |
agmp { switch-id switch-id | switch-mac mac-address } broadcast-suppression { enable | disable } |
This command applies to all ports on the remote switch. |
Configure the flow control function |
agmp { switch-id switch-id | switch-mac mac-address } flow-contrl { enable | disable } |
This command applies to all ports on the remote switch. |
Configure the line rate |
agmp { switch-id switch-id | switch-mac mac-address } port port-id line-rate { inbound | outbound } kbps |
l inbound: inbound direction l outbound: outbound direction l kbps: available values are 128, 256, 512, 1024, 2048, 4096, 8192 and 102400. |
Configure the speed and duplex mode |
agmp { switch-id switch-id | switch-mac mac-address } port port-id speed-duplex { 10full I 10half I 100full I 100half I auto } |
l 10full: 10 Mbps, full duplex l 10half: 10 Mbps, half duplex l 100full: 100 Mbps, full duplex l 100half: 100 Mbps, half duplex l auto: automatic |
Configure the Ethernet port priority |
agmp { switch-id switch-id | switch-mac mac-address } port port-id priority { low | high } |
l low: low priority l high: high priority |
Configure the Ethernet VLAN mode |
agmp { switch-id switch-id | switch-mac mac-address } port port-id link-type { tagged | untagged | transparent } |
l tagged: for inbound packets, forward them with no processing; for outbound packets with VLAN tags, forward them with no processing; for packets with no VLAN tags, append the VLAN tag of the PVID of the packet inbound port and then forward them. l untagged: For inbound packets, forward them with no processing; for outbound packets with VLAN tags, remove the tags and then forward them; for outbound packets with no VLAN tags, forward them with no processing. l transparent: Forward inbound and outbound packets with no processing. |
Configure the default VLAN ID of Ethernet ports |
agmp { switch-id switch-id | switch-mac mac-address } port port-id pvid pvid |
pvid: the default VLAN ID. |
Configure the virtual cable test (VCT) function for Ethernet ports |
agmp { switch-id switch-id | switch-mac mac-address } [ port port-id] virtual-cable-test |
— |
Reset the counters for Ethernet ports |
agmp { switch-id switch-id | switch-mac mac-address } [ port port-id ] reset-counters |
If no port ID is specified, reset the counters for all Ethernet ports on the switch. |
The following gives an example of configuring the default VLAN ID of Ethernet port 2 as 10 for the switch with the ID 1.
<H3C> system-view
[H3C] agmp switch-id 1 port 2 pvid 10
Follow these steps to configure QoS settings for a remote switch:
To do... |
Use the command... |
Remarks |
Enter system view |
system-view |
— |
Configure the priority trust mode for the remote switch |
agmp { switch-id switch-id | switch-mac mac-address } priority-trust { port I 802.1p } |
l port: the port priority is used for queueing, that is, packets are put into outgoing queues based on the corresponding port priorities. l 802.1p: the COS priority is used for queueing, that is, packets are put into outgoing queues based on the corresponding COS priorities. |
Configure the queue scheduler for the remote switch |
agmp { switch-id switch-id | switch-mac mac-address } queue-scheduler { 4:1 I 8:1 I 16:1| high-first} |
l 4:1: packets are enqueued by priority with the ratio of 4:1. l 8:1: packets are enqueued by priority with the ratio of 8:1. l 16:1: packets are enqueued by priority with the ratio of 16:1. l high-first: packets of high priority are enqueued first. |
& Note:
4:1/8:1/16:1 means that the queueing algorithm used is weighted round robin (WRR), and high-first means the queueing algorithm used is strict priority (SP).
l The WRR algorithm specifies a weight (w0, w1…) for each queue, which represents the weight of resources assigned. With 4:1 configured, if the traffic in two outgoing queues exceeds the capacity of the port, the switch will schedule the packets between the two queues in a ratio of 4:1. That is, out of every 5 packets sent by the switch, 4 are from the high priority queue and one from the low priority queue. The principle is the same for other two ratios 8:1 and 16:1.
l With the strict priority algorithm enabled, if the traffic in two queues exceeds the capacity of the port, the switch will send out packets in the high priority queue first and will send low priority packets after all high priority queues are sent.
The following gives an example of configuring the WRR queueing algorithm with the ratio 4:1 for the switch whose ID is 1.
<H3C> system-view
[H3C] agmp switch-id 1 queue-scheduler 4:1
Follow these steps to display the AGMP configuration:
To do... |
Use the command... |
Remarks |
Display the switch discovered by AGMP |
display agmp-group brief |
Available in any view |
Display the configuration information of a remote switch |
display agmp { switch-id switch-id | switch-mac mac-address } sys-info |
|
Display the configuration and status information of a specified port on a remote switch |
display agmp { switch-id switch-id | switch-mac mac-address } port port-id brief |
|
Display the configuration and basic information of all ports on a remote switch |
display agmp { switch-id switch-id | switch-mac mac-address } brief |
The following gives an example of displaying the switch discovered by AGMP.
<H3C> display agmp-group brief
Switch ID MAC Address Layer Num Local Port Uplink MAC
1 0000-e8f5-6a4a 1 1 0000-e8f5-6a44
2 0000-e8f5-6a4b 2 1 0000-e8f5-6a4a
--- 2 entries found ---
Table 8-1 display agmp group brief command output description
Field |
Description |
Switch ID |
ID of the remote switch |
MAC Address |
MAC address of the remote switch |
Layer Num |
Number of the layer that the remote switch resides at |
Local Port |
Number of the local port connected |
Uplink mac |
MAC address of the uplink switch |
The ET704-B-L provides various debugging functions covering most of the supported protocols and features, facilitating failure locating and diagnosis.
The export of debugging information can be controlled by either of the following two switches:
l Protocol debugging: controls whether to export the debugging information of a specified protocol.
l Terminal output switch: controls whether to output the debugging information to a specified user terminal.
As shown in Figure 9-1, assume that the ET704-B-L can provide debugging information for modules 1, 2 and 3. However, you need to turn both switches to on to have the debugging information displayed on the terminal.
Figure 9-1 Debugging information export
Complete the following tasks to display system debugging information:
Task |
Remarks |
Optional |
|
Optional |
|
Displaying Debugging Status |
Optional |
By performing this task, you can control the debugging for an individual protocol or all protocols.
Follow these steps to enable/disable the protocol debugging:
To do... |
Use the command... |
Remarks |
Enable protocol debugging |
debugging { all | module-name } |
Available in user view all: specifies to enable/disable debugging for all modules. module-name: name of the specified module. Available modules include igmp-snooping, dhcp-snooping, stp and agmp. By default, debugging is enabled for none of the modules. |
Disable protocol debugging |
undo debugging { all | module-name } |
— |
& Note:
System debugging affects the system operation performance. Therefore, only use the debugging function, especially the debugging all command, when it is necessary. After the debugging finishes, disable the debugging function.
Follow these steps to enable/disable terminal debugging:
To do... |
Use the command... |
Remarks |
Enable terminal debugging |
terminal debugging |
Available in user view By default, terminal debugging is not enabled. |
Disable terminal debugging |
undo terminal debugging |
— |
& Note:
Follow the step to display debugging status:
To do... |
Use the command... |
Remarks |
Display debugging status |
display debugging |
Available in any view |
& Note:
This chapter lists all the display commands supported by the ET704-B-L, through which the user can display the status and configuration information of the functional modules.
Table 10-1 Display commands and description
Module |
Command |
Description |
User interface |
display users |
Display the users on the interface |
display user-interface |
Display the status and configuration of the user interface |
|
Ethernet interface |
display interface interface-type interface-number |
Display Ethernet interface status information |
System management |
display mac-address [ mac-address | interface Ethernet interface-number | blackhole | aging-time | count ] |
Display the information of MAC address table entries learned and configured |
display saved-configuration |
Display the saved configuration |
|
display current-configuration |
Display the current configuration |
|
display version |
Display the system version information |
|
display update-record |
Display software upgrade record |
|
display device |
Display the board information of the ET704-B-L |
|
display cpu |
Display the CPU status of the ET704-B-L |
|
display tcp status |
Display the TCP connection status of the ET704-B-L |
|
display info-center |
Display the information center |
|
System debugging |
display debugging |
Display debugging status |
Interface mirroring |
display mirror |
Display Ethernet interface mirroring configuration |
DHCP |
display dhcp-client |
Display address assignment information for DHCP clients |
display dhcp-snooping |
Display the matching relationship between the user IP address and MAC address recorded through DHCP-Snooping |
|
IGMP |
display igmp-snooping configuration |
Display the current IGMP Snooping configuration |
display igmp-snooping statistics |
Display the statistics by IGMP Snooping for packets received and sent |
|
display igmp-snooping group |
Display information about IP multicast group and MAC multicast group |
|
VLAN |
display interface vlan-interface [ vlan-id ] |
Display VLAN interface information |
STP |
display stp |
Display the status of the current RSTP |
ARP |
display arp [ ip-address ] |
Display the ARP table of the ET704-B-L |
AGMP |
display agmp-group brief |
Display the switch discovered by AGMP |
display agmp { switch-id switch-id | switch-mac mac-address } sys-info |
Display the configuration information of a remote switch |
|
display agmp { switch-id switch-id | switch-mac mac-address } port port-id brief |
Display the configuration and status information of a specified port on a remote switch |
|
display agmp { switch-id switch-id | switch-mac mac-address } brief |
Display the configuration and basic information of all ports on a remote switch |