Pbr Examples - Planet XGS3-42000R User Manual

4-slot layer 3 ipv6/ ipv4 routing chassis switch
Table of Contents

Advertisement

4. Configure a policy-map
Global Configuration Mode
policy-map <policy-map-nam e>
no policy-map <policy-map-nam e>
5. Configure to correlate a policy and a class-map
Policy-map Mode
class <class-map-name>
no class <class-map-name>
6. Configure the next hop IPv6 address
Policy-class-map Mode
set {ipv6 nexthop <nexthop-ip>}
no set {ipv6 nexthop}
7. Configure the port binding policy-map
Port Configuration Mode
servi ce-policy {input
<policy-map-name> | output
<policy-map-name>}
no servi ce-policy {input
<policy-map-name> | output
<policy-map-name>}

19.3 PBR Examples

Example 1:
On port ethernet 1/1, set the messages whose source IP is within the segment 2000:: /64 to do policy routing,
the next hop is 3100::2.
The following is the configuration steps:
XGS 3-42000R#config
XGS 3-42000R(config)#interface vlan 1
XGS 3-42000R(config-if-Vlan1)#ipv6 address 2000::1/64
XGS 3-42000R(config-if-Vlan1)#ipv6 neighbor 2000::2 00-00-00-00-00-01 interface Ethernet 1/1
XGS 3-42000R(config)#interface vlan 2
XGS 3-42000R(config-if-Vlan2)#ipv6 address 3000::1/64
XGS 3-42000R(config-if-Vlan2)#ipv6 neighbor 3000::2 00-00-00-00-00-02 interface Ethernet 1/2
XGS 3-42000R(config)#interface vlan 3
Command
Command
Command
Command
Explanation
Create or delete a policy-map.
Explanation
Correlate with a class, and enter the
policy-map mode.
Explanation
Set the next hop IP v6 address of the
classed flow.
Explanation
Configure the trust state of a port is
mutually exclusive to applying policy-map
on a port. After configure the trust state of a
port or applying policy-map, if this port
needs to configure new trust state or
applying policy-map, then deleting the old
configuration at first; there can be only one
policy-map on each direction of a port. The
output policy-map is not supported at
present.
19-2

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents