Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

25. Policy routing

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Policy routing: let the route choose the next hop location according to the defined policy.

The role of policy routing: when the internal network to access the public network, there are two ways, but on the same router, we need to use policy routing to point the way, control the direction of network segment traffic, and specify the direction of traffic.

Cisco Policy routing related commands:

Based on interface:

Command

Description

(config) # route-map ren permit 10

Define a policy

(config-route-map) # match interface f0amp 0

When the traffic coming from interface F0Universe 0

(config-route-map) # set ip next-hop 1.1.1.1

Then the next hop address is specified as

(config-if) # ip policy route-map ren

Use policies for portals

Based on network segment:

Command

Description

(config) # access-list 1 permit 192.168.1.0 0.0.0.255

Create an ACL definition network segment

(config-route-map) # match ip address 1

Call ACL

(config-route-map) # set ip next-hop 1.1.1.1

Then the next hop address is specified as

(config-if) # ip policy route-map ren

Use policies for portals

Huawei H3C policy routing related commands:

Based on ACL:

Command

Description

[huawei] acl 2000

Create and enter ACL

[huawei-acl-basic-2000] rule permit source 192.168.1.0 0.0.0.255

Standard ACL

[huawei] route-policy ren permit node 10

Create a policy route

[huawei-route-policy] if-match acl 2000

Call ACL

[huawei-route-policy] apply ip-address next-hop 1.1.1.1

Then the next hop address is specified as

[huawei] ip local policy-based-route ren

Apply local policy

[huawei] dispaly route-policy

View routing policies

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.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report