Step 1 |
enable
Example:
|
Enters
privileged EXEC mode.
|
Step 2 | configure
terminal
Example:
Device# configure terminal
|
Enters global
configuration mode.
|
Step 3 | interface
type/slot/port
Example:
Device(config)# interface Loopback0
|
Specifies the
interface by type, slot, and port number, and enters interface configuration
mode.
|
Step 4 | ip address
ip-address
mask
[secondary
[vrf
vrf-name]]
Example:
Device(config-if)# ip address 209.165.202.225 255.255.255.224
|
Sets a primary
or secondary IP address for an interface.
|
Step 5 | exit
Example:
|
Exits interface
configuration mode.
|
Step 6 | interface
type/slot/port
Example:
Device(config)# interface Tunnel0
|
Specifies the
interface by type, slot, and port number, and enters interface configuration
mode.
|
Step 7 | ip address
ip-address
mask
[secondary
[vrf
vrf-name]]
Example:
Device(config-if)# ip address 209.165.200.225 255.255.255.224
|
Sets a primary
or secondary IP address for an interface.
|
Step 8 | mpls ip
Example:
Device(config-if)# mpls ip
|
Enables
Multiprotocol Label Switching (MPLS) forwarding of IPv4 packets along normally
routed paths for a particular interface.
|
Step 9 | tunnel source
{ip-address
|
type/number}
Example:
Device(config-if)# tunnel source 209.165.201.1
|
Configures the
tunnel source.
|
Step 10 | tunnel destination
{hostname
|
ip-address}
Example:
Device(config-if)# tunnel destination 209.165.201.2
|
Configures the
tunnel destination.
|
Step 11 | exit
Example:
|
Exits
interface configuration mode.
|
Step 12 | interface
type/slot/port
Example:
Device(config)# interface Tunnel1
|
Specifies the
interface by type, slot, and port number, and enters interface configuration
mode.
|
Step 13 | ip address
ip-address
mask
[secondary
[vrf
vrf-name]]
Example:
Device(config-if)# ip address 209.165.201.3 255.255.255.224
|
Sets a primary
or secondary IP address for an interface.
|
Step 14 | mpls ip
Example:
Device(config-if)# mpls ip
|
Enables
Multiprotocol Label Switching (MPLS) forwarding of IPv4 packets along normally
routed paths for a particular interface.
|
Step 15 | tunnel source
{ip-address
|
type/number}
Example:
Device(config-if)# tunnel source 209.165.201.4
|
Configures the
tunnel source.
|
Step 16 | tunnel destination
{hostname
|
ip-address }
Example:
Device(config-if)# tunnel destination 209.165.201.5
|
Configures the
tunnel destination.
|
Step 17 | exit
Example:
|
Exits
interface configuration mode.
|
Step 18 | ip route
[vrf
vrf-name]
prefix mask
{ip-address
|
interface-type
interface-number
[ip-address]}
[dhcp] [distance] [name
next-hop-name] [permanent
|track
number]
[tag
tag]
Example:
Device(config)# ip route 209.165.201.6 255.255.255.224 Tunnel0
|
Establishes a
static route.
|
Step 19 | ip route
[vrf
vrf-name]
prefix mask
{ip-address
|
interface-type
interface-number
[ip-address]}
[dhcp] [distance
] [name
next-hop-name
] [permanent
|
track
number]
[tag
tag]
Example:
Device(config)# ip route 209.165.201.7 255.255.255.255 Tunnel1
|
Establishes
another static route.
|
Step 20 | l2
vfi
name
manual
Example:
Device(config)# l2 vfi green manual
|
Creates a
Layer 2 virtual forwarding instance (VFI) and enters Layer 2 manual
configuration mode.
|
Step 21 | vpn
id
vpn-id
Example:
Device(config-vfi)# vpn id 100
|
Configures a
VPN ID for a VPLS domain. The emulated VCs bound to this Layer 2 VRF use this
VPM ID for signaling.
|
Step 22 | neighbor
ip-address
[vc-id
] {encapsulation mpls
|
pw-class
pw-class-name
}
[no-split-horizon]
Example:
Device(config-vfi)# neighbor 209.165.201.7 encapsulation mpls
|
Specifies the
router that should form a point-to-point Layer 2 virtual forwarding interface
(VFI) connection.
|
Step 23 | neighbor
ip-address
[vc-id
] {
encapsulation mpls
|
pw-class
pw-class-name
}
[no-split-horizon]
Example:
Device(config-vfi)# neighbor 209.165.201.6 encapsulation mpls
|
Specifies the
router that should form a point-to-point Layer 2 virtual forwarding interface
(VFI) connection.
|
Step 24 | exit
Example:
|
Exits Layer 2
manual configuration mode.
|
Step 25 | interface
type
number
Example:
Device(config)# interface gigabitEthernet 5/23
|
Selects an
interface to configure and enters interface configuration mode.
|
Step 26 | switchport
mode
access
Example:
Device(config-if)# switchport mode access
|
Sets the
interface type to nontrunking, nontagged single VLAN Layer 2 interface.
|
Step 27 | switchport
access
vlan
vlan-id
Example:
Device(config-if)# switchport access vlan 100
|
Sets the VLAN
when the interface is in access mode and enters Layer 2 manual configuration
mode.
|
Step 28 | interface
vlan
vlan-id
Example:
Device(config-vfi)# interface vlan 100
|
Creates or
accesses a dynamic switched virtual interface (SVI).
|
Step 29 | xconnect
vfi
vfi-name
Example:
Device(config-vfi)# xconnect vfi green
|
Specifies a
Layer 2 VFI that you are binding to the VLAN port.
|
Step 30 | exit
Example:
|
Exits Layer 2
manual configuration mode and returns to global configuration mode.
|
Step 31 | platform
vpls
gre
favor-performance
Example:
Device(config)# platform vpls gre favor-performance
|
Optional step
to enable scheme 2 of VPLS over GRE.
|