取消
显示结果 
搜索替代 
您的意思是: 
cancel
525
查看次数
0
有帮助
4
回复

Cisco PBR by eve-ng

SkyIsGod
Level 1
Level 1

Screenshot 2024-12-17 at 3.47.05 PM.png

result:

PBR_PC> ping 172.16.10.1

172.16.10.1 icmp_seq=1 timeout
172.16.10.1 icmp_seq=2 timeout
172.16.10.1 icmp_seq=3 timeout
172.16.10.1 icmp_seq=4 timeout
172.16.10.1 icmp_seq=5 timeout

請問配置是否有誤

4 条回复4

Use 

Set interface <x/x> 

Instead of using 

Set ip next hop

MHM

result the same timeout

can I see show ip route in L3SW ?

also share 

debug ip policy

MHM

Internet_SW#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is 192.168.100.2 to network 0.0.0.0

S* 0.0.0.0/0 [1/0] via 192.168.100.2
192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.10.0/24 is directly connected, Vlan10
L 192.168.10.254/32 is directly connected, Vlan10
192.168.20.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.20.0/24 is directly connected, Vlan20
L 192.168.20.254/32 is directly connected, Vlan20
192.168.100.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.100.0/30 is directly connected, Ethernet0/2
L 192.168.100.1/32 is directly connected, Ethernet0/2
192.168.200.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.200.0/30 is directly connected, Ethernet0/0
L 192.168.200.1/32 is directly connected, Ethernet0/0

 

Internet_SW#debug ip policy
Policy routing debugging is on
Internet_SW#
*Dec 17 08:31:38.292: IP: s=192.168.20.1 (Vlan20), d=172.16.10.1, len 84, FIB policy match
*Dec 17 08:31:38.292: IP: s=192.168.20.1 (Vlan20), d=172.16.10.1, len 84, PBR Counted
*Dec 17 08:31:38.292: IP: s=192.168.20.1 (Vlan20), d=172.16.10.1, len 84, policy match
*Dec 17 08:31:38.292: IP: route map PBR_Router_MAP, item 10, permit
*Dec 17 08:31:38.293: IP: s=192.168.20.1 (Vlan20), d=172.16.10.1 (Ethernet0/0), len 84, policy routed
*Dec 17 08:31:38.293: IP: Vlan20 to Ethernet0/0 178.32.28.88

快捷链接