beautypg.com

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

Page 798

background image

770

Multi-Service IronWare Routing Configuration Guide

53-1003033-02

Configuration examples

Configuration considerations

The command allow-all-vlan pbr cannot be configured when the physical port is configured
with an IPv6 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 ipv6 next-hop IPv6-address preserve-vlan

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

Configuration examples

This section presents the following configuration examples:

“Preserve VLAN IDs and forwarding to specific egress port”

on page 770

“Preserve VLAN IDs and forwarding to multiple ports within a VLAN”

on page 771

“Applying IPv6 PBR next hop VLAN flooding”

on page 771

Preserve VLAN IDs and forwarding to specific egress port

1. Configure the access list for IPv6.

Brocade(config)# ipv6 access-list v6-acl

Brocade(config-ipv6-access-list v6-acl)# permit ipv6 2001:db8::/64 any

Brocade(config-ipv6-access-list v6-acl)# exit

2. Configure the route map with a set policy to preserve VLAN for IPv6 traffic.

Brocade(config)# route-map map6 permit 1

Brocade(config-routemap map4ve)# match ipv6 address v6-acl

Brocade(config-routemap map4ve)# set ipv6 next-hop 2001:db8::1 preserve-vlan

Brocade(config-routemap map4ve)# exit

3. Apply route map to physical/VE interface.

Brocade(config)# interface e1/2

Brocade(config-if-e1000-1/2)# allow-all-vlan pbr

Brocade(config-if-e1000-1/2)# ipv6 policy route-map map6

Brocade(config-if-e1000-1/2)# exit