H3C S9500 Command Manual-Release2132[V2.03]-08 System Volume

HomeSupportSwitchesH3C S9500 Series SwitchesReference GuidesCommand ReferencesH3C S9500 Command Manual-Release2132[V2.03]-08 System Volume
14-User Interface Commands
Title Size Download
14-User Interface Commands 120.05 KB

Chapter 1  User Interface Configuration Commands

1.1.1  acl (in user interface view)

Syntax

For basic and advanced ACL, use the following commands:

acl [ ipv6 ] acl-number { inbound | outbound }

undo acl [ ipv6 ] acl-number { inbound | outbound }

For layer 2 ACL, use the following commands:

acl acl-number inbound

undo acl acl-number inbound

View

VTY user interface view

Default Level

2: System level

Parameters

ipv6: When this keyword is present, the command supports IPv6; otherwise, it supports IPv4.

acl-number: Number of access control list, in the range 2000 to 4999, where

l           2000 to 2999 are the basic ACL number

l           3000 to 3999 are the advanced ACL number

l           4000 to 4999 are the layer 2 ACL number

inbound: Controls dial-in for a user interface.

outbound: Controls dial-out for a user interface.

Description

Use the acl command to reference an ACL to control dial-in or dial-out of the current users.

Use the undo acl command to remove the ACL.

For details regarding ACL, refer to ACL Commands in the QoS ACL Volume.

By default, dial-in and dial-out of VTY users are not restricted.

Examples

# Remove the restriction on outgoing calls for VTY 0.

<Sysname> system-view

[Sysname] user-interface vty 0

[Sysname-ui-vty0] undo acl 2001 outbound

1.1.2  auto-execute command

Syntax

auto-execute command command

undo auto-execute command

View

User interface view

Default Level

3: Manage level

Parameters

command: Command to be automatically executed.

Description

Use the auto-execute command command to specify a command to be executed automatically.

Use the undo auto-execute command command to disable this feature.

By default, command auto-execution is disabled.

Note that:

The auto-execute command command is supported on all types of user interfaces except the Console port and the AUX port functioning as the console port.

Once a command is configured using the auto-execute command command, the system automatically executes the command when a user logs on from the interface where the command is configured. After the command is completed, the connection breaks automatically.

A good example is configuring the auto-execute command telnet command to let users telnet to the specified host automatically.

 

  Caution:

The auto-execute command command may disable you from configuring the system through the terminal line to which the command is applied. Therefore, before configuring the command and saving the configuration (using the save command), make sure that you can access the system by other means to remove the configuration in case a problem occurs.

 

Examples

# Automatically execute the telnet 10.10.10.1 command after a user logs on from the VTY 0 interface.

<Sysname> system-view

[Sysname] user-interface vty 0

[Sysname-ui-vty0] auto-execute command telnet 10.10.10.1

% This action will lead to configuration failure through ui-vty0. Are you sure?[

Y/N] y

[Sysname-ui-vty0]

1.1.3  authentication-mode

Syntax

authentication-mode { none | password | scheme [ command-authorization ] }

View

User interface view

Default Level

3: Manage level

Parameters

none: Performs no authentication.

password: Performs local password authentication.

scheme: Performs authorization and authentication of AAA. For details about AAA, refer to AAA RADIUS HWTACACS Configuration in the Security Volume.

command-authorization: Performs command line authorization. HWTACACS allows per-command authorization. An input command is executed only after it passes authorization. For details about HWTACACS, refer to AAA RADIUS HWTACACS Configuration in the Security Volume.

Description

Use the authentication-mode command to set the authentication mode when users log onto the device using the current user interface.

By default, the authentication mode is password for VTY and AUX user interfaces and is none for Console interfaces.

Related commands: set authentication password.

Examples

# Set that no authentication is needed when users use VTY 0 interface to log onto the device. (This mode may be insecure.)

<Sysname> system-view

[Sysname] user-interface vty 0

[Sysname-ui-vty0] authentication-mode none

# Set to use password authentication when users use VTY 0 interface to log onto the device. The authentication password is 321.

<Sysname> system-view

[Sysname] user-interface vty 0

[Sysname-ui-vty0] authentication-mode password

[Sysname-ui-vty0] set authentication password cipher 321

# Set to use username and password authentication when users use VTY 0 interface to log onto the device. The username is 123 and the authentication password is 321.

<Sysname> system-view

[Sysname] user-interface vty 0

[Sysname-ui-vty0] authentication-mode scheme

[Sysname-ui-vty0] quit

[Sysname] local-user 123

[Sysname -luser-123] password cipher 321

[Sysname -luser-123] service-type telnet level 3

1.1.4  databits

Syntax

databits { 5 | 6 | 7 | 8 }

undo databits

View

User interface view

Default Level

2: System level

Parameters

5: Five data bits.

6: Six data bits.

7: Seven data bits.

8: Eight data bits.

Description

Use the databits command to set data bits on the user interface.

Use the undo databits command to restore the default, or eight bits.

 

&  Note:

The command is only applicable to serial interfaces that work in asynchronous flow mode.

 

Examples

# Set data bits to 7.

<Sysname> system-view

[Sysname] user-interface aux 0

[Sysname-ui-aux0] databits 7

1.1.5  debugging modem

Syntax

debugging modem

View

User view

Default Level

1: Monitor level

Parameters

None

Description

Use the debugging modem command to enable debugging of Modem.

Based on debugging output, you can verify the correctness of Modem scripts of specific events.

Examples

# Enable debugging of Modem.

<Sysname> debugging modem

1.1.6  debugging vty

Syntax

debugging vty { fsm | negotiate }

undo debugging vty { fsm | negotiate }

View

User view

Default Level

1: Monitor level

Parameters

fsm: Enables/disables debugging of Telnet state machine.

negotiate: Enables/disables debugging of VTY negotiation.

Description

Use the debugging vty command to enable debugging of VTY.

Use the undo debugging vty command to disable debugging of VTY.

Examples

# Enable debugging of VTY negotiation.

<Sysname> debugging vty negotiate

1.1.7  display telnet client configuration

Syntax

display telnet client configuration

View

Any view

Default Level

1: Monitor level

Parameters

None

Description

Use the display telnet client configuration command to display the related configuration information when the device serves as the Telnet client.

At present, the command displays the source IP address or source interface information of the Telnet client.

Related commands: telnet client source.

Examples

# Display the related configuration information when the device serves as the Telnet client.

<Sysname> display telnet client configuration

 The source IP address is 1.1.1.1.

1.1.8  display user-interface

Syntax

display user-interface [ num1 | { aux | console | vty } num2 ] [ summary ]

View

Any view

Default Level

1: Monitor level

Parameters

num1: Absolute number of a user interface. The value range normally starts from 0.

num2: Relative number of a user interface, in the following rules:

l           For the AUX port, the value is 0.

l           For the Console port, the value is 0.

l           For VTY user interfaces, the value ranges from 0 to 4.

summary: Displays summary about user interfaces.

Description

Use the display user-interface command to view information about the specified or all user interfaces.

l           If the summary keyword is absent, the command displays the type of the user interface, the absolute or relative number, the speed, the user privilege level, the authentication mode and the physical location.

l           If the summary keyword is present, the command displays all the number and type of user interfaces.

Examples

# Display information about user interface 0.

<Sysname> display user-interface 0

  Idx  Type     Tx/Rx      Modem Privi Auth  Int

+ 0    CON 0    9600       -     3     N     -

 

  +    : Current user-interface is active.

  F    : Current user-interface is active and work in async mode.

  Idx  : Absolute index of user-interface.

  Type : Type and relative index of user-interface.

  Privi: The privilege of user-interface.

  Auth : The authentication mode of user-interface.

  Int  : The physical location of UIs.

  A    : Authentication use AAA.

  L    : Authentication use local database.

  N    : Current UI need not authentication.

  P    : Authentication use current UI's password.

Table 1-1 display user-interface command output description

Field

Description

+

The current user interface is active.

F

The current user interface is active and works in asynchronous mode.

Idx

The absolute number of the user interface.

Type

The type and relative number of the user interface.

Tx/Rx

The speed of the user interface

Modem

Whether the modem is allowed to dial in (in), dial out (out), or both (inout)

By default, the character - is displayed to indicate that this function is disabled.

Privi

Indicates the command level of a user under that user interface

Auth

The authentication mode, uses one of the following, AAA (A), current user interface password (P), local database (L), none authentication (N).

Int

The physical location of the user interfaces

 

# Display summary about all user interfaces.

<Sysname> display user-interface summary

  User interface type : [CON]

            0:U

  User interface type : [AUX]

            1:X

  User interface type : [VTY]

            2:XXXX X

 

    1 character mode users.      (U)

    6 UI never used.             (X)

    1 total UI in use

Table 1-2 display user-interface summary command output description

Field

Description

User interface type

Type of user interface (CON/AUX/VTY)

0:U

0 represents the absolute number of the user interface. X means this user interface is not used;  U means this user interface is in use; the number of the character X and U indicates the total number of user interfaces.

character mode users.     (U)

Number of mode users, that is, the number of character U.

UI never used.             (X)

Number of user interfaces not used, that is, the number of character X.

total UI in use

Total number of user interfaces in use

 

1.1.9  display users

Syntax

display users [ all ]

View

Any view

Default Level

1: Monitor level

Parameters

all: Displays information about users on all user interfaces.

Description

Use the display users command to view the user information using the device.

Use the display users all command to view the user information of all the user interfaces supported on the device.

Examples

# Display the user information of the current user interface.

<Sysname> display users

The user application information of the user interface(s):

  Idx UI      Delay   Type Userlevel

+ 0   CON 0   00:00:00      3

  2   VTY 0   00:05:09 TEL  3

 

Following are more details.

VTY 0   :

        Location: 192.168.1.54

VTY 1   :

        Location: 100.0.0.3

 +    : Current operation user.

 F    : Current operation user work in async mode.

Table 1-3 display users command output description

Field

Description

Idx

Absolute number of the user interface

UI

Relative number of the user interface

Delay

Interval since the last input, in the format of hh:mm:ss.

Type

User type, such as Telnet or SSH

Userlevel

User authority or level: 0 for visit, 1 for monitor, 2 for system, and 3 for manage.

+

User interface used by the current user

Location

Location of the user logging from the current user interface

F

The current user works in asynchronous mode

 

1.1.10  flow-control

Syntax

flow-control { hardware | software | none }

undo flow-control

View

User interface view

Default Level

2: System level

Parameters

hardware: Hardware flow control , valid on the AUX port user interfaces only.

software: Software flow control.

none: No flow control.

Description

Use the flow-control command to configure flow control mode.

Use the undo flow-control command to restore the default.

By default, the flow control mode is none, that is, without flow control.

 

&  Note:

The command is only applicable to serial interfaces that work in asynchronous flow mode.

 

Examples

# Configure software flow control in user interface view.

<Sysname> system-view

[Sysname] user-interface console 0

[Sysname-ui-console0] flow-control software

1.1.11  free user-interface

Syntax

free user-interface { num1 | { aux | console | vty } num2 }

View

User view

Default Level

3: Manage level

Parameters

num1: Absolute number of a user interface. The value range normally starts from 0.

num2: Relative number of a user interface, in the following rules:

l           For the AUX port, the value is 0.

l           For the Console port, the value is 0.

l           For VTY user interfaces, the value ranges from 0 to 4.

Description

Use the free user-interface command to disconnect with the specified user interface.

Note that you cannot use this command to terminate your own connection.

Examples

# Terminate the connection with user interface VTY1.

<Sysname> free user-interface vty 1

Are you sure to free user-interface vty1

[Y/N] y

<Sysname>

# Terminate the connection with user interface VTY 0.

<Sysname> free user-interface vty 0

% Not allowed to clear current UI!

1.1.12  history-command max-size

Syntax

history-command max-size size-value

undo history-command max-size

View

User interface view

Default Level

2: System level

Parameters

size-value: History buffer size in the range 0 to 256. It defaults to 10, that is, up to ten history commands can be stored.

Description

Use the history-command max-size command to set the size of history command buffer of the current user interface.

Use the undo history-command max-size command to restore the default, or 10.

Examples

# Set the size of the history command buffer to 20.

<Sysname> system-view

[Sysname] user-interface console 0

[Sysname-ui-console0] history-command max-size 20

1.1.13  idle-timeout

Syntax

idle-timeout minutes [ seconds ]

undo idle-timeout

View

User interface view

Default Level

2: System level

Parameters

minutes: Specifies timeout time in minutes, in the range 0 to 35791.

seconds: Specifies timeout time in seconds, in the range 0 to 59.

Description

Use the idle-timeout command to set the idle-timeout timer. When it expires, the user connection is terminated.

Use the undo idle-timeout command to restore the default.

The default idle-timeout is 10 minutes.

 

&  Note:

l      The system automatically terminates user’s connection if there is no information interaction between the device and the user in timeout time.

l      Setting idle-timeout to zero disables the timer and the connection is maintained whether it is idle or not.

 

Examples

# Set the idle-timeout timer to 1 minute and 30 seconds.

<Sysname> system-view

[Sysname] user-interface console 0

[Sysname-ui-console0] idle-timeout 1 30

1.1.14  lock

Syntax

lock

View

User view

Default Level

3: Manage level

Parameters

None

Description

Use the lock command to set a password to prevent unauthorized users from operating under the active user interface.

After entering the lock command, you are prompted to input a password and then confirm it by inputting the password again. The password is successfully set only when you input the exact password during the confirmation. After setting the password, you will be required to input the password next time you enter the system.

By default, this function is disabled.

Examples

# Lock the active user interface.

<Sysname> lock

Please input password<1 to 16> to lock current user terminal interface:

Password:

Again:

 

 

 

 

 

 

 

                   locked !

 

 

 

 

 

Password:

<Sysname>

1.1.15  modem

Syntax

modem [ call-in | call-out | both ]

undo modem [ call-in | call-out | both ]

View

User interface view

Default Level

2: System level

Parameters

call-in: Enables dial in.

call-out: Enables dial out.

both: Enables both dial in and dial out.

Description

Use the modem command to enable the modem to dial in or dial out.

Use the undo modem command to disable this function.

By default, dial in and dial out are disabled on the modem.

 

&  Note:

This command takes effect on the AUX and VTY ports only, and cannot be applied to the Console port.

 

Examples

# Set the modem dial in/out attribute on VTY 1.

<Sysname> system-view

[Sysname] user-interface vty 1

[Sysname-ui-vty1] modem call-in

1.1.16  modem auto-answer

Syntax

modem auto-answer

undo modem auto-answer

View

User interface view

Default Level

2: System level

Parameters

None

Description

Use the modem auto-answer command to set the answering mode to auto-answer.

Use the undo modem auto-answer command to restore the default, or manual answer.

 

&  Note:

This command takes effect on the AUX port and other asynchronous interfaces only, and cannot be applied to the Console port.

 

Examples

# Set the answering mode to auto-answer.

<Sysname> system-view

[Sysname] user-interface aux 0

[Sysname-ui-aux0] modem auto-answer

1.1.17  modem timer answer

Syntax

modem timer answer time

undo modem timer answer

View

User interface view

Default Level

2: System level

Parameters

time: Timeout time in the range 1 to 60 seconds.

Description

Use the modem timer answer command to set the timeout interval spent waiting for the carrier signal after the off-hook action when setting up an incoming call connection.

Use the undo modem timer answer command to restore the default, or 30 seconds.

 

&  Note:

This command takes effect on the AUX port and other asynchronous interfaces only, and cannot be applied to the Console port.

 

Examples

# Set the timeout interval to 50 seconds.

<Sysname> system-view

[Sysname] user-interface aux 0

[Sysname-ui-aux0] modem timer answer 50

1.1.18  parity

Syntax

parity { none | even | odd | mark | space }

undo parity

View

User interface view

Default Level

2: System level

Parameters

none: No parity check.

even: Even parity check.

odd: Odd parity check.

mark: Mark parity check.

space: Space parity check.

Description

Use the parity command to set the check bit of the user interface.

Use the undo parity command to restore the default, or none.

 

&  Note:

The command is only applicable to serial interfaces that work in the asynchronous flow mode.

 

Examples

# Perform odd parity check on the AUX interface.

<Sysname> system-view

[Sysname] user-interface aux 0

[Sysname-ui-aux0] parity odd

1.1.19  protocol inbound

Syntax

protocol inbound { all | ssh | telnet }

View

VTY user interface view

Default Level

3: Manage level

Parameters

all: Supports all the protocols, including Telnet and SSH.

ssh: Supports SSH only.

telnet: Supports Telnet only.

Description

Use the protocol inbound command to enable the current user interface to support either Telnet, PAD, SSH, or all of them.

By default, all the protocols are supported.

The configuration takes effect next time you log in.

 

  Caution:

l      If SSH is configured, you must set the authentication mode to scheme using the authentication-mode scheme command to guarantee a successful login. The protocol inbound ssh command fails if the authentication mode is password or none. Related commands: authentication-mode.

l      By default, the authentication mode of the Telnet protocol is password.

 

Examples

# Enable the VTYs 0 through 4 to support SSH only.

<Sysname> system-view

[Sysname] user-interface vty 0 4

[Sysname-ui-vty0-4] authentication-mode scheme

[Sysname-ui-vty0-4] protocol inbound ssh

1.1.20  screen-length

Syntax

screen-length screen-length

undo screen-length

View

User interface view

Default Level

2: System level

Parameters

screen-length: Number of lines displayed on the screen, in the range 0 to 512, with zero meaning to disable multiple-screen output.

Description

Use the screen-length command to set the number of lines displayed on the terminal screen.

Use the undo screen-length command to restore the default, or 24 lines.

Examples

# Set the number of lines on the terminal screen to 30.

<Sysname> system-view

[Sysname] user-interface console 0

[Sysname-ui-console0] screen-length 30

1.1.21  send

Syntax

send { all | num1 | { aux | console | vty } num2 }

View

User view

Default Level

1: Monitor level

Parameters

all: Sends messages to all user interfaces.

num1: Absolute number of a user interface. The value range normally starts from 0.

num2: Relative number of a user interface, in the following rules:

l           For the AUX port, the value is 0.

l           For the Console port, the value is 0.

l           For VTY user interfaces, the value ranges from 0 to 4.

Description

Use the send command to send messages to the specified user interface(s).

Press <Ctrl+Z> to end message input and press <Ctrl+C> to remove this operation when inputting messages.

Examples

# Send the message hello abc to the Console user interface.

<Sysname> send console 0

Enter message, end with CTRL+Z or Enter; abort with CTRL+C:

hello abc^Z

Send message? [Y/N]y

<Sysname>

 

***

***

***Message from con0 to con0

***

hello abc

 

 

<Sysname>

1.1.22  service modem-callback

Syntax

service modem-callback

undo service modem-callback

View

System view

Default Level

3: Manage level

Parameters

None

Description

Use the service modem-callback command to enable the modem callback function.

Use the undo service modem-callback command to disable the modem callback function.

By default, the function is disabled.

With the function enabled, a modem calls back once the modem line is activated (that is, it detects carriers or data from the peer device). In this case, no accounting system has been started yet, thus saving communication fees.

Examples

# Enable the modem callback function.

<Sysname> system-view

System View: return to User View with Ctrl+Z.

[Sysname] service modem-callback

1.1.23  service-type telnet

Syntax

service-type telnet [ level level ]

undo service-type telnet

View

User view

Default Level

3: Manage level

Parameters

level: Command level available to a user logging in, in the range 0 to 3, and defaults to 2.

Description

Use the service-type telnet command to configure the command level available to a user logging in.

Use the undo service-type telnet command to restore the default.

There are four command levels: visit, monitor, system, and manage.

l           Visit: involves commands for network diagnosis, such as ping and tracert, and command telnet. Saving the configuration file is not allowed at this level.

l           Monitor: includes the display and debugging commands for system maintenance and service fault diagnosis. Saving the configuration file is not allowed at this level.

l           System: provides service configuration commands including routing and commands at each level of the network for providing services.

l           Manage: Commands at this level concern file system, file transfer protocol (FTP), trivial file transfer protocol (TFTP), downloading using XModem, user management, and level setting, which influence the basic operation of the system and the system support modules for service support.

Examples

# Configure the command level to 0 for the user zbr after he logs in.

<Sysname> system-view

System View: return to User View with Ctrl+Z.

[Sysname] local-user zbr

[Sysname-luser-zbr] service-type telnet level 0

1.1.24  set authentication password

Syntax

set authentication password { simple | cipher } password

undo set authentication password

View

User interface view

Default Level

3: Manage level

Parameters

simple: Plain text password.

cipher: Cipher text password.

password: A case sensitive string. If the password format is set to simple, the password argument must be in plain text. If it is set to cipher, password can be either in cipher text or in plain text depending on what has been input. A plain text password can be a string of no more than 16 consecutive characters, 1234567 for example. A cipher text password, or the encrypted version of the plain text password, comprises 24 characters, such as _(TT8F]Y\5SQ=^Q`MAF4<1!!.

Description

Use the set authentication password command to set a local authentication password.

Use the undo set authentication password command to remove the local authentication password.

No local authentication password is set by default.

l           When setting a password, you should specify simple to save it in plain text in the configuration file, or specify cipher to save it in cipher text.

l           Whether the password format is plain text or cipher text, you must type in plain text password at authentication.

l           Plain text password easily gets cracked. Therefore, you are recommended to use cipher text password.

By default, Telnet users must provide passwords at login, that is, the authentication-mode password command applies. If no password is configured, the following information appears:

Login password has not been set !

Related commands: authentication-mode.

Examples

# Set the local authentication password for the user interface Console 0 to hello.

<Sysname> system-view

[Sysname] user-interface console 0

[Sysname-ui-console0] authentication-mode password

[Sysname-ui-console0] set authentication password simple hello

After setting the password, you will be required to input the password next time you enter the system.

1.1.25  shell

Syntax

shell

undo shell

View

User interface view

Default Level

3: Manage level

Parameters

None

Description

Use the shell command to enable terminal services on the user interface.

Use the undo shell command to disable this function.

By default, terminal services are enabled on all user interfaces.

There are a few restrictions on using the undo shell command:

l           This command is not supported on the Console port.

l           This command is not supported on the AUX port if the device has only a AUX port and no Console port.

l           This command cannot be used on the user interface from which you log in.

Examples

# Disable terminal services on the VTYs 0 through 4.

<Sysname> system-view

[Sysname] user-interface vty 0 4

[Sysname-ui-vty0-4] undo shell

% Disable ui-vty0-4 , are you sure ? [Y/N] y

[Sysname-ui-vty0-4]

1.1.26  speed (in user interface view)

Syntax

speed speed-value

undo speed

View

User interface view

Default Level

2: System level

Parameters

speed-value: Transmission rate in bps.

The transmission rates available with asynchronous serial interfaces include:

l           300 bps

l           600 bps

l           1200 bps

l           2400 bps

l           4800 bps

l           9600 bps

l           19200 bps

l           38400 bps

l           57600 bps

l           115200 bps

Description

Use the speed command to set the transmission rate on the user interface.

Use the undo speed command to restore the default transmission rate.

By default, the transmission rate is 9600 bps.

 

&  Note:

The command is only applicable to serial interfaces that work in asynchronous flow mode.

 

Examples

# Set the transmission rate on the user interface AUX 0 to 19200 bps.

<Sysname> system-view

[Sysname] user-interface aux 0

[Sysname-ui-aux0] speed 19200

1.1.27  stopbits

Syntax

stopbits { 1.5 | 1 | 2 }

undo stopbits

View

User interface view

Default Level

2: System level

Parameters

1.5: 1.5 stop bits.

1: 1 stop bit.

2: 2 stop bits.

Description

Use the stopbits command to set the stop bits on the user interface.

Use the undo stopbits command to restore the default, or one stop bit.

 

&  Note:

l      The command is only applicable to serial interfaces that work in asynchronous flow mode.

l      Currently, the S9500 series routing switches do not support 1.5 stop bits.

 

Examples

# Set the stop bits on the user interface to 2.

<Sysname> system-view

[Sysname] user-interface aux 0

[Sysname-ui-aux0] stopbits 2

1.1.28  telnet

Syntax

telnet [ vpn-instance vpn-instance-name ] { hostname | ip-address } [ service-port ] [ source { interface interface-type interface-number | ip  ip-address } ]

View

User view

Default Level

0: Visit level

Parameters

vpn-instance vpn-instance-name: Specifies the name of an MPLS VPN instance, with vpn-instance-name being a string of 1 to 19 characters.

hostname: Host name of the remote switch, which has been configured with the ip host command.

ip-address: IP address of the remote switch.

service-port: Number of the TCP port providing the Telnet service on the remote switch, in the range 0 to 65535.

interface interface-type interface-number: Specifies the source interface, which can only be a VLAN one.

ip ip-address: Specifies the source IP address.

Description

Use the telnet command to log in to other switches for remote management.

Press <Ctrl+k> to end the current Telnet login.

By default, the service port number is 23 if service-port is not specified.

Related commands: display tcp status, ip host.

Examples

# Telnet a remote switch Sysname2 from the current switch Sysname1 with the IP address being 129.102.0.1.

<Sysname1> telnet 129.102.0.1

Trying 129.102.0.1...

Press CTRL+K to abort

Connected to 129.102.0.1...

<Sysname2>

1.1.29  telnet client source

Syntax

telnet client source { interface interface-type interface-number | ip ip-address }

undo telnet client source

View

System view

Default Level

2: System level

Parameters

interface interface-type interface-number: Specifies the source interface for sending Telnet packets, where interface-type interface-number represents the interface type and number.

ip ip-address: Specifies the source IP address for sending Telnet packets.

Description

Use the telnet client source command to specify the source IP address or source interface for sending Telnet packets when the device serves as the Telnet client.

Use the undo telnet client source command to remove the configuration.

By default, no source IP address or source interface for sending Telnet packets is specified.

Note that:

l           The source IP address or source interface specified by this command is applicable to all Telnet connections.

l           If you use both this command and the telnet command to specify the source IP address or source interface, the source IP address or interface specified by the telnet command takes effect.

Examples

# Specify the source IP address for sending Telnet packets as 1.1.1.1 when the device serves as the Telnet client.

<Sysname> system-view

[Sysname] telnet client source ip 1.1.1.1

1.1.30  telnet ipv6

Syntax

telnet ipv6 remote-host [ -i interface-type interface-number ] [ port-number ]

View

User view

Default Level

0: Visit level

Parameters

remote-host: IP address or host name of a remote system, a string of 1 to 46 characters, case insensitive.

-i interface-type interface-number: Specifies the outbound interface for sending Telnet packets, where interface-type interface-number represents the interface type and number. You need to provide the –i interface-type interface-number argument if the destination address is a link-local address.

port-number: TCP port number for the remote system to provide Telnet services. It ranges from 0 to 65535 and defaults to 23.

Description

Use the telnet ipv6 command to telnet a remote host to remotely manage the host in an IPv6 network.

Examples

# Telnet the remote host with the IPv6 address 5000::1.

<Sysname> telnet ipv6 5000::1

1.1.31  telnet server enable

Syntax

telnet server enable

undo telnet server enable

View

System view

Default Level

3: Manage level

Parameters

None

Description

Use the telnet server enable command to enable Telnet services.

Use the undo telnet server enable command to disable Telnet services.

Telnet services are disabled by default.

 

  Caution:

To Telnet to a remote device, you need to log in to the device through the console port to enable Telnet services.

 

Examples

# Enable Telnet services.

<Sysname> system-view

[Sysname] telnet server enable

1.1.32  terminal type

Syntax

terminal type { ansi | vt100 }

undo terminal type

View

User interface view

Default Level

2: System level

Parameters

ansi: Specifies the terminal display type as ANSI.

vt100: Specifies the terminal display type as VT100.

Description

Use the terminal type command to configure the type of terminal display.

Use the undo terminal type command to restore the default.

By default, the terminal display type is ANSI.

Note that the system supports two types of terminal display: ANSI and VT100. If the terminal display of the device and the client (for example, hyper terminal or Telnet terminal) is inconsistent or is set to ANSI, and if the total number of the characters of the currently using command line exceeds 80, anomalies such as cursor corruption or abnormal display of the terminal display may occur on the client. Therefore, you are recommended to set the display type of both the device and the client to VT100.

Examples

# Set the terminal display type to VT100.

<Sysname> system-view

[Sysname] user-interface vty 0

[Sysname-ui-vty0] terminal type vt100

1.1.33  user privilege level

Syntax

user privilege level level

undo user privilege level

View

User interface view

Default Level

3: Manage level

Parameters

level: Command level in the range 0 to 3.

 

&  Note:

Command level is divided into four levels of visit, monitor, system, and manage, corresponding to the number 0, 1, 2 and 3 respectively. The administrator can change the command level of a user when necessary.

 

Description

Use the user privilege level command to configure the command level that the login users on the current user interface can access.

Use the undo user privilege level command to restore the default.

By default, the default command level is 3 for the Console user interface and 0 for other user interfaces.

Examples

# Set the privilege level of the user logging in from VTY 0 to 0.

<Sysname> system-view

[Sysname] user-interface vty 0

[Sysname-ui-vty0] user privilege level 0

# After the user telnets to the device from VTY 0, the terminal will only display level 0 commands, as follows:

<Sysname> ?

User view commands:

  ping           Send echo messages

  quit           Exit from current command view

  super          Privilege current user a specified priority level

  telnet         Establish one TELNET connection

  tracert        Trace route function

  undo           Undo a command or set to its default status

<Sysname>

# Enable user 1 to access level 3 commands.

<Sysname> system-view

[Sysname] local-user user1

New local user added.

[Sysname-luser-user1] level 3

1.1.34  user-interface

Syntax

user-interface { first-num1 [ last-num1 ] | { aux | console | vty } first-num2 [ last-num2 ] }

View

System view

Default Level

2: System level

Parameters

first-num1: Absolute number of the first user interface. The value range normally starts from 0.

last-num1: Absolute number of the last user interface. The value range normally starts from 0, but cannot be smaller than the first-num1.

first-num2: Relative number of the first user interface, in the following rules:

l           For the AUX port, the value is 0.

l           For the Console port, the value is 0.

l           For VTY user interfaces, the value ranges from 0 to 4.

last-num2: Relative number of the last user interface, in the following rules:

l           For VTY user interfaces, the value ranges from ( first-num2+1 ) to 4.

Description

Use the user-interface command to enter a single or multiple user interface view(s).

Examples

# Enter Console user interface view.

<Sysname> system-view

[Sysname] user-interface console 0

[Sysname-ui-console0]

# Enter the user interface view of VTY 0 to 3.

<Sysname> system-view

[Sysname] user-interface vty 0 3

[Sysname-ui-vty0-3]

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网