실습목표
R1, R2, R4, R5에만 BGP 설정을 하고, R3에는 BGP 설정을 하지 않는다.
R3에는 BGP 설정을 하지 않았기에 R1에서 Lo 0를 광고하여도 R2까지만 광고가 된다.
이를 R5로 광고가 되도록 설정해보아라.
R1 라우터 설정
R1(config)#int e0/0
R1(config-if)#ip add 1.1.12.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#int lo 0
R1(config-if)#ip add 172.16.1.1 255.255.255.0
R1(config-if)#int lo 0
R1(config-if)#ip add 172.16.1.1 255.255.255.0
R1(config-if)#no sh
R2 라우터 설정
R2(config)#int e0/0
R2(config-if)#ip add 1.1.12.2 255.255.255.0
R2(config-if)#no sh
R2(config-if)#int e0/1
R2(config-if)#ip add 1.1.23.2 255.255.255.0
R2(config-if)#no sh
R3 라우터 설정
R3(config)#int e0/0
R3(config-if)#ip add 1.1.23.3 255.255.255.0
R3(config-if)#no sh
R3(config-if)#int e0/1
R3(config-if)#ip add 1.1.34.3 255.255.255.0
R3(config-if)#no sh
R4 라우터 설정
R4(config)#int e0/0
R4(config-if)#ip add 1.1.34.4 255.255.255.0
R4(config-if)#no sh
R4(config-if)#int e0/1
R4(config-if)#ip add 1.1.45.4 255.255.255.0
R4(config-if)#no sh
R5 라우터 설정
R5(config)#int e0/0
R5(config-if)#ip add 1.1.45.5 255.255.255.0
R5(config-if)#no sh
======================================================
기본 설정을 마치고, BGP 설정을 해주겠다.
R1 라우터 설정
R1(config-if)#router bgp 100
R1(config-router)#neighbor 1.1.12.2 remote-as 200
R1(config-router)#network 172.16.1.0 mask 255.255.255.0
R2 라우터 설정
R2(config-if)#router bgp 200
R2(config-router)#neighbor 1.1.12.1 remote-as 100
R2(config-router)#neighbor 1.1.23.3 remote-as 200
R4 라우터 설정
R4(config-if)#router bgp 200
R4(config-router)#neighbor 1.1.34.3 remote-as 200
R4(config-router)#neighbor 1.1.45.5 remote-as 300
R5 라우터 설정
R5(config-if)#router bgp 300
R5(config-router)#neighbor 1.1.45.4 remote-as 200
BGP 설정을 마치고, R1부터 R5까지 LO 0 가 잘 광고가 되었는지 확인해보기 위해
Show ip bgp 명령어를 입력했다.
R2까지는 광고가 되었지만, R3라우터에 BGP를 설정하지 않아서
R4부터는 광고가 되지 않아 아무런 내용이 출력되지 않았다.
이러한 경우 정적 라우팅을 통해 R2~R4까지의 경로를 라우터에게 알려주는 방법이 있다.
R2(config)#ip route 1.1.34.0 255.255.255.0 1.1.23.3
R4(config)#ip route 1.1.23.0 255.255.255.0 1.1.34.3
R4(config)#ip route 1.1.12.0 255.255.255.0 1.1.34.3
정적 라우팅까지 마치자 R5에서 LO 0 가 광고되는 것을 확인할 수 있었다.
'시스코 > 시스코-실기' 카테고리의 다른 글
부하분산, BGP, EIGRP 부하분산에 대해서. (0) | 2022.01.14 |
---|---|
BGP - iBGP 와 eBGP를 활용한 토폴로지 (0) | 2022.01.13 |
BGP - 스위치로 연결된 라우터간 BGP (0) | 2022.01.13 |
BGP 기본실습 (0) | 2022.01.13 |
NAT - Static NAT, 정적 라우팅을 활용한 토폴로지 작성 (0) | 2022.01.12 |