Cisco Router eBGP 구성예제 입니다.
1. 구성도
2. 네트웍 정보
3. Config 정보
R1
router bgp 10
bgp log-neighbor-changes
no synchronization
neighbor 10.10.10.2 remote-as 90
network 10.10.1.0 mask 255.255.255.0
network 100.100.1.0 mask 255.255.255.0
network 10.10.10.0 mask 255.255.255.0
R2
router bgp 90
bgp log-neighbor-changes
no synchronization
neighbor 10.10.10.1 remote-as 10
neighbor 10.10.20.2 remote-as 100
network 10.10.2.0 mask 255.255.255.0
network 100.100.2.0 mask 255.255.255.0
network 10.10.20.0 mask 255.255.255.0
network 10.10.10.0 mask 255.255.255.0
R3
router bgp 100
bgp log-neighbor-changes
no synchronization
neighbor 10.10.20.1 remote-as 90
network 10.10.3.0 mask 255.255.255.0
network 100.100.3.0 mask 255.255.255.0
network 10.10.20.0 mask 255.255.255.0
network 10.10.0.0 mask 255.255.0.0
4. 상태확인
R1
R1#sh ip bgp
BGP table version is 10, local router ID is 10.10.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 10.10.1.0/24 0.0.0.0 0 0 32768 i
*> 10.10.2.0/24 10.10.10.2 0 0 0 90 i
*> 10.10.3.0/24 10.10.10.2 0 0 0 100 90 i
*> 10.10.10.0/24 0.0.0.0 0 0 32768 i
* 10.10.10.2 0 0 0 90 i
*> 10.10.20.0/24 10.10.10.2 0 0 0 90 i
*> 100.100.1.0/24 0.0.0.0 0 0 32768 i
*> 100.100.2.0/24 10.10.10.2 0 0 0 90 i
*> 100.100.3.0/24 10.10.10.2 0 0 0 100 90 i
R1#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, 5 subnets
C 10.10.1.0 is directly connected, Loopback1
B 10.10.2.0 [20/0] via 10.10.10.2, 00:12:52
B 10.10.3.0 [20/0] via 10.10.10.2, 00:12:52
C 10.10.10.0 is directly connected, FastEthernet0/0
B 10.10.20.0 [20/0] via 10.10.10.2, 00:12:52
100.0.0.0/24 is subnetted, 3 subnets
C 100.100.1.0 is directly connected, FastEthernet0/1
B 100.100.2.0 [20/0] via 10.10.10.2, 00:12:52
B 100.100.3.0 [20/0] via 10.10.10.2, 00:12:52
R2
R2#sh ip bgp
BGP table version is 11, local router ID is 10.10.2.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 10.10.1.0/24 10.10.10.1 0 0 0 10 i
*> 10.10.2.0/24 0.0.0.0 0 0 32768 i
*> 10.10.3.0/24 10.10.20.2 0 0 0 100 i
*> 10.10.10.0/24 0.0.0.0 0 0 32768 i
* 10.10.10.1 0 0 0 10 i
*> 10.10.20.0/24 0.0.0.0 0 0 32768 i
* 10.10.20.2 0 0 0 100 i
*> 100.100.1.0/24 10.10.10.1 0 0 0 10 i
*> 100.100.2.0/24 0.0.0.0 0 0 32768 i
*> 100.100.3.0/24 10.10.20.2 0 0 0 100 i
R2#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, 5 subnets
B 10.10.1.0 [20/0] via 10.10.10.1, 00:15:56
C 10.10.2.0 is directly connected, Loopback1
B 10.10.3.0 [20/0] via 10.10.20.2, 00:15:56
C 10.10.10.0 is directly connected, FastEthernet0/0
C 10.10.20.0 is directly connected, FastEthernet0/1
100.0.0.0/24 is subnetted, 3 subnets
B 100.100.1.0 [20/0] via 10.10.10.1, 00:15:56
C 100.100.2.0 is directly connected, FastEthernet1/0
B 100.100.3.0 [20/0] via 10.10.20.2, 00:15:56
R3
R3#sh ip bgp
BGP table version is 10, local router ID is 10.10.3.3
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 10.10.1.0/24 10.10.20.1 0 0 0 10 90 i
*> 10.10.2.0/24 10.10.20.1 0 0 0 90 i
*> 10.10.3.0/24 0.0.0.0 0 0 32768 i
*> 10.10.10.0/24 10.10.20.1 0 0 0 90 i
*> 10.10.20.0/24 0.0.0.0 0 0 32768 i
* 10.10.20.1 0 0 0 90 i
*> 100.100.1.0/24 10.10.20.1 0 0 0 10 90 i
*> 100.100.2.0/24 10.10.20.1 0 0 0 90 i
*> 100.100.3.0/24 0.0.0.0 0 0 32768 i
R3#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, 5 subnets
B 10.10.1.0 [20/0] via 10.10.20.1, 00:17:13
B 10.10.2.0 [20/0] via 10.10.20.1, 00:17:13
C 10.10.3.0 is directly connected, Loopback1
B 10.10.10.0 [20/0] via 10.10.20.1, 00:17:13
C 10.10.20.0 is directly connected, FastEthernet0/0
100.0.0.0/24 is subnetted, 3 subnets
B 100.100.1.0 [20/0] via 10.10.20.1, 00:17:13
B 100.100.2.0 [20/0] via 10.10.20.1, 00:17:13
C 100.100.3.0 is directly connected, FastEthernet1/0
Cisco ASA5500 1:1 Dynamic NAT 및 NAT 제외 설정 (0) | 2016.12.27 |
---|---|
ASA 5500 기본 interface 설정과 NAT 개념 (0) | 2016.12.27 |
BGP 동기 및 설정 no sync 사용 (0) | 2016.12.01 |
iBGP 와 eBGP 차이, Next-hop-self 옵션 (0) | 2016.12.01 |
네트워크 차단 Distribute-list, Prefix-list, 루트맵 (0) | 2016.11.30 |