12-04-2020 02:30 AM
i am not getting ping from PC (172.100.50.51 ) to PC ( 172.100.20.21).....
MY network diagram attached below ..
router 1 configuration:-
Building configuration...
Current configuration : 889 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
ip cef
no ipv6 cef
!
license udi pid CISCO1941/K9 sn FTX15246TGH
!
spanning-tree mode pvst
!
interface GigabitEthernet0/0
ip address 192.100.100.11 255.255.255.0
duplex auto
speed auto
!
interface GigabitEthernet0/1
ip address 172.100.20.1 255.255.255.0
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
router eigrp 1
distance eigrp 10 15
network 172.100.20.0 0.0.0.255
network 192.168.10.0
no auto-summary
!
router bgp 65002
bgp log-neighbor-changes
no synchronization
neighbor 192.100.100.12 remote-as 1010
network 172.100.20.0 mask 255.255.255.0
!
ip classless
!
ip flow-export version 9
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
end
Router#
Router#sh ip route
Codes: L - local, 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, 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
172.100.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.100.20.0/24 is directly connected, GigabitEthernet0/1
L 172.100.20.1/32 is directly connected, GigabitEthernet0/1
192.100.100.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.100.100.0/24 is directly connected, GigabitEthernet0/0
L 192.100.100.11/32 is directly connected, GigabitEthernet0/0
B 192.168.10.0/24 [20/0] via 192.100.100.12, 03:33:41
Router#
Router 2 configuration :-
Building configuration...
Current configuration : 1024 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
ip dhcp excluded-address 172.100.50.0 172.100.50.50
!
ip dhcp pool Tushar
network 172.100.50.0 255.255.255.0
default-router 172.100.50.1
!
ip cef
no ipv6 cef
!
license udi pid CISCO1941/K9 sn FTX1524LSP4
!
spanning-tree mode pvst
!
interface Loopback0
ip address 10.10.10.10 255.255.255.0
!
interface GigabitEthernet0/0
ip address 172.100.50.1 255.255.255.0
duplex auto
speed auto
!
interface GigabitEthernet0/1
ip address 192.168.10.10 255.255.255.0
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
router bgp 65002
bgp log-neighbor-changes
neighbor 192.168.10.11 remote-as 1010
network 172.100.50.0 mask 255.255.255.0
network 10.10.10.0 mask 255.255.255.0
!
ip classless
!
ip flow-export version 9
!
ip access-list standard PERMIT
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
end
Router#sh ip route
Codes: L - local, 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, 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
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.10.10.0/24 is directly connected, Loopback0
L 10.10.10.10/32 is directly connected, Loopback0
172.100.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.100.50.0/24 is directly connected, GigabitEthernet0/0
L 172.100.50.1/32 is directly connected, GigabitEthernet0/0
B 192.100.100.0/24 [20/0] via 192.168.10.11, 03:36:07
192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.10.0/24 is directly connected, GigabitEthernet0/1
L 192.168.10.10/32 is directly connected, GigabitEthernet0/1
Router 6 (Airtel ) configuration :-
Current configuration : 728 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
ip cef
no ipv6 cef
!
spanning-tree mode pvst
!
interface FastEthernet0/0
ip address 192.168.10.11 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.100.100.12 255.255.255.0
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
router bgp 1010
bgp log-neighbor-changes
neighbor 192.168.10.10 remote-as 65002
neighbor 192.100.100.11 remote-as 65002
redistribute connected
!
ip classless
!
ip flow-export version 9
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
end
Router#sh 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
10.0.0.0/24 is subnetted, 1 subnets
B 10.10.10.0 [20/0] via 192.168.10.10, 03:38:13
172.100.0.0/24 is subnetted, 2 subnets
B 172.100.20.0 [20/0] via 192.100.100.11, 03:38:13
B 172.100.50.0 [20/0] via 192.168.10.10, 03:38:13
C 192.100.100.0/24 is directly connected, FastEthernet0/1
C 192.168.10.0/24 is directly connected, FastEthernet0/0
(Not getting route of router 2 on router 1 and viceversa)
12-04-2020 02:38 AM
Hello,
your Airtel router is connected to two routers in the same AS ? That won't work, as routes that contain it's own AS are dropped. You need to change one of the AS numbers to something else (e.g. 65003) and also change the configurations accordingly.
router bgp 1010
bgp log-neighbor-changes
neighbor 192.168.10.10 remote-as 65002
neighbor 192.100.100.11 remote-as 65002
redistribute connected
12-04-2020 06:03 AM
Hello
Due to bgp loop avoidance the two rtrs runing in the same ASN wont accept prefixes that contain thier own ASN in the sequence number of the as-path, you can negate this loop avoidance if you desire with the following:
both rtrs in ASN 65002:
router bgp 65002
neighbor x.x.x. allowas-in 1010
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide