Cisco Cisco IOS Software Release 12.2(33)SRE

ページ / 14
 
Any Transport over MPLS: Tunnel Selection
  Configuration Examples for Any Transport over MPLS: Tunnel Selection
6
Cisco IOS Release: Multiple releases
mpls traffic-eng tunnels
mpls ldp router-id Loopback0
interface Loopback0
 ip address 10.16.16.16 255.255.255.255
 no ip directed-broadcast
 no ip mroute-cache
!
interface Loopback2
 ip address 10.18.18.18 255.255.255.255
 no ip directed-broadcast
!
interface gigabitEthernet3/1
 ip address 10.0.0.2 255.255.255.0
 no ip directed-broadcast
 mpls traffic-eng tunnels
 mpls ip
 no cdp enable
 ip rsvp bandwidth 15000 15000
!
interface gigabitEthernet3/3 
 no ip address 
 no ip directed-broadcast 
 no cdp enable 
interface gigabitEthernet3/3.1 
 encapsulation dot1Q 222 
 no ip directed-broadcast 
 no cdp enable 
 mpls l2transport route 10.2.2.2 101 
interface ATM5/0
 no ip address
 no ip directed-broadcast
 no atm enable-ilmi-trap
 no atm ilmi-keepalive
 pvc 0/50 l2transport
  encapsulation aal5
  xconnect 10.2.2.2 150 encapsulation mpls
!
router ospf 1
 log-adjacency-changes
 network 10.0.0.0 0.0.0.255 area 0
 network 10.16.16.16 0.0.0.0 area 0
 mpls traffic-eng router-id Loopback0
 mpls traffic-eng area 0
Verifying the Configuration: Example
In the following example, the show mpls l2transport vc command shows the following information (in 
bold) about the VCs:
VC 101 has been assigned a preferred path called Tunnel1. The default path is disabled because the 
preferred path specified that the default path should not be used if the preferred path fails. 
VC 150 has been assigned an IP address of a loopback address on PE2. The default path can be used 
if the preferred path fails. 
Router# show mpls l2transport vc detail
Local interface: Gi0/0/0.1 up, line protocol up, Eth VLAN 222 up
  Destination address: 10.16.16.16, VC ID: 101, VC status: up
    Preferred path: Tunnel1,  active