华为AR2220路由器(标配3个端口)配置

默认分类 未结 1 1627
_KayZ_
_KayZ_ 2023-03-17 21:14
1条回答
  • 2023-03-17 21:53

    1. Router的配置#sysname Router# acl number 3000rule 5 permit source 192.168.1.1 0.0.0.0 # acl number 3001rule 5 permit source 192.168.1.2 0.0.0.0 # traffic classifier testA operator orif-match acl 3000 traffic classifier testB operator orif-match acl 3001 # traffic behavior testAredirect ip-nexthop 202.168.100.1 traffic behavior testBredirect ip-nexthop 202.168.100.2 # traffic policy testclassifier testA behavior testAclassifier testB behavior testB //配置重定向,实现为来自Internet不同接口的报文仍然从此接口映射出去 # interface GigabitEthernet1/0/0ip address 202.168.100.1 255.255.255.0nat static protocol tcp global current-interface 8080 inside 192.168.1.1 ftp netmask 255.255.255.255 # interface GigabitEthernet2/0/0ip address 202.168.100.2 255.255.255.0nat static protocol tcp global current-interface 8080 inside 192.168.1.2 ftp netmask 255.255.255.255 //配置NAT Static,实现外网用户访问内网服务器# interface GigabitEthernet3/0/0ip address 192.168.100.1 255.255.255.0traffic-policy test inbound # ip route-static 0.0.0.0 0.0.0.0 202.168.100.1 ip route-static 0.0.0.0 0.0.0.0 202.168.100.2 //配置等价路由实现NAT双上行# return 2. 检查配置结果。Internet上用户能够正常访问FTP服务器。配置注意事项

    0 讨论(0)
提交回复