beautypg.com

Using the device to log in to a telnet server – H3C Technologies H3C SecPath F1000-E User Manual

Page 35

background image

27

Step Command

Remarks

11.

Specify a command to be
automatically executed when a

user logs in to the current user

interface

auto-execute command

command

Optional.
By default, command

auto-execution is disabled.
The system automatically executes
the specified command when a

user logs in to the user interface,

and ends the user connection after
the command is executed. If the

command triggers another task,

the system does not end the user

connection until the task is
completed. A Telnet command is

usually specified to enable the user

to automatically Telnet to the
specified device.

Using the device to log in to a Telnet server

You can use the device as a Telnet client to log in to a Telnet server. If the server is located in a different

subnet than the device, make sure that the two devices have routes to reach each other.

Figure 19 Telnetting from the device to a Telnet server

To use the device to log in to a Telnet server:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Specify the source IPv4
address or source

interface for sending
Telnet packets.

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

Optional.
By default, no source IPv4 address
or source interface is specified.

The device automatically selects a

source IPv4 address.

3.

Exit to user view.

quit

N/A

4.

Use the device to log in

to a Telnet server.

Log in to an IPv4 Telnet server:

telnet remote-host [ service-port ]
[ [ vpn-instance vpn-instance-name ]

| [ source { interface interface-type

interface-number | ip ip-address } ] ]

Log in to an IPv6 Telnet server:

telnet ipv6 remote-host [ -i

interface-type interface-number ]
[ port-number ] [ vpn-instance

vpn-instance-name ]

Use either command.