Step 1 |
enable
Example:
|
Enables privileged EXEC mode.
|
Step 2 |
configure
terminal
Example:
Router# configure terminal
|
Enters global configuration mode.
|
Step 3 |
ip
vrf
vrf-id
Example:
Router(config)# ip vrf red
|
Defines a VPN routing and forwarding (VRF) instance and enters
VRF configuration mode.
|
Step 4 |
rd
route-distinguisher
Example:
|
Creates a routing and forwarding table for a Virtual Private
Network (VPN) routing/forwarding instance (VRF).
|
Step 5 |
route-target
{import |
export |
both}
route-target-ext-community
Example:
Router(config)# route-target both 200:20
|
Creates a route-target extended community for a VPN VRF.
|
Step 6 |
interface
type
number
Example:
Router(config)# interface loopback 0
|
Specifies the interface type and number to configure and enters
interface configuration mode.
|
Step 7 |
ip
address
ip-address
mask
Example:
Router(config-if)# ip address 172.20.1.2 255.255.255.0
|
Configure an IP address on the interface.
|
Step 8 |
exit
Example:
|
Exits interface configuration mode and returns to global
configuration mode.
|
Step 9 |
mpls
label
{ldp |
tdp}
Example:
Router(config)# mpls label protocol ldp
|
Specifies the MPLS label distribution protocol.
|
Step 10 |
mpls
ldp
router-id
type
number
Example:
Router(config)# mpls ldp router-id loopback0
|
Specifies a preferred interface for determining the Label
Distribution Protocol (LDP) router ID.
|
Step 11 |
interface
type
number
Example:
Router(config-if)# interface fastethernet1/1
|
Specifies the interface type and number to configure and enters
interface configuration mode.
|
Step 12 |
ip
address
ip-address
mask
Example:
Router(config-if)# ip address 172.16.1.2 255.255.255.0
|
Configures an IP address on the interface.
|
Step 13 |
mpls
ip
Example:
Router(config-if)# mpls ip
|
Enables MPLS forwarding of IPv4 packets along normally routed
paths for a particular interface.
|
Step 14 |
ip
flow
ingress
Example:
Router(config-if)# ip flow ingress
|
Enables NetFlow on the interface to capture traffic that is being
received by the interface.
|
Step 15 |
interface
type
number
Example:
Router(config)# interface GigabitEthernet5/2
|
Specifies the interface type and number to configure and enters
interface configuration mode.
|
Step 16 |
ip
vrf
forwarding
vrf-id
Example:
Router(config-if)# ip vrf forwarding red
|
Associates a VPN VRF with an interface or subinterface.
|
Step 17 |
ip
address
ip-address
mask
Example:
Router(config-if)# ip address 10.1.0.1 255.255.255.0
|
Configure an IP address on the interface.
|
Step 18 |
exit
Example:
|
Exits interface configuration mode and returns to global
configuration mode.
|
Step 19 |
mls
nde
sender
Example:
Router(config)# mls nde sender
|
Enables NetFlow on the PFC.
|
Step 20 |
mls
flow
ip
{interface-destination-source |
interface-full}
Example:
Router(config)# mls flow ip interface-destination-source
|
Specifies the NetFlow flow mask for IP traffic.
|
Step 21 |
ip
flow-export
version
9
Example:
Router(config)# ip flow-export version 9
|
Configures NetFlow data export to use the version 9 export
format.
|
Step 22 |
ip
flow-export
destination
{ip-address |
hostname}
udp-port
Example:
Router(config)# ip flow-export destination 172.16.2.6 99
|
Configures the IP address or hostname of the workstation to which
you want to send the NetFlow information and the number of the UDP port on
which the workstation is listening for this input.
|
Step 23 |
flow
hardware
mpls-vpn
ip
vrf-id
Example:
Router(config)# flow hardware mpls-vpn ip red
|
Enables the NDE for VRF Interfaces feature for the VRF.
|