This section describes Telnet operation for IPv6 on the switch. For IPv4 Telnet operation, see the management and configuration guide for your switch.
Syntax:
Outbound Telnet establishes a Telnet session from the switch CLI to another IPv6 device and includes these options.
Telnet for link-local addresses on the same VLAN requires the link-local address and interface scope:
: Specifies the link-local IPv6 address of the destination device.
<link-local–addr>
%vlan
: Suffix specifying the interface on which the destination device is located. No spaces are allowed in the suffix.<vid>
Telnet for global unicast addresses requires a global unicast address for the destination. Also, the switch must be receiving RAs from an IPv6 gateway router.
<global–unicast–addr>
: Specifies the global IPv6 address of the destination device.For switches that have a separate out-of-band management port, the
oobm
parameter specifies that the Telnet traffic will go out from the out-of-band management interface. If this parameter is not specified, the Telnet traffic goes out from the data interface. The oobm parameter is not available on switches that do not have a separate out-of-band management port. For more information on out-of-band management, see the management and configuration guide for your switch.
Telnet to another device
To Telnet to another IPv6 device having a link-local address of fe80::215:60ff:fe79:8980 and on the same VLAN interface (VLAN 10), use the following command:
If the switch is receiving RAs from an IPv6 default gateway router, you can Telnet to a device on the same VLAN or another VLAN or subnet by using its global unicast address.
To Telnet to a device having an IPv6 global unicast address of 2001:db8::215:60ff:fe79:980, enter the following command:
Syntax:
This command shows the active incoming and outgoing Telnet sessions on the switch (for both IPv4 and IPv6). Command output includes the following:
Output for show telnet with three sessions active shows that the switch is running one outbound IPv4 session and is being accessed by two inbound sessions.
Output for show telnet
with three sessions active
HP Switch# show telnet Telnet Activity –––––––––––––––––––––––––––––––––––––––––––––––––––– Session : 1 Privilege: Manager From : Console To : 10.0.10.140 –––––––––––––––––––––––––––––––––––––––––––––––––––– Session : 2 Privilege: Manager From : 2620:0:260:212::2:219 To : –––––––––––––––––––––––––––––––––––––––––––––––––––– Session : ** 3 Privilege: Manager From : fe80::2:101 To :
The ** in “Session:” indicates the session through which show telnet
was run.
Syntax:
This command is used at the global config level to enable (the default) or disable all (IPv4 and IPv6) inbound Telnet access to the switch.
The
no
form of the command disables inbound telnet.The
listen
parameter is available only on switches that have a separate out-of-band management port. Values for this parameter are:
oobm
— inbound Telnet access is enabled only on the out-of-band management port.
data
— inbound Telnet access is enabled only on the data ports.
both
— inbound Telnet access is enabled on both the out-of-band management port and on the data ports. This is the default value.The
listen
parameter is not available on switches that do not have a separate out-of-band management port.For more information on out-of-band management, see the management and configuration guide for your switch.
For example, to disable IPv4 and IPv6 Telnet access to the switch, you would use this command:
Syntax:
This command shows the current configuration of IPv4 and IPv6 inbound Telnet permissions, as well as other information. For both protocols, the default setting allows inbound sessions.
Output for show console
showing default console configuration
HP Switch(config)# show console Console/Serial Link Inbound Telnet Enabled [Yes] : Yes Web Agent Enabled [Yes] : Yes Terminal Type [VT100] : VT100 Screen Refresh Interval (sec) [3] : 3 Displayed Events [All] : All Baud Rate [Speed Sense] : speed-sense Flow Control [XON/XOFF] : XON/XOFF Session Inactivity Time (min) [0] : 0