#con t | Enter the router config mode. |
(config)#ip vrf vrf1 | Create vrf1 |
(config-vrf)#exit | Exit VRF mode |
(config)#router ospf 1 vrf1 | Associate the ospf process with vrf1. |
(config-router)#network 2.2.2.0/24 area 0 | Specify the network type and area 0. |
(config-router)#ex | Exit the OSPF configuration mode. |
(config)#interface eth1 | Enter interface mode. |
(config-if)#ip vrf forwarding vrf1 | Associate eth1 to vrf1. |
(config-if)#ip address 2.2.2.1/24 | Assign the IP address 2.2.2.1 to eth1 in vrf1 |
(config-if)#commit | Commit the candidate configuration to the running configuration |
#con t | Enter the router config mode |
(config)#ip vrf vrf1 | Create vrf1 |
(config-vrf)#exit | Exit VRF mode |
(config)#router ospf 1 vrf1 | Associate the ospf process with vrf1 |
(config-router)#network 2.2.2.0/24 area 0 | Specify the network type and area 0. |
(config-router)#ex | Exit router mode. |
(config)#interface eth1 | Enter interface mode. |
(config-if)#ip vrf forwarding vrf1 | Associate eth1 to vrf1. |
(config-if)#ip address 2.2.2.2/24 | Assign the IP address 2.2.2.1 to eth1 in vrf1 |
(config-if)#commit | Commit the candidate configuration to the running configuration |