실습목표 

EIGRP와 BGP를 활용해 이더채널처럼 운용할 계획이다.

모든 라우터에 BGP를 설정하고, R2와 R3에만 EIGRP를 사용할 것이다.

 

R1 라우터 설정

R1(config)#int e0/1
R1(config-if)#ip add 1.1.21.1 255.255.255.0
R1(config-if)#no sh

R1(config-if)#int e0/0
R1(config-if)#ip add 1.1.12.1 255.255.255.0
R1(config-if)#no sh

 

R1(config)#int lo 0
R1(config-if)#ip add 10.10.0.1 255.255.255.0
R1(config-if)#no sh

R1(config-if)#int lo 1
R1(config-if)#ip add 100.100.100.1 255.255.255.0
R1(config-if)#no sh

 

R2 라우터 설정

R2(config-if)#int e0/0
R2(config-if)#ip add 1.1.32.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

 

R2(config-if)#int e0/2
R2(config-if)#ip add 1.1.12.2 255.255.255.0
R2(config-if)#no sh

 

R2(config-if)#int e0/3
R2(config-if)#ip add 1.1.21.2 255.255.255.0
R2(config-if)#no sh

 

R2(config)#int lo 0
R2(config-if)#ip add 10.10.10.1 255.255.255.0
R2(config-if)#no sh

 

R3 라우터 설정

R3(config)#int e0/0
R3(config-if)#ip add 1.1.32.3 255.255.255.0
R3(config-if)#no sh

 

R3(config-if)#int e0/1
R3(config-if)#ip add 1.1.23.3 255.255.255.0
R3(config-if)#no sh

R3(config-if)#int e0/2
R3(config-if)#ip add 1.1.34.3 255.255.255.0
R3(config-if)#no sh

 

R3(config)#int lo 0
R3(config-if)#ip add 10.10.20.1 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

 

===============================================================

기본설정에서 경로와 LO 정보들을 만들었다.

BGP 설정을 해주겠다.

 

R1 라우터 설정

R1(config)#router bgp 100
R1(config-router)#neighbor 1.1.21.2 remote-as 300
R1(config-router)#neighbor 1.1.12.2 remote-as 300
R1(config-router)#network 10.10.0.0 mask 255.255.255.0
R1(config-router)#network 100.100.100.0 mask 255.255.255.0

 

R2 라우터 설정

R2(config-router)#router bgp 300
R2(config-router)#neighbor 1.1.21.1 remote-as 100
R2(config-router)#neighbor 1.1.12.1 remote-as 100

R2(config-router)#neighbor 1.1.23.3 remote-as 300
R2(config-router)#neighbor 1.1.32.3 remote-as 300

R2(config-router)#network 10.10.10.0 mask 255.255.255.0

 

R3 라우터 설정

R3(config)#router bgp 300
R3(config-router)#neighbor 1.1.23.2 remote-as 300
R3(config-router)#neighbor 1.1.32.2 remote-as 300
R3(config-router)#neighbor 1.1.34.4 remote-as 200
R3(config-router)#network 10.10.20.0 mask 255.255.255.0

 

R4 라우터 설정

R4(config)#router bgp 200
R4(config-router)#neighbor 1.1.34.3 remote-as 300

 

bgp 설정을 마치고 R4 라우터에서 광고받은 네트워크를 확인해 본다.

R1라우터에서의 LO 네트워크를 하나도 광고받지 못했다.

한단계씩 올라가며 어디까지 광고받았는지 확인 해보았다.

바로 앞 R3에서 R1의 LO 네트워크에 대한 광고를 받았지만,

최적의 경로가 아니고 더 이상 다음 eBGP로 광고가 되지 않는다.

Next-hop을 확인해보니 1.1.12.1로 R1 라우터의 정보가 출력되어 있다.

다음 명령어를 통해 Next-hop을 임의로 지정해주었다.

 

R2(config-router)#neighbor 1.1.12.1 next-hop-self
R2(config-router)#neighbor 1.1.21.1 next-hop-self

 

 

해당 명령어를 입력하자, 정상적으로 네트워크를 광고받아 출력되는 것을 확인할 수 있었다.

 

EIGRP 라우팅을 활용해 부하분산을 시도한다.

 

EIGRP로 라우팅을 하자 라우팅 테이블에 아래와 같은 항목이 추가 되었다.

하나의 라우터에 두가지 경로가 표시되는데, 작업을 두개 이상의 포트로 나누어 한다고 해서 부하분산 이라고 한다.

 

D        10.10.20.0/24 [90/409600] via 1.1.32.3, 00:00:31, Ethernet0/0
                              [90/409600] via 1.1.23.3, 00:00:31, Ethernet0/1

   -> 부하 분산(equal cost Load balancing, 메트릭 동일할 때 가능)

 

만약에 1.1.32.2 경로를 강제로 끊어보았더니,

네트워크가 정지하지 않고 1.1.23.2와 연결되어 통신이 된다는 것을 확인할 수 있었다.

+ Recent posts