华为路由器端口映射hcna

本文介绍了如何在华为路由器上配置端口映射和NAT,包括设置接口IP地址、发布默认路由、用户接口认证、进行端口映射测试,以及通过telnet验证连接。详细步骤包括了在路由器ar1和ar2上的配置,确保外部网络可以通过特定端口访问内部网络的设备。

在这里插入图片描述
华为路由器端口映射

[ar1]interface GigabitEthernet 0/0/0
[ar1-GigabitEthernet0/0/0]ip address 192.168.1.1 24
[ar1]ip route-static 0.0.0.0 0 192.168.1.254
*//发布一条默认路由出去
[ar1]user-interface vty 0 4
[ar1-ui-vty0-4]authentication-mode password
[ar1-ui-vty0-4]authentication-mode password
Please configure the login password (maximum length 16):huawei@123
*//你可以设置ftp也可以设置telnet,密码我设置为huawei@123

[ar2]interface GigabitEthernet 0/0/0
[ar2-GigabitEthernet0/0/0]ip address 192.168.1.254 24
[ar2]ping 192.168.1.1
PING 192.168.1.1: 56 data bytes, press CTRL_C to break
Reply from 192.168.1.1: bytes=56 Sequence=1 ttl=255 time=110 ms
Reply from 192.168.1.1: bytes=56 Sequence=2 ttl=255 time=40 ms
Reply from 192.168.1.1: bytes=56 Sequence=3 ttl=255 time=40 ms
Reply from 192.168.1.1: bytes=56 Sequence=4 ttl=255 time=50 ms
*//习惯配置

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值