beautypg.com

Cisco 15327 User Manual

Page 204

background image

13-4

Ethernet Card Software Feature and Configuration Guide, R7.2

Chapter 13 Configuring VRF Lite

VRF Lite Configuration Example

!

interface FastEthernet1

no ip address

!

interface FastEthernet1.1

encapsulation dot1Q 3

ip vrf forwarding customer_b

ip address 192.168.2.1 255.255.255.0

bridge-group 3

!

interface POS0

no ip address

crc 32

no cdp enable

pos flag c2 1

!

interface POS0.1

encapsulation dot1Q 1 native

ip address 192.168.50.1 255.255.255.0

bridge-group 1

!

interface POS0.2

encapsulation dot1Q 2

ip vrf forwarding customer_a

ip address 192.168.100.1 255.255.255.0

bridge-group 2

!

interface POS0.3

encapsulation dot1Q 3

ip vrf forwarding customer_b

ip address 192.168.200.1 255.255.255.0

bridge-group 3

!

router ospf 1

log-adjacency-changes

network 192.168.50.0 0.0.0.255 area 0

!

router ospf 2 vrf customer_a

log-adjacency-changes

network 192.168.1.0 0.0.0.255 area 0

network 192.168.100.0 0.0.0.255 area 0

!

router ospf 3 vrf customer_b

log-adjacency-changes

network 192.168.2.0 0.0.0.255 area 0

network 192.168.200.0 0.0.0.255 area 0

!

Example 13-3 Router_B Configuration

hostname Router_B

!

ip vrf customer_a

rd 1:1

route-target export 1:1

route-target import 1:1

!

ip vrf customer_b

rd 2:2

route-target export 2:2

route-target import 2:2

!