策略没起作用(112.19.171.115),目前全都走的222.212.90.54,麻烦大家看看问题在哪呢
型号:secpath f1000-ak115
sysname H3C
#
context Admin id 1
#
irf mac-address persistent timer
irf auto-update enable
undo irf link-delay
irf member 1 priority 1
#
nat address-group 1 name 电信NAT
address 222.212.90.54 222.212.90.54
#
nat address-group 22 name 22
address 112.19.171.115 112.19.171.115
#
password-recovery enable
#
vlan 1
#
policy-based-route aaa permit node 1111
if-match acl 2002
apply precedence routine
apply next-hop 112.19.171.1
#
interface NULL0
#
interface GigabitEthernet1/0/0
port link-mode route
combo enable copper
ip address 192.168.0.1 255.255.255.0
#
interface GigabitEthernet1/0/1
port link-mode route
combo enable fiber
#
interface GigabitEthernet1/0/2
port link-mode route
ip address 222.212.90.54 255.255.255.128
nat outbound
nat outbound 2001 address-group 1 no-pat description 11
nat server protocol tcp global current-interface 1000 inside 172.16.32.1 443
nat server protocol tcp global current-interface 1001 inside 172.16.32.2 443
#
interface GigabitEthernet1/0/3
port link-mode route
ip address 192.168.3.1 255.255.255.0
ip policy-based-route aaa
#
interface GigabitEthernet1/0/4
port link-mode route
ip address 112.19.171.115 255.255.255.0 sub
nat outbound
nat outbound 2001 address-group 22 no-pat description 22
#
interface GigabitEthernet1/0/5
port link-mode route
#
interface GigabitEthernet1/0/6
port link-mode route
#
interface GigabitEthernet1/0/7
port link-mode route
#
interface GigabitEthernet1/0/8
port link-mode route
#
interface GigabitEthernet1/0/9
port link-mode route
#
security-zone name Local
#
security-zone name Trust
import interface GigabitEthernet1/0/3
#
security-zone name DMZ
#
security-zone name Untrust
import interface GigabitEthernet1/0/2
import interface GigabitEthernet1/0/4
#
security-zone name Management
import interface GigabitEthernet1/0/0
#
scheduler logfile size 16
#
line class aux
user-role network-operator
#
line class console
authentication-mode scheme
user-role network-admin
#
line class vty
user-role network-operator
#
line aux 0
user-role network-admin
#
line con 0
user-role network-admin
#
line vty 0 63
authentication-mode scheme
user-role network-admin
#
ip route-static 0.0.0.0 0 GigabitEthernet1/0/2 222.212.90.1 preference 58
ip route-static 0.0.0.0 0 GigabitEthernet1/0/4 112.19.171.1 preference 59
ip route-static 172.16.0.0 16 192.168.3.254
ip route-static 192.168.0.0 16 192.168.3.254
#
ssh server enable
#
acl basic 2001
description 内部转换
rule 0 permit source 0.0.0.0 0
#
acl basic 2002
rule 1 permit source 172.16.5.0 0.0.0.255
rule 2 permit source 172.16.32.0 0.0.3.255
#
domain system
#
aaa session-limit ftp 16
aaa session-limit telnet 16
aaa session-limit ssh 16
domain default enable system
#
role name level-0
description Predefined level-0 role
#
role name level-1
description Predefined level-1 role
#
role name level-2
description Predefined level-2 role
#
role name level-3
description Predefined level-3 role
#
role name level-4
description Predefined level-4 role
#
role name level-5
description Predefined level-5 role
#
role name level-6
description Predefined level-6 role
#
role name level-7
description Predefined level-7 role
#
role name level-8
description Predefined level-8 role
#
role name level-9
description Predefined level-9 role
#
role name level-10
description Predefined level-10 role
#
role name level-11
description Predefined level-11 role
#
role name level-12
description Predefined level-12 role
#
role name level-13
description Predefined level-13 role
#
role name level-14
description Predefined level-14 role
#
user-group system
#
local-user admin class manage
password hash $h$6$UbIhNnPevyKUwfpm$LqR3+yg1IjNct39MkOR0H0iQXLkYB3jMqM4vbAeoXOhbabIIFnjJPEGR00YiYA1Sz4LiY3FmEdru2fOLMb1shQ==
service-type ssh terminal https
authorization-attribute user-role level-3
authorization-attribute user-role network-admin
authorization-attribute user-role network-operator
#
ip https enable
webui log enable
#
uapp-control
#
security-policy ip
rule 4 name 555
action pass
counting enable
source-zone Local
source-zone Trust
source-zone DMZ
source-zone Untrust
source-zone Management
destination-zone Local
destination-zone Trust
destination-zone DMZ
destination-zone Untrust
destination-zone Management
#
return
[H3C]
(0)
没看到你应用策略
(0)
请问怎么应用呢,防火墙这块不太懂
参考配置举例:https://www.h3c.com/cn/d_202203/1570245_30005_0.htm#_Toc98087687
WEB上尝试重新配置,没成功,有应用策略的命令吗
现在的配置属于是 断掉 G1/0/2 就走 另一个路由了;
(0)
出口IP写到ACL里面吗
请问怎么把acl 2002里的IP改成走112.19.171.115呢
ACL都是反掩码 可以写成 112.19.171.115 0.0.0.7
出口IP写到ACL里面吗
apply ip-precedence routine //没有指定专线next-hop下一跳
undo apply ip-precedence routine 就可以了
(0)
有这一条apply next-hop 112.19.171.1可以不
有这一条apply next-hop 112.19.171.1可以不
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
我发的配置举例里有的