In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to configure PBR+SLA, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
This paper mainly describes the diversion of data packets through policy routing PBR and IP service level protocol SLA.
Suppose: the default route is set to 192.168.1.0 on Outside, and the next line points to R6: ip route 0.0.0.0 255.255.255.0 1.1.56.6
Requirements: but packets from the source IP:5.5.5.5/32 must go to R4: and ensure the availability of the link:
R5 basic configuration:
Interface Loopback0
Ip address5.5.5.5 255.255.255.255
Interface FastEthernet1/0
Ip address 1.1.56.5 255.255.255.0
Interface FastEthernet1/1
Ip address 1.1.45.5 255.255.255.0
Ip policy route-map AAA
Ip local policy route-map AAA
Ip route 0.0.0.0 0.0.0.0 1.1.56.6
Route-map AAA permit 10
Match interface Loopback0
Set ip next-hop 1.1.45.4
R5#debug ip policy
R5#ping 4.4.4.4 sou lo0: note here: if the traffic is generated locally, the route-map does not match by default. You need to enable: [ip local policy route-map AAA]: to make the local traffic match AAA:
* Dec 3 18 len 48 Dec 32.823: IP: slots 5.5.5.5 (local), dice 4.4.4.4, len 100, policy match
* Dec 3 18 item 48 item 32.823: IP: route map AAA, item 10, permit
* Dec 3 18 FastEthernet1/1 48 local 32.827: IP: slots 5.5.5.5 (local), dudes 4.4.4.4 (FastEthernet1/1), len 100, policy routed
* Dec 3 18 local to FastEthernet1/1 48V 32.827: IP: local to FastEthernet1/1 1.1.45.4
At this point, if you shut down the F1amp1 interface of R4: at this time R5 and pingR4: is the link normal?
Explanation: route-map cannot tell whether the next hop is reachable. But it can be implemented in combination with SLA:
Ip sla monitor 1
Type echo protocol ipIcmpEcho1.1.45.4
Frequency 10
Ip sla monitor schedule 1 life forever start-time now
Track 2 rtr 1
Route-map AAA permit 10
Match interface Loopback0
Set ip next-hop verify-availability 1.1.45.4 1 track 2
R5#ping4.4.4.4 sou lo0: note here: if you turn off the F1 route-map of R4 at this time, the policy will not be implemented even if the traffic matches it. Go to the normal routing table: for more information, please see the following debug information.
Wan30#debug ip policy
* Dec 3 18 len 49 len 42.115: IP: slots 5.5.5.5 (local), dice 4.4.4.4, len 100, policy match
* Dec 3 18 item 49 item 42.115: IP: route map AAA, item 10, permit
* Dec 3 18 len 49 len 42.115: IP: slots 5.5.5.5 (local), dice 4.4.4.4, len 100, policy rejected-- normal forwarding
Through the above configuration experiments, packet shunting is realized.
Thank you for reading this article carefully. I hope the article "how to configure PBR+SLA" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.