Você está na página 1de 12

MPLS BAJO OSPF

CONFIG DE EQUIPOS: ############################################CONFIG QUE SI FUNCA ############################################ (P)----R1 P# P# P#SHOW RUN Building configuration... Current configuration : 1005 bytes ! version 12.4 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname P ! boot-start-marker boot-end-marker

! ! no aaa new-model memory-size iomem 5 ! ! ip cef ! ! ! mpls label protocol ldp ! interface Loopback0 ip address 10.10.10.100 255.255.255.255 ! interface FastEthernet0/0 ip address 10.10.10.2 255.255.255.252 duplex auto speed auto mpls label protocol ldp mpls ip ! interface FastEthernet0/1 ip address 10.10.10.6 255.255.255.252 duplex auto speed auto mpls label protocol ldp mpls ip ! router ospf 10 router-id 10.10.10.100 log-adjacency-changes network 10.10.10.4 0.0.0.0 area 0 network 10.10.10.6 0.0.0.0 area 0 network 10.10.10.100 0.0.0.0 area 0 ! i -----------------------------------------(P-1)---R2 hostname PE-1 ! boot-start-marker boot-end-marker ! ! no aaa new-model

memory-size iomem 5 ! ! ip cef ! ! ip vrf BCP rd 1:100 route-target export 1:100 route-target import 1:100 ! ip vrf BNACION rd 1:200 route-target export 1:200 route-target import 1:200 ! ! mpls label protocol ldp interface Loopback0 ip address 10.10.10.101 255.255.255.255 ! interface FastEthernet0/0 ip address 10.10.10.1 255.255.255.252 duplex auto speed auto mpls label protocol ldp mpls ip ! interface FastEthernet0/1 ip vrf forwarding BCP ip address 172.16.1.1 255.255.255.252 duplex auto speed auto ! interface FastEthernet1/0 ip vrf forwarding BNACION ip address 192.168.1.1 255.255.255.252 duplex auto speed auto ! interface FastEthernet2/0 no ip address shutdown duplex auto speed auto ! router ospf 10

router-id 10.10.10.101 log-adjacency-changes network 10.10.10.1 0.0.0.0 area 0 network 10.10.10.101 0.0.0.0 area 0 ! router bgp 1 no synchronization bgp log-neighbor-changes neighbor 10.10.10.102 remote-as 1 neighbor 10.10.10.102 update-source Loopback0 no auto-summary ! address-family vpnv4 neighbor 10.10.10.102 activate neighbor 10.10.10.102 send-community extended exit-address-family ! address-family ipv4 vrf BNACION neighbor 192.168.1.2 remote-as 3 neighbor 192.168.1.2 activate neighbor 192.168.1.2 as-override no synchronization exit-address-family ! address-family ipv4 vrf BCP neighbor 172.16.1.2 remote-as 11 neighbor 172.16.1.2 activate no synchronization exit-address-family ! ip http server no ip http secure-server ip forward-protocol nd end PE-1# -------------------------------------------------------(PE-2)---R3

PE-2#show run PE-2#show running-config Building configuration... Current configuration : 1855 bytes ! version 12.4

service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname PE-2 ! boot-start-marker boot-end-marker ! ! no aaa new-model memory-size iomem 5 ! ! ip cef ! ! ip vrf BCP rd 1:100 route-target export 1:100 route-target import 1:100 ! ip vrf BNACION rd 1:200 route-target export 1:200 route-target import 1:200 ! ! mpls label protocol ldp interface Loopback0 ip address 10.10.10.102 255.255.255.255 ! interface FastEthernet0/0 ip address 10.10.10.5 255.255.255.252 duplex auto speed auto mpls label protocol ldp mpls ip ! interface FastEthernet0/1 ip vrf forwarding BCP ip address 172.16.2.1 255.255.255.252 duplex auto speed auto ! interface FastEthernet1/0 ip vrf forwarding BNACION

ip address 192.168.2.1 255.255.255.252 duplex auto speed auto ! interface FastEthernet2/0 no ip address shutdown duplex auto speed auto ! router ospf 10 router-id 10.10.10.102 log-adjacency-changes network 10.10.10.5 0.0.0.0 area 0 network 10.10.10.102 0.0.0.0 area 0 ! router bgp 1 no synchronization bgp log-neighbor-changes neighbor 10.10.10.101 remote-as 1 neighbor 10.10.10.101 update-source Loopback0 no auto-summary ! address-family vpnv4 neighbor 10.10.10.101 activate neighbor 10.10.10.101 send-community extended exit-address-family ! address-family ipv4 vrf BNACION neighbor 192.168.2.2 remote-as 3 neighbor 192.168.2.2 activate neighbor 192.168.2.2 as-override no synchronization exit-address-family ! address-family ipv4 vrf BCP neighbor 172.16.2.2 remote-as 23 neighbor 172.16.2.2 activate no synchronization exit-address-family end PE-2# ----------------------------------------------------------------R4

Router> Router>ena Router#show run Building configuration... Current configuration : 1202 bytes ! version 12.4 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname Router ! boot-start-marker boot-end-marker ! ! no aaa new-model memory-size iomem 5 ! ! ip cef ! interface Loopback1 ip address 172.16.10.1 255.255.255.0 ! interface Loopback2 ip address 172.16.11.1 255.255.255.0 ! interface Loopback3 ip address 172.16.12.1 255.255.255.0 ! interface FastEthernet0/0 ip address 172.16.1.2 255.255.255.252 duplex auto speed auto ! interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! router bgp 11 bgp log-neighbor-changes

neighbor 172.16.1.1 remote-as 1 ! address-family ipv4 redistribute connected route-map bgp-red neighbor 172.16.1.1 activate no auto-summary no synchronization network 172.16.10.0 mask 255.255.255.0 exit-address-family ! ip http server no ip http secure-server ip forward-protocol nd ip access-list standard REDIST permit 172.16.11.0 0.0.0.255 permit 172.16.12.0 0.0.0.255 ! route-map bgp-red permit 10 match ip address REDIST ! ! ! ! control-plane end Router# -----------------------------------------------------R5 Router>ENA Router#show run Router#show running-config Building configuration... Current configuration : 962 bytes ! version 12.4 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname Router ! boot-start-marker boot-end-marker

! ! no aaa new-model memory-size iomem 5 ! ! ip cef ! interface Loopback1 ip address 192.168.10.1 255.255.255.0 ! interface Loopback2 ip address 192.168.11.1 255.255.255.0 ! interface Loopback3 ip address 192.168.12.1 255.255.255.0 ! interface FastEthernet0/0 ip address 192.168.1.2 255.255.255.252 duplex auto speed auto ! interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! router bgp 3 no synchronization bgp log-neighbor-changes network 192.168.10.0 network 192.168.11.0 network 192.168.12.0 neighbor 192.168.1.1 remote-as 1 no auto-summary ! ip http server no ip http secure-server ip forward-protocol nd ! control-plane end Router#

---------------------------------------------------R6 Router#show run Building configuration... Current configuration : 1093 bytes ! version 12.4 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname Router ! boot-start-marker boot-end-marker ! ! no aaa new-model memory-size iomem 5 ! ! ip cef ! interface Loopback1 ip address 172.16.20.1 255.255.255.0 ! interface Loopback2 ip address 172.16.21.1 255.255.255.0 ! interface Loopback3 ip address 172.16.22.1 255.255.255.0 ! interface FastEthernet0/0 ip address 172.16.2.2 255.255.255.252 duplex auto speed auto ! interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! router bgp 23 bgp log-neighbor-changes

neighbor 172.16.2.1 remote-as 1 ! address-family ipv4 neighbor 172.16.2.1 activate no auto-summary no synchronization network 172.16.20.0 mask 255.255.255.0 network 172.16.21.0 mask 255.255.255.0 network 172.16.22.0 mask 255.255.255.0 exit-address-family ! ip http server no ip http secure-server ip forward-protocol nd ! control-plane end Router# --------------------------------------------------------R7 Router#show run Building configuration... Current configuration : 1093 bytes ! version 12.4 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname Router ! boot-start-marker boot-end-marker ! ! no aaa new-model memory-size iomem 5 ! ! ip cef

interface Loopback1 ip address 172.16.20.1 255.255.255.0 ! interface Loopback2 ip address 172.16.21.1 255.255.255.0 ! interface Loopback3 ip address 172.16.22.1 255.255.255.0 ! interface FastEthernet0/0 ip address 172.16.2.2 255.255.255.252 duplex auto speed auto ! interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! router bgp 23 bgp log-neighbor-changes neighbor 172.16.2.1 remote-as 1 ! address-family ipv4 neighbor 172.16.2.1 activate no auto-summary no synchronization network 172.16.20.0 mask 255.255.255.0 network 172.16.21.0 mask 255.255.255.0 network 172.16.22.0 mask 255.255.255.0 exit-address-family ! ip http server no ip http secure-server ip forward-protocol nd control-plane ! ! ! end Router#

Você também pode gostar