bxm's IT Story

가상 링크 (Virtual Link) 본문

Network/Cisco (KEDU)

가상 링크 (Virtual Link)

bxmsta9ram 2021. 7. 1. 10:16

## Virtual link ##

R3]에서만 스위치 단자가 아닌 라우터 단자 생성

 


공통]

conf t

no ip domain lookup

line c 0

  logg sy

  exec-timeout 0

  exit

line vty 0 4

  pass cisco

  end


R1]

conf t

int lo0

  ip add 1.1.1.1 255.255.255.0

  exit

 

int f0/1

  no shut

  ip add 1.1.12.1 255.255.255.0

  exit

 

int f0/0

  no shut

  ip add 1.1.13.1 255.255.255.0

  end


R2]

conf t

int lo0

  ip add 1.1.2.2 255.255.255.0

  exit

 

int f0/1

  no shut

  ip add 1.1.12.2 255.255.255.0

  exit

 

int f0/0

  no shut

  ip add 1.1.23.2 255.255.255.0

  end


R3]

conf t

int lo0

  ip add 1.1.3.3 255.255.255.0

  exit

 

int f0/0

  no shut

  ip add 1.1.13.3 255.255.255.0

  exit

 

int f0/1

  no shut

  ip add 1.1.23.3 255.255.255.0

  exit

 

int f1/0

  no shut

  ip add 1.1.34.3 255.255.255.0

  end


R4]

conf t

int lo0

  ip add 1.1.4.4 255.255.255.0

  exit

 

int f0/0

  no shut

  ip add 1.1.34.4 255.255.255.0

  exit


## Ping 날리기 ##

 

R1]

ping 1.1.12.2

ping 1.1.13.3

R2]

ping 1.1.23.3

R3]

ping 1.1.34.4


## OSPF 돌리기 ##

R1]

conf t

router ospf 1

  router-id 1.1.1.1

  network 1.1.1.1 0.0.0.0 area 0

  network 1.1.12.1 0.0.0.0 area 0

  network 1.1.13.1 0.0.0.0 area 2

  exit

 

int lo0

  ip os net point-to-p

  end


R2]

conf t

router ospf 1

  router-id 1.1.2.2

  network 1.1.2.2 0.0.0.0 area 0

  network 1.1.12.2 0.0.0.0 area 0

  network 1.1.23.2 0.0.0.0 area 2

  exit

 

int lo0

  ip os net point-to-p

  end


R3]

conf t

router ospf 1

  router-id 1.1.3.3

  network 1.1.3.3 0.0.0.0 area 3

  network 1.1.34.3 0.0.0.0 area 3

  network 1.1.13.3 0.0.0.0 area 2

  network 1.1.23.3 0.0.0.0 area 2

  exit

 

int lo0

  ip os net point-to-p

  end


R4]

conf t

router ospf 1

  router-id 1.1.4.4

  network 1.1.4.4 0.0.0.0 area 3

  network 1.1.34.4 0.0.0.0 area 3

  exit

 

int lo0

  ip os net point-to-p

  end


공통]

show ip ospf nei

 

 

## 문제는 Area 3번이 R1]으로 넘어올까?  --> 넘어오지 않음.

## 왜? Backbone Area 0은 중앙에 있어야 하는데 Area 0 과 Area 3은 서로 떨어져 있음!!

     그래서 가상 링크를 맺어줘야한다!!

 

R1]

conf t

router ospf 1

  area 2 virtual-link 1.1.3.3

  end

  ## Area 2가 트랜짓 area(지나치는 area)가 되고, Area 0 과, Area 3이 강제로 맺어줌.


R2]

conf t

router ospf 1

  area 2 virtual-link 1.1.3.3

  end


R3]

conf t

router ospf 1

  area 2 virtual-link 1.1.1.1

  area 2 virtual-link 1.1.2.2

  end

 

 

## 만약에 R3의 lo0가 Area 2에 있으면 Link를 Area3에 있는 R3의 f1/0을 잡아줘야 한다!! !!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!


## 그러면 이제 Virtual Link 까지 Neighbor가 늘어나게 된다 ##

R1, R2, R3]

show ip ospf nei    


R1]

show ip route

Area 3의 내용들을 받게 되었다!


끝!

'Network > Cisco (KEDU)' 카테고리의 다른 글

IPv6와 Link-local(2)  (2) 2021.07.02
IPv6와 Link-local  (3) 2021.07.01
Full-mesh에서의 Frame-relay  (0) 2021.07.01
Ether Channel을 통한 Total MAP 구성  (0) 2021.06.30
Open_Source_NET_ NAT  (0) 2021.06.30