Step 1 |
interface type number
Device(config)# interface ethernet 1/1
|
Configures the interface used as a tunnel source.
|
Step 2 |
vrf forwarding transport-vrf-name
Device(config-if)# vrf forwarding red
|
(Optional) Associates the transport VRF with the tunnel.
Note
|
This step is not required if the tunnel endpoints are in the global routing table.
|
|
Step 3 |
- ip address ip-address mask
or
- ipv6 address ipv6-address/prefix-length
Device(config-if)# ip address 10.22.22.22 255.255.255.255
or
Device(config-if)# ipv6 address 2001:DB8:3::1/64
|
Sets an IP address for the tunnel source interface.
-
The address configured in this step for PE1 is used as the tunnel endpoint or tunnel destination while configuring the tunnel
on PE2 and vice versa.
-
This address may be in the global routing table or in the VRF.
|
Step 4 |
exit
|
Exits interface configuration mode and returns to global configuration mode.
|
Step 5 |
Configure static routes between provider edge devices.
|
Provider edge devices are reachable with a
ping or
ping vrf command.
|
Step 6 |
interface tunnel number
Device(config)# interface tunnel 0
|
Configures the tunnel interface and enters interface configuration mode. The same tunnel needs to be configured on PE2.
|
Step 7 |
vrf forwarding customer-vrf-name
Device(config-if)# vrf forwarding green
|
(Optional) Associates the customer VRF instance with the tunnel.
Note
|
This step is required only for VRF-aware tunnels.
|
|
Step 8 |
- ip address ip-address mask
or
- ipv6 address ipv6-address/prefix-length
Device(config-if)# ip address 10.4.1.1 255.255.255.0
or
Device(config-if)# ipv6 address 2001:DB8:3::1/64
|
Configures an IPv4 or IPv6 address for the tunnel.
|
Step 9 |
tunnel source interface-type interface-number
Device(config-if)# tunnel source ethernet 1/1
|
Sets the source address for a tunnel interface.
|
Step 10 |
tunnel destination [ip-address |
ipv6-address]
Device(config-if)# tunnel destination 10.44.44.44
|
(Optional) Specifies the destination for a tunnel interface.
-
The tunnel source address of device PE2 is used as the tunnel destination address of PE1 and vice versa.
-
If an IPv6 infrastructure exists between the two PE devices, use an IPv6 address. If an IPv4 infrastructure exists between
the two PE devices, use an IPv4 address (IPv6 over IPv4 tunnel).
|
Step 11 |
tunnel vrf transport-vrf-name
Device(config-if)# tunnel vrf red
|
(Optional) Associates the transport VRF with the tunnel.
Note
|
This step is not required if the tunnel endpoints are in the global routing table.
|
|
Step 12 |
tunnel mode {aurp | cayman | dvmrp | eon | gre | gre multipoint | gre ipv6 | ipip [decapsulate-any] | ipsec ipv4 | iptalk | ipv6 | ipsec
ipv6 | mpls | nos | rbscp}
Device(config-if)# tunnel mode ipv6
|
(Optional) Sets the encapsulation mode for the tunnel interface.
Note
|
This step is not required if the tunnel mode is GRE IPv4 as this is the default mode.
|
|
Step 13 |
exit
|
Exits interface configuration mode and enters global configuration mode.
|
Step 14 |
- ip route [vrf vrf-name]
prefix mask interface-type interface-number [next-hop-ip-address]
or
- ipv6 route [vrf vrf-name]
destination-ipv6-prefix
interface-type interface-number [next-hop-ipv6-address]
Device(config)# ip route 10.44.44.0 255.255.255.0 10.22.22.23
Device(config)# ip route vrf red 10.44.44.0 255.255.255.0 10.22.22.23
or
Device(config)# ipv6 route 2001:DB8:2:2::/64 2001:DB8:2:1::2
Device(config)# ipv6 route vrf green 2001:DB8:2:2::/64 2001:DB8:2:1::2
|
Establishes static routes to remote customer networks by using the configured tunnel.
-
Use the tunnel address as the next hop.
-
For PE1, configure a static route to network PE2-CE2. For PE2, configure a static route to network PE1-CE1.
|
Step 15 |
end
|
Exits global configuration mode and returns to privileged EXEC mode.
|