Ieee 802.1q example – Cisco 15327 User Manual

Page 139

Advertising
background image

9-5

Ethernet Card Software Feature and Configuration Guide, R7.2

Chapter 9 Configuring IEEE 802.1Q Tunneling and Layer 2 Protocol Tunneling

IEEE 802.1Q Example

Note

The VLAN ID (VID) range of 2 to 4095 is recommended for IEEE 802.1Q tunneling on the ML-Series
card.

Note

If VID 1 is required to be used as a metro tag, use the following command:

Router (config)# VLAN dot1Q tag native

Use the no mode dot1q-tunnel interface configuration command to remove the IEEE 802.1Q tunnel
from the interface.

IEEE 802.1Q Example

The following examples show how to configure the example in

Figure 9-1 on page 9-2

.

Example 9-1

applies to Router A, and

Example 9-2

applies to Router B.

Example 9-1

Router A Configuration

bridge 30 protocol ieee

bridge 40 protocol ieee

!

!

interface FastEthernet0

no ip routing

no ip address

mode dot1q-tunnel

bridge-group 30

!

interface FastEthernet1

no ip address

mode dot1q-tunnel

bridge-group 40

!

interface POS0

no ip address

crc 32

pos flag c2 1

!

interface POS0.1

encapsulation dot1Q 30

bridge-group 30

Step 4

Router(config-if)# bridge-group

number

Assigns the tunnel port to a bridge-group. All traffic from the port
(tagged and untagged) will be switched based on this bridge-group.
Other members of the bridge-group should be VLAN subinterfaces on
a provider trunk interface.

Step 5

Router(config-if)# mode dot1q-tunnel

Sets the interface as an IEEE 802.1Q tunnel port.

Step 6

Router(config)# end

Returns to privileged EXEC mode.

Step 7

Router# show dot1q-tunnel

Displays the tunnel ports on the switch.

Step 8

Router# copy running-config

startup-config

(Optional) Saves your entries in the configuration file.

Command

Purpose

Advertising