Related commands:
Examples
ip policy-based-route
Syntax
View
Parameters
Description
Related commands:
Examples
policy-based-route
Syntax
View
System policy routing is used to route packets generated locally. Unless
■
otherwise required, you are not recommended to enable system policy routing.
policy-based-route.
# Enable system policy routing and reference policy aaa.
<Sysname> system-view
[Sysname] ip local policy-based-route aaa
ip policy-based-route policy-name
undo ip policy-based-route policy-name
Interface view
policy-name: Policy name, a string of 1 to 19 characters.
Use the
ip policy-based-route
a policy on the interface.
Use the
undo ip policy-based-route
routing.
Interface policy routing is disabled by default.
Note that:
You can only reference one policy when enabling policy routing on an
■
interface.
The referenced policy filters incoming packets on the interface.
■
ip local policy-based-route.
# Enable policy routing and reference policy aaa on interface Ethernet1/0.
<Sysname> system-view
[Sysname] interface ethernet 1/0
[Sysname-Ethernet1/0] ip policy-based-route aaa
policy-based-route policy-name [ deny | permit ] node node-number
undo policy-based-route policy-name [ deny | node node-number | permit ]
System view
command to enable policy routing and reference
command to disable interface policy
815