Bueno señores hoy me dedique a aprender BGP segun un poc que ley no hice gran cosa pero les dejo mis SHow Run
Router COn BGP 1
show run
Building configuration...
ip address 200.200.200.200 255.255.255.255
!
interface Loopback100
ip address 10.10.10.1 255.255.255.0
!
interface Ethernet0
no ip address
shutdown
!
interface Serial0
ip address 20.20.20.1 255.255.255.0
no fair-queue
!
interface Serial1
ip address 192.168.1.6 255.255.255.252
clockrate 56000
!
router ospf 3
log-adjacency-changes
redistribute bgp 1 metric 100 subnets
network 20.20.20.0 0.0.0.255 area 0
default-information originate
router bgp 1
bgp log-neighbor-changes
network 192.168.1.4 mask 255.255.255.252
redistribute ospf 3 metric 4
neighbor 192.168.1.5 remote-as 2
!
ip classless
ip http server
!
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
!
end
Esta era su tabla de Enrutamiento
BGP_AS1#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, 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
200.200.200.0/32 is subnetted, 1 subnets
C 200.200.200.200 is directly connected, Loopback1
O E2 50.0.0.0/8 [110/20] via 20.20.20.2, 00:25:34, Serial0
100.0.0.0/32 is subnetted, 1 subnets
O 100.100.100.1 [110/65] via 20.20.20.2, 00:55:44, Serial0
3.0.0.0/32 is subnetted, 1 subnets
O IA 3.3.3.3 [110/65] via 20.20.20.2, 00:55:44, Serial0
4.0.0.0/32 is subnetted, 2 subnets
O IA 4.4.4.4 [110/129] via 20.20.20.2, 00:55:44, Serial0
O IA 4.5.5.5 [110/129] via 20.20.20.2, 00:55:45, Serial0
20.0.0.0/24 is subnetted, 1 subnets
C 20.20.20.0 is directly connected, Serial0
172.168.0.0/24 is subnetted, 1 subnets
O IA 172.168.2.0 [110/128] via 20.20.20.2, 00:55:45, Serial0
10.0.0.0/24 is subnetted, 1 subnets
C 10.10.10.0 is directly connected, Loopback100
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
B 192.168.1.0/24 [20/0] via 192.168.1.5, 00:14:17
C 192.168.1.4/30 is directly connected, Serial1
BGP_AS1#
Router Conetado Directamente con BGP AS 2
!
i
nterface Serial1
ip address 192.168.1.5 255.255.255.252
!
router bgp 2
bgp log-neighbor-changes
network 192.168.1.0
neighbor 192.168.1.6 remote-as 1
!
ip classless
ip http server
!
!
!
--More-- line con 0
logging synchronous
line aux 0
line vty 0 4
!
end
BGP_AS2#
tabla de Enrutamiento
BGP_AS2# show ip route
100.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 100.100.100.100/32 is directly connected, Loopback2
B 100.0.0.0/8 [20/4] via 192.168.1.6, 00:13:39
B 3.0.0.0/8 [20/4] via 192.168.1.6, 00:13:39
B 4.0.0.0/8 [20/4] via 192.168.1.6, 00:13:39
B 20.0.0.0/8 [20/0] via 192.168.1.6, 00:13:39
B 172.168.0.0/16 [20/4] via 192.168.1.6, 00:13:39
192.168.1.0/30 is subnetted, 1 subnets
C 192.168.1.4 is directly connected, Serial1
Y esta era un Extremo de la Topologia que estaba Con rip v1 y Ospf
interface Loopback1
ip address 4.4.4.4 255.255.255.255
no ip directed-broadcast
!
interface Serial0
ip address 40.40.40.1 255.255.255.0
no ip directed-broadcast
clockrate 56000
!
interface Serial1
ip address 172.168.2.2 255.255.255.0
no ip directed-broadcast
clockrate 56000
router ospf 3
redistribute rip metric 20
network 4.4.4.4 0.0.0.0 area 100
network 4.5.5.5 0.0.0.0 area 100
network 172.168.2.0 0.0.0.255 area 100
!
router rip
redistribute ospf 1 metric 2
network 40.0.0.0
!
no ip http server
ip classless
!
!
line con 0
transport input none
line aux 0
line vty 0 4
!
end
area100#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
U - per-user static route, o - ODR, P - periodic downloaded static route
T - traffic engineered route
Gateway of last resort is not set
R 50.0.0.0/8 [120/1] via 40.40.40.2, Serial0
100.0.0.0/32 is subnetted, 1 subnets
O IA 100.100.100.1 [110/65] via 172.168.2.1, Serial1
3.0.0.0/32 is subnetted, 1 subnets
O IA 3.3.3.3 [110/65] via 172.168.2.1, Serial1
4.0.0.0/32 is subnetted, 2 subnets
C 4.4.4.4 is directly connected, Loopback1
C 4.5.5.5 is directly connected, Loopback2
20.0.0.0/24 is subnetted, 1 subnets
O IA 20.20.20.0 [110/128] via 172.168.2.1, Serial1
172.168.0.0/24 is subnetted, 1 subnets
C 172.168.2.0 is directly connected, Serial1
40.0.0.0/24 is subnetted, 1 subnets
C 40.40.40.0 is directly connected, Serial0
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
O E2 192.168.1.0/24 [110/100] via 172.168.2.1, Serial1
O E2 192.168.1.4/30 [110/100] via 172.168.2.1, Serial1
area100#