Notes for router MP

Source: Internet
Author: User

PBR is a data packet routing and forwarding process. Based on the route ing, the router determines how the data packets pass through the router are processed. The route ing determines the next hop forwarding router of a data packet, generally, when dynamic routing is enabled on a vro to dynamically learn the network topology, devices in the Network may dynamically generate incorrect route entries, in this case, we need to use PBR to cause packet loss or route errors.

1. PBR is a data packet forwarding mechanism. By applying a policy route on the router, the router determines how to process the router data packets based on the route ing, the route ing determines the next hop forwarding router of a data packet.

2. to apply a policy route on a vro, you must specify the route ing used by the policy route and create a route ing. A route ing consists of multiple policies, each policy defines one or more matching rules and corresponding operations.

3. After an interface applies a policy route, all packets received by the interface will be checked. packets that do not conform to the rules defined in the route ing will be forwarded by normal routes, data packets that comply with the routing ing policy are processed according to the operation defined in the policy.

4. Assume that the E0/0 port of the vro is used as the gateway of the internal network and the address is 200.1.1.1. The internal network has a WEB server with the address 200.1.1.100 and one user computer in the same network segment as the WEB, there is a remote user in the external network with the IP address 199.1.1.100, which allows remote users to access the WEB server but not the computers of internal users.

V. Configuration

1. Router (config) # interface Ethernet0/0

2. Router (config-if) # ip address 200.1.1.1 255.255.255.0

3. Router (config-if) # exit

4. Router (config) # interface Ethernet0/1

5. Router (config-if) # ip address 199.1.1.1 255.255.255.0

6. Router (config-if) # exit.

6. ing

1. Router (config) # route-map pbr

2. Router (config-route-map) # match ip address 100

3. Router (config-route-map) # set interface null 0.

Through the above settings, our goal is achieved. Note that for a classless routing protocol, there is no significance, because the classless routing protocol is the principle of longest matching.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.