The telnet ipv6 server-source command specifies an IPv6 address for a Telnet server.
The undo telnet ipv6 server-source command restores the default setting.
The telnet ipv6 server-source physic-isolate command specifies the isolated source interface of the Telnet server.
The undo telnet ipv6 server-source physic-isolate command cancels the isolation of the source interface of the Telnet server.
By default, the source IPv6 address of a Telnet server is not specified.
telnet ipv6 server-source -a ipv6-address [ -vpn-instance vpn-instance-name ]
telnet ipv6 server-source all-interface
telnet ipv6 server-source physic-isolate -i { interface-type interface-num | interface-name } -a ipv6-address
undo telnet ipv6 server-source -a ipv6-address [ -vpn-instance vpn-instance-name ]
undo telnet ipv6 server-source all-interface
undo telnet ipv6 server-source physic-isolate -i { interface-type interface-num | interface-name } -a ipv6-address
Parameter | Description | Value |
---|---|---|
-vpn-instance vpn-instance-name |
Specifies the VPN. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string. |
all-interface |
Indicates that any interface having an IP address configured can be used as the source interface of a Telnet server. |
- |
-i interface-name |
Specifies the source interface name of a Telnet server. |
- |
interface-type interface-num |
Specifies the source interface type and interface number of a Telnet server. |
- |
-a ipv6-address |
Specifies the source IPv6 address. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
Usage Scenario
After a restart with non-base configuration, a Telnet server receives login requests from all interfaces and addresses, leading to low system security. To improve system security, you can run the telnet server-source command to specify a source interface or source IPv6 address for the telnet server. Then only authorized users can log in to the Telnet server.
Prerequisites
A VPN instance has been created before you specify it for a Telnet server using the telnet ipv6 server-source-aipv6-address [ -vpn-instancevpn-instance-name ] command. Otherwise, the command cannot be executed.
Configuration Impact
After the source IPv6 address is specified, the system only allows Telnet users to log in to the Telnet server through this source ipv6 address, and Telnet users logging in through other interfaces are denied. Note that setting this parameter only affects Telnet users that attempt to log in to the Telnet server, and it does not affect Telnet users that have logged in to the server.
Precautions
<HUAWEI> system-view [~HUAWEI] telnet ipv6 server-source -a 2001:db8:1::1
<HUAWEI> system-view [~HUAWEI] telnet ipv6 server-source all-interface
<HUAWEI> system-view [~HUAWEI] telnet ipv6 server-source physic-isolate -i GigabitEthernet 0/1/0 -a 2001:db8:1::1 Warning: Telnet server source configuration will take effect in the next login. Do you want to continue? [Y/N]:y Info: Succeeded in setting the source interface of the Telnet server to GigabitEthernet0/1/0.