beautypg.com

Step 2: configuring vrfs, Step 3: start ospf process for each vrf, Address and ospf – Brocade FastIron Ethernet Switch Layer 3 Routing Configuration Guide User Manual

Page 660

background image

Step 2: Configuring VRFs

The following illustrates configuring the VRF R1.

R1(config)#vrf corporate

R1(config-vrf-corporate)#rd 11:11

R1(config-vrf-corporate)#ip router-id 1.1.1.1

R1(config-vrf-corporate)#address-family ipv4

R1(config-vrf-corporate-ipv4)#

R1(config-vrf-corporate-ipv4)#exit

R1(config)#vrf guest

R1(config-vrf-guest)#rd 10:10

R1(config-vrf-corporate)#ip router-id 1.1.1.2

R1(config-vrf-guest)#address-family ipv4

R1(config-vrf-guest-ipv4)#exit

R1(config)#

R1(config)#show vrf

Total number of VRFs configured: 2

Status Codes - A:active, D:pending deletion, I:inactive

Name Default RD vrf|v4|v6 Routes Interfaces

corporate 11:11 A | A| I 0

guest 10:10 A | A| I 0

Total number of IPv4 unicast route for all non-default VRF is 0

Total number of IPv6 unicast route for all non-default VRF is 0

R1(config)#

R1(config)#

Repeat in the same manner for R2 (router-id 2.2.2.1/2.2.2.2) and R3 (router-id 3.3.3.1/3.3.3.2).

Step 3: Start OSPF process for each VRF

The following illustrates starting the OSPF protocol process for each VRF.

R1(config)#router ospf vrf corporate

R1(config-ospf-router-vrf-corporate)#area 0

R1(config-ospf-router-vrf-corporate)#log adjacency

R1(config-ospf-router-vrf-corporate)#

R1(config-ospf-router-vrf-corporate)#router ospf vrf guest

R1(config-ospf-router-vrf-guest)#area 0

R1(config-ospf-router-vrf-guest)#log adjacency

Step 4: Assign VRFs to each ve interfaces, and configure IP address
and OSPF

The following illustrates assigning the VRFs to each virtual interface (ve), and configuring IP
addresses and the OSPF protocol.

R1(config)#interface ve 10

R1(config-vif-10)#vrf forwarding guest

Warning: All IPv4 and IPv6 addresses (including link-local) on this interface have

been removed

R1(config-vif-10)#ip address 192.168.1.254/24

R1(config-vif-10)#ip ospf area 0

R1(config-vif-10)#ip ospf passive

R1(config-vif-10)#exit

R1(config)#interface ve 11

R1(config-vif-11)#vrf forwarding corporate

Warning: All IPv4 and IPv6 addresses (including link-local) on this interface have

been removed

R1(config-vif-11)#ip add 172.16.1.254/24

R1(config-vif-11)#ip ospf area 0

R1(config-vif-11)#ip ospf passive

R1(config-vif-11)#exit

R1(config)#interface ve 30

R1(config-vif-30)#vrf forwarding guest

Warning: All IPv4 and IPv6 addresses (including link-local) on this interface have

Step 2: Configuring VRFs

660

FastIron Ethernet Switch Layer 3 Routing Configuration Guide

53-1003087-04