首先,登录到华为路由器,输入命令`show run`,这会显示当前的路由器配置。接着,为了开启telnet服务,我们需要执行以下步骤:
1. 输入`login telnet`命令,这表示我们要配置telnet登录。
2. 然后设置telnet的密码。在华为路由器中,可以使用`enable password`命令来设置启用密码,这是进入特权模式所必需的。例如,`enable password KZ#`LIX_`B5^N232W9aXV1!!R>`,这里的密码是加密存储的。
3. 接下来,设置用户密码。使用`user`命令并指定用户名,例如`user 123456`,然后指定服务类型为`exec`,最后设置密码,例如`password 7 KZ#`LIX_`B7-JEXJQ
5. 接下来,配置远程访问。华为路由器使用`DLSw`(数字线路交换)命令来配置远程交换。例如,`dlsw local-peer tcp 150.100.88.10`和`dlsw remote-peer tcp 150.100.16.10`分别配置了本地和远程的TCP端口。
6. 创建桥接组。使用`dlsw bridge-group 1`命令创建一个桥接组,这样可以将不同的接口关联在一起。
7. 接着,配置接口。例如,使用`interface Aux0`和`encapsulation ppp`配置辅助端口,使用`interface Ethernet0`设置以太网接口的速率、双工模式和ip地址。
8. 配置串行接口。使用`interface Serial0:0`设置串行接口,并指定描述、封装、IP地址和子网掩码。
9. 设置路由。使用`ip route`命令添加静态路由,例如`ip route 131.131.100.8 255.255.255.252 10.6.1.25 preference 60`。
10. 最后,完成配置后,使用`end`命令退出配置模式。
完成上述步骤后,telnet服务将在华为路由器上启动,并准备好接受远程登录。要测试telnet服务是否正常工作,可以在另一台计算机上使用telnet命令连接到路由器的IP地址,并使用之前设置的密码登录。
通过上述步骤,网络管理员可以轻松地配置华为路由器的telnet服务,从而实现对设备的远程管理。这不仅提高了工作效率,也增强了网络的安全性。华为路由器开telnet
pinghu#show run
Now create configuration...
Current configuration
!
version 1.5.6
login telnet
**********************
enable password KZ#`LIX_`B5^N232W9aXV1!! R>**********************
user 123456 service-type exec password 7 KZ#`LIX_`B7-JEXJQ<%DJQ!!
**********************
hostname pinghu
dlsw local-peer tcp 150.100.88.10
dlsw remote-peer tcp 150.100.16.10
dlsw bridge-group 1
!
controller e1 0
using E1
!
interface Aux0
async mode interactive
encapsulation ppp
!
interface Ethernet0
speed auto
duPlex auto
no loopback
ip address 150.100.88.10 255.255.252.0
bridge-group 1
!
interface Serial0:0
encapsulation ppp
description Connected to center2630-e1-6 10.6.1.25
ip address 10.6.1.26 255.255.255.252
!
exit
ip route 131.131.100.8 255.255.255.252 10.6.1.25 preference 60
ip route 150.100.16.0 255.255.248.0 10.6.1.25 preference 60
ip route 150.100.80.0 255.255.252.0 10.6.1.25 preference 60
!
end
pinghu#
pinghu#show dlsw pe
Peers: State pkts_rx pkts_tx drops uptime
TCP 150.100.16.10 CONNECT 36 28 0 00:12:02
pinghu#
加上述3条命令.
【 在 wjl1978 的大作中提到:】
:请教
:如何打开 telnet
:Cisco 的命令是:
:line vty 0 4
:login