2014年1月2日星期四

How Do I Configure the Telnet Login Function?

How Do I Configure the Telnet Login Function? The common problem when you are using the switch, here will tell you the details:

You can log in to a switch through Telnet only when the switch has an IP address and the VTY user authentication method and VTY user level have been configured. By default, the preceding configurations are unavailable on the switch, and you must log in to the switch through the console interface and complete the configurations.

Perform the following configurations:
1. Set a management IP address for the switch, I use the switch S5700-28P-LI-AC and S5700-28P-PWR-LI-AC most time on the network, Huawei Quidway S5700 series gigabit enterprise switches, which are  next-generation energy-saving switches developed by Huawei to meet the demand for high-bandwidth access and Ethernet multi-service aggregation, Based on cutting-edge hardware and Huawei Versatile Routing Platform (VRP) software, the S5700 provides a large switching capacity and high-density GE ports to accommodate 10 Gbit/s upstream transmissions. 
# If the switch has an management interface, configure an IP address for the management interface.
<HUAWEI> system-view
[HUAWEI] interface meth 0/0/1
[HUAWEI-MEth0/0/1] ip address ip address 192.168.1.2 24
[HUAWEI-MEth0/0/1] quit

# If the switch has no management interface, configure an IP address for the WLANIF
interface.
<HUAWEI> system-view
[HUAWEI] vlan 4094
[HUAWEI-vlan4094] quit
[HUAWEI] interface gigabitethernet 0/0/48
[HUAWEI-GigabitEthernet0/0/48] port link-type hybrid
[HUAWEI-GigabitEthernet0/0/48] port hybrid untagged vlan 4094
[HUAWEI-GigabitEthernet0/0/48] quit
[HUAWEI] interface vlanif 4094
[HUAWEI-Vlanif4094] ip address ip address 192.168.1.2 24
[HUAWEI-Vlanif4094] quit

2. Configure reachable routes between the PC and switch so that the PC can successfully ping the switch.
If the PC is directly connected to the switch, ensure that the IP address of the PC is in
the same network segment as the management IP address of the switch.

If the PC is not directly connected to the switch, configure reachable routes between
the PC and switch.

3. Set the authentication mode for Telnet login to AAA.
[HUAWEI] user-interface vty 0 4
[HUAWEI-ui-vty0-4] authentication-mode aaa
[HUAWEI-ui-vty0-4] quit

4. Configure the Telnet login user parameters. Set the user name and password to admin, and user level to 3.
[HUAWEI] aaa
[HUAWEI-aaa] local-user admin password cipher admin
[HUAWEI-aaa] local-user admin privilege level 3

[HUAWEI-aaa] local-user admin service-type telnet

没有评论:

发表评论