|
Command or Action |
Purpose |
|
enable
Example:
Router> enable
|
Enables privileged EXEC mode.
-
Enter your password if prompted.
|
|
configure terminal
Example:
Router# configure terminal
|
Enters global configuration mode. |
|
ip cef
Example:
Router(config)# ip cef
|
Enables Cisco Express Forwarding on the route processor. |
|
ip vrf vrf-name
Example:
Router(config)# ip vrf SOO_VRF
|
Defines a VRF instance and enters VRF configuration mode. |
|
rd route-distinguisher
Example:
Router(config-vrf)# rd 1:1
|
Creates routing and forwarding tables for a VRF and specifies the default RD for a VPN.
-
Use the route-distinguisher argument to specify the default RD for a VPN. There are two formats that you can use to specify an RD:
-
A 16-bit autonomous system number, a colon, and a 32-bit number, for example: 65000:3
-
A 32-bit IP address, a colon, and a 16-bit number, for example: 192.168.1.2:51
-
In this example, the RD uses an autonomous system number with the number 1 after the colon.
|
|
route-target {export | both} route-target-ext-community
Example:
Router(config-vrf)# route-target export 1:1
|
Creates a route-target extended community for a VRF.
-
Use the export keyword to export routing information to the target VPN extended community.
-
Use the both keyword to both import routing information from, and export routing information to, the target VPN extended community.
-
Use the route-target-ext-community argument to specify the VPN extended community.
Note |
Only the syntax applicable to this step is displayed. For a different use of this syntax, see Step 7. |
|
|
route-target {import | both} route-target-ext-community
Example:
Router(config-vrf)# route-target import 1:1
|
Creates a route-target extended community for a VRF.
-
Use the import keyword to import routing information from the target VPN extended community.
-
Use the both keyword to both import routing information from, and export routing information to, the target VPN extended community.
-
Use the route-target-ext-community argument to specify the VPN extended community.
|
|
exit
Example:
Router(config-vrf)# exit
|
Exits VRF configuration mode and returns to global configuration mode. |
|
interface type number
Example:
Router(config)# interface GigabitEthernet 1/0/0
|
Configures an interface type and enters interface configuration mode. |
|
ip vrf forwarding vrf-name [downstream vrf-name2]
Example:
Router(config-if)# ip vrf forwarding SOO_VRF
|
Associates a VRF with an interface or subinterface.
-
In this example, the VRF named SOO_VRF is associated with Gigabit Ethernet interface 1/0/0.
Note |
Executing this command on an interface removes the IP address, so the IP address should be reconfigured. |
|
|
ip address ip-address mask [secondary]
Example:
Router(config-if)# ip address 192.168.1.2 255.255.255.0
|
Configures an IP address.
-
In this example, Gigabit Ethernet interface 1/0/0 is configured with an IP address of 192.168.1.2.
|
|
end
Example:
Router(config-if)# end
|
Exits interface configuration mode and returns to privileged EXEC mode. |
|
show ip vrf [brief | detail | interfaces | id] [vrf-name] [output-modifiers]
Example:
Router# show ip vrf
|
Displays the configured VRFs.
-
Use this command to verify the configuration of this task.
|