华为eNSP中路由配置和远程连接方式(1)

文章详细描述了如何配置AR1和AR2路由器的IP地址和端口,以建立内部网络的通信,并通过telnet服务实现远程登录和管理。二层交换机未做配置,仅用于路由通信。通过这些步骤,实现了同一路由内的通信,并尝试跨路由器的远程连接。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

拓扑图说明:

1.配置拓扑图中,所有设备的IP地址,后期进行通信

2.统一路由内可以ping通,跨路由器是ping不通的,下边实验进行远程连接的方式连接

3.图中二层交换机不做任何配置,只负责路由通信 

拓扑图:

配置AR1路由器:

The device is running!

<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]sy R1
[R1]int g0/0/1     ##配置端口网关
[R1-GigabitEthernet0/0/1]ip add 192.168.2.254 24
[R1-GigabitEthernet0/0/1]int g0/0/0     ##配置端口网关
[R1-GigabitEthernet0/0/0]ip add 192.168.1.254 24
[R1-GigabitEthernet0/0/0]int g0/0/2     ##配置端口网关
[R1-GigabitEthernet0/0/2]ip add 192.168.100.254 24
[R1-GigabitEthernet0/0/2]q
[R1]un in en
Info: Information center is disabled.
[R1]
[R1]user-interface vty 0 4     ##配置最多同时5个人进行登录
[R1-ui-vty0-4]authentication-mode password 
Please configure the login password (maximum length 16):huawei   #密码为huawei
[R1-ui-vty0-4]shell
[R1-ui-vty0-4]protocol inbound telnet	   #开通telnet服务
[R1-ui-vty0-4]user privilege level 15    #设置权限到最大15
[R1-ui-vty0-4]q
[R1]q
<R1>save   #保存退出
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  It will take several minutes to save configuration file, please wait.......
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated
<R1>

配置AR2路由器:

The device is running!

<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]un in en
Info: Information center is disabled.
[Huawei]sy R2
[R2]int g0/0/0    #配置端口IP地址
[R2-GigabitEthernet0/0/1]ip add 192.168.100.253 24
[R2-GigabitEthernet0/0/1]q
[R2]q
<R2>telnet 192.168.100.254   #telnet 远程登录地址
  Press CTRL_] to quit telnet mode
  Trying 192.168.100.254 ...
  Connected to 192.168.100.254 ...

Login authentication


Password:    #输入密码即可连接,并可以配置
<R1>sy
Enter system view, return user view with Ctrl+Z.
[R1]
<R2>

PC终端:

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值