IPv6 Telnet operations

This section describes Telnet operation for IPv6 on the switch. For IPv4 Telnet operation, see the management and configuration guide for your switch.

Using outbound Telnet to another device

Syntax:

telnet <link-local–addr> %vlan <vid> [oobm]

telnet <global–unicast–addr> [oobm]

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:

    <link-local–addr> : Specifies the link-local IPv6 address of the destination device.

    %vlan <vid> : Suffix specifying the interface on which the destination device is located. No spaces are allowed in the suffix.

  • 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:

HP Switch(config)# telnet fe80::215:60ff:fe79:980%vlan10

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:

HP Switch(config)# telnet 2001:db8::215:60ff:fe79:980

Viewing the current telnet activity on a switch

Syntax:

show telnet

This command shows the active incoming and outgoing Telnet sessions on the switch (for both IPv4 and IPv6). Command output includes the following:

Session : The session number. The switch allows one outbound session and up to five inbound sessions.

Privilege : Manager or Operator.

From : Console (for outbound sessions) or the source IP address of the inbound session.

To : The destination of the outbound session, if in use.

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.

Enabling or disabling inbound Telnet access

Syntax:

[no] telnet-server [listen <oobm | data | both>]

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:

HP Switch(config)# no telnet-server

Viewing the current inbound Telnet configuration

Syntax:

show console

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

Inbound Telnet Setting for IPv4 and IPv6 Telnet is Yes