beautypg.com

Policy based routing with the preserve vlan option, Configuration considerations, Preserve vlan option as part of a set policy – Brocade Multi-Service IronWare Routing Configuration Guide (Supporting R05.6.00) User Manual

Page 368: Configuring a rule-name for a route-map

background image

340

Multi-Service IronWare Routing Configuration Guide

53-1003033-02

Policy based routing with the preserve VLAN option

Policy based routing with the preserve VLAN option

When an IP packet matches the PBR policy with the preserve-vlan option, the Layer 2 and Layer 3
information is retained (for example, the VLAN information and the MAC address are retained). TTL
is not decremented. A packet is sent to the configured next hop. IP packets not matching the PBR
policy with preserve-vlan will be dropped. If none of the policy's direct routes or next hops is
available, the packets are forwarded as per the routing table.

Configuring a physical interface to accept all VLAN packets
for PBR

The allow-all-vlan pbr command configures a physical interface to accept all VLAN packets for the
purpose of PBR. This command reduces configuration complexity since the physical interface does
not have to be configured individually in multiple VLAN interfaces.

Syntax: allow-all-vlan pbr

NOTE

The allow-all-vlan pbr command cannot be applied to a VE.

Configuration considerations

The command allow-all-vlan pbr cannot be configured when the physical port is configured
with an IPv4 address, MPLS, VPLS, VLL, ICL, Layer 3 VPN; or when the port is part of other
VLAN.

The route map with preserve-vlan set policies cannot be configured globally.

A route map used for PBR with a preserve VLAN policy must have the preserve-vlan keyword
configured for each set policy.

Configuring policy based routing with the preserve VLAN
option

The interface, on which PBR with preserve-vlan is configured, should be part of the VLANs through
which packets are expected. A route map policy with set policies to preserve VLAN can be applied
on a physical port or on a VE port.

Preserve VLAN option as part of a set policy

In a route map set policy configuration, the preserve-vlan keyword is used to preserve the packet.

Syntax: set ip next-hop ip-address preserve-vlan

Syntax: set next-hop-flood-vlan vlan-id preserve-vlan

Syntax: set interface ethernet slot/port preserve-vlan

Configuring a rule-name for a route-map

You can use the rule-name field in the route-map to organize and extract information about PBR
configurations.