华为路由器端口映射
[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: