R3303-HP HSR6800 Routers Fundamentals Configuration Guide

39
Ste
p
Command
Remarks
10. Specify a command to be
automatically executed when a
user logs in to the user interfaces.
auto-execute command
command
Optional.
By default, no automatically
executed command is specified.
The command auto-execute
function is typically used for
redirecting a Telnet user to a
specific host. After executing the
specified command and
performing the incurred task, the
system automatically disconnect
the Telnet session.
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 the two devices have routes to reach each other.
Figure 16 Telnetting from the device to a Telnet server
To use the device to log in to a Telnet server:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Specify the source IPv4
address or source interface
for outgoing 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.