HP 6125G HP 6125G & 6125G/XG Blade Switches Fundamentals Configuration - Page 45

Using the device to log in to a Telnet server

Page 45 highlights

Step Command 11. Specify a command to be automatically executed when a auto-execute command user logs in to the user interfaces. command Remarks 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: Step 1. Enter system view. Command system-view Remarks N/A Optional. 2. Specify a source IPv4 address telnet client source { interface By default, no source IPv4 address or source interface for interface-type interface-number | ip or source interface is specified. outgoing Telnet packets. ip-address } The IP address of the outbound interface is used as the 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 ] Use either command. 39

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135

39
Step
Command
Remarks
11.
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:
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Specify a 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 IP address of the outbound
interface is used as the 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
]
Use either command.