The telnet server-source command specifies a source interface for a Telnet server.
The undo telnet server-source command restores the default setting.
The telnet server-source physic-isolate command specifies the isolated source interface of the Telnet server.
The undo telnet server-source physic-isolate command cancels the isolation of the source interface of the Telnet server.
By default, the source interface of a Telnet server is not specified.
telnet server-source -i { interface-type interface-number | interface-name }
telnet server-source all-interface
telnet server-source physic-isolate -i { interface-type interface-number | interface-name } -a ip-address
undo telnet server-source -i { interface-type interface-number | interface-name }
undo telnet server-source all-interface
undo telnet server-source physic-isolate -i { interface-type interface-number | interface-name } -a ip-address
Parameter | Description | Value |
---|---|---|
interface-type interface-number |
Specifies the source interface type and interface number of a Telnet server. |
- |
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. |
- |
-a ip-address |
Specifies the source IP address. |
The value is in the decimal format. |
Usage Scenario
To improve system security, you can run the telnet server-source command to specify a source interface address for the Telnet server. Then only authorized users can log in to the Telnet server.
Prerequisites
A loopback interface has been created if you want to specify it as the source interface of a Telnet server using the telnet server-source command. Otherwise, the command cannot be executed.
Configuration Impact
After the source interface is specified, the system only allows Telnet users to log in to the Telnet server through this source interface, 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] interface loopback 0 [~HUAWEI-LoopBack0] ip address 10.1.1.1 24 [*HUAWEI-LoopBack0] quit [*HUAWEI] telnet server-source -i Loopback 0
<HUAWEI> system-view [~HUAWEI] telnet server-source all-interface
<HUAWEI> system-view [~HUAWEI] telnet server-source physic-isolate -i GigabitEthernet 0/1/0 -a 10.1.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.