Sei sulla pagina 1di 3

PE1#conf t Enter configuration commands, one per line. End with CNTL/Z. PE1(config)# *Jan 8 20:29:13.

511: %LDP-5-NBRCHG: LDP Neighbor 192.168.0.1:0 (1) is UP PE1(config)#rou PE1(config)#ip vrf vrf *Jan 8 20:29:29.007: %BGP-5-ADJCHANGE: neighbor 192.168.0.12 Up PE1(config)#ip vrf vrf1 PE1(config-vrf)#rd 2:1 PE1(config-vrf)#ro PE1(config-vrf)#route-target e PE1(config-vrf)#route-target export 2:1 PE1(config-vrf)#route-target import 2:1 PE1(config-vrf)#eit ^ % Invalid input detected at '^' marker. PE1(config-vrf)#exit PE1(config)#int f2/0 PE1(config-if)#ip vrf fo PE1(config-if)#ip vrf forwarding vrf1 % Interface FastEthernet2/0 IP address 172.1.1.1 removed due to enabling VRF vrf 1 PE1(config-if)#ip add PE1(config-if)#ip address 172.1.1.1 255.255.255.248 PE1(config-if)#no shut PE1(config-if)#exit PE1(config)#rou PE1(config)#router con PE1(config)#router os PE1(config)#router ospf 2 vrf vrf1 PE1(config-router)#ne PE1(config-router)#net PE1(config-router)#network 172.0.0.0 0.255.255.255 area 0 PE1(config-router)#exit PE1(config)#rou PE1(config)#router b PE1(config)#router bgp 2 PE1(config-router)#ad PE1(config-router)#address-family i PE1(config-router)#address-family ipv4 v PE1(config-router)#address-family ipv4 vrf vrf1 PE1(config-router-af)#red PE1(config-router-af)#redistribute os PE1(config-router-af)#redistribute ospf 2 v PE1(config-router-af)#redistribute os PE1(config-router-af)#redistribute ospf 2 m PE1(config-router-af)#redistribute ospf 2 ma PE1(config-router-af)#redistribute ospf 2 match in PE1(config-router-af)#redistribute ospf 2 match internal PE1(config-router-af)#exit PE1(config-router)#end PE1# PE1#s *Jan 8 20:32:04.795: %SYS-5-CONFIG_I: Configured from console by console PE1#sh ip pro PE1#sh ip protocols vrf vrf1 Routing Protocol is "ospf 2" Outgoing update filter list for all interfaces is not set

Incoming update filter list for all interfaces is not set Router ID 172.1.1.1 It is an area border router Number of areas in this router is 1. 1 normal 0 stub 0 nssa Maximum path: 4 Routing for Networks: 172.0.0.0 0.255.255.255 area 0 Reference bandwidth unit is 100 mbps Routing Information Sources: Gateway Distance Last Update Distance: (default is 110) Routing Protocol is "bgp 2" Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set IGP synchronization is disabled Automatic route summarization is disabled Redistributing: ospf 2 Maximum path: 1 Routing Information Sources: Gateway Distance Last Update Distance: external 20 internal 200 local 200 PE1# PE1# PE1# PE1# PE1# PE1#sh ip ro PE1#sh ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is not set 10.0.0.0/29 is subnetted, 3 subnets 10.1.2.0 [110/192] via 10.1.1.1, 00:02:22, Serial1/1 10.1.1.0 is directly connected, Serial1/1 10.1.0.0 [110/128] via 10.1.1.1, 00:02:22, Serial1/1 192.168.0.0/32 is subnetted, 4 subnets C 192.168.0.11 is directly connected, Loopback0 O 192.168.0.12 [110/193] via 10.1.1.1, 00:02:22, Serial1/1 O 192.168.0.1 [110/65] via 10.1.1.1, 00:02:22, Serial1/1 O 192.168.0.2 [110/129] via 10.1.1.1, 00:02:22, Serial1/1 PE1#sh ip route v PE1#sh ip route vrf vrf1 O C O Routing Table: vrf1 Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route

Gateway of last resort is not set 172.1.0.0/29 is subnetted, 1 subnets C 172.1.1.0 is directly connected, FastEthernet2/0 PE1#sh ip route vrf vrf1 Routing Table: vrf1 Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is not set B 140.1.0.0/32 140.1.1.1 172.1.0.0/29 172.1.1.0 172.1.2.0 is subnetted, 1 subnets [200/2] via 192.168.0.12, 00:01:04 is subnetted, 2 subnets is directly connected, FastEthernet2/0 [200/0] via 192.168.0.12, 00:01:04

C B PE1# PE1#sh ip route vrf vrf1

Routing Table: vrf1 Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is not set B C B 140.1.0.0/32 140.1.1.1 172.1.0.0/29 172.1.1.0 172.1.2.0 is subnetted, 1 subnets [200/2] via 192.168.0.12, 00:03:39 is subnetted, 2 subnets is directly connected, FastEthernet2/0 [200/0] via 192.168.0.12, 00:03:39