bxm's IT Story
IPv6를 통한 Frame-Relay (Full-mesh) 본문
공통]
ena
conf t
no ip domain lookup
line c 0
logg sy
exec-timeout 0
exit
line vty 0 4
pass cisco
exit
int s1/0
no shut
encapsulation frame-relay
no frame-relay inverse-arp
clock rate 64000
end
R1]
conf t
ipv6 unicast-routing
int lo0
ipv6 address 3000:1:1:1::1/64
exit
int s1/0
ipv6 address 3000:1:1:123::1/64
fram map ipv6 3000:1:1:123::2 102 br
fram map ipv6 3000:1:1:123::3 102 br
end
wr
R2]
conf t
ipv6 unicast-routing
int lo0
ipv6 address 3000:1:1:2::2/64
exit
int s1/0.123 m
ipv6 address 3000:1:1:123::2/64
fram map ipv6 3000:1:1:123::1 201 br
fram map ipv6 3000:1:1:123::3 203 br
end
wr
R3]
conf t
ipv6 unicast-routing
int lo0
ipv6 address 3000:1:1:3::3/64
exit
int s1/0.123 m
ipv6 address 3000:1:1:123::3/64
fram map ipv6 3000:1:1:123::1 302 br
fram map ipv6 3000:1:1:123::2 302 br
exit
int s1/0.34 p
ipv6 address 3000:1:1:34::3/64
fram inter 304
end
wr
R4]
conf t
ipv6 unicast-routing
int lo0
ipv6 address 3000:1:1:4::4/64
exit
int s1/0.34 p
ipv6 address 3000:1:1:34::4/64
fram inter 403
end
wr
## 인접단 PING 날려보기 ##
R1]
ping 3000:1:1:123::2
ping 3000:1:1:123::3
R2]
ping 3000:1:1:123::1
ping 3000:1:1:123::3
R3]
ping 3000:1:1:34::4
## RIP next Generation ##
IPv4와 다르게 인터페이스마다 하나씩 넣어주면 된다.
R1]
conf t
int lo0
ipv6 rip 1 enable
exit
int s1/0
ipv6 rip 1 enable
end
wr
R2]
conf t
int lo0
ipv6 rip 1 enable
exit
int s1/0.123
ipv6 rip 1 enable
exit
ipv6 router rip 1
no split-horizon ## 이 부분이 version4랑 틀림.
end
wr
R3]
conf t
int lo0
ipv6 rip 1 enable
exit
int s1/0.123
ipv6 rip 1 enable
exit
int s1/0.34
ipv6 rip 1 enable
end
wr
R4]
conf t
int lo0
ipv6 rip 1 enable
exit
int s1/0.34
ipv6 rip 1 enable
end
wr
## 라우팅 테이블에는 있지만, 루프백으로는 핑이 보내지지 않는다!!
## 이유는 Next of mapping을 할 때, IPv6 매핑도 해줘야 하지만 Link-local 매핑을 추가로 해줘야함.
R2]
show ipv6 int br
R3]
show ipv6 int br
R1]
conf t
int s1/0
fram map ipv6 FE80::CE02:CFF:FE44:0 102 br
fram map ipv6 FE80::CE03:1FFF:FE38:0 102 br
end
wr
R1]
show ipv6 int br
R3]
show ipv6 int br
FE80::CE03:1FFF:FE38:0
R2]
conf t
int s1/0.123
fram map ipv6 FE80::CE01:17FF:FE8C:0 201 br
fram map ipv6 FE80::CE03:1FFF:FE38:0 203 br
end
wr
R1]
show ipv6 int br
FE80::CE01:17FF:FE8C:0
R2]
show ipv6 int br
FE80::CE02:CFF:FE44:0
R3]
conf t
int s1/0.123
fram map ipv6 FE80::CE01:17FF:FE8C:0 302 br
fram map ipv6 FE80::CE02:CFF:FE44:0 302 br
end
wr
## PING 다시 해보기 ##
R1]
ping 3000:1:1:2::2
ping 3000:1:1:3::3
ping 3000:1:1:4::4
## OSPF Version 3 ##
## IPv6에서 동작하는 OSPF Version 3을 해볼 것임. RIP 엔진을 제거해보자!!
R1, R2, R3, R4]
conf t
no ipv6 router rip 1
end
R1]
conf t
ipv6 router ospf 1
router-id 1.1.1.1
exit
int lo0
ipv6 ospf 1 area 0
int s1/0
ipv6 ospf 1 area 0
end
wr
R2]
conf t
ipv6 router ospf 1
router-id 2.2.2.2
exit
int lo0
ipv6 ospf 1 area 0
exit
int s1/0.123
ipv6 ospf 1 area 0
end
wr
R3]
conf t
ipv6 router ospf 1
router-id 3.3.3.3
exit
int lo0
ipv6 ospf 1 area 0
exit
int s1/0.123
ipv6 ospf 1 area 0
exit
int s1/0.34
ipv6 ospf 1 area 1 ## 그림보면 area 1임.
end
wr
R4]
conf t
ipv6 router ospf 1
router-id 4.4.4.4
exit
int lo0
ipv6 ospf 1 area 0
exit
int s1/0.34
ipv6 ospf 1 area 1
end
wr
## Neighbor 보기 ##
R1]
show ipv6 ospf nei
## neighbor가 보이지 않는다.
R2]
conf t
int s1/0.123
ipv6 ospf priority 100
end
wr
## R2가 중앙에 있으므로 DR이 되도록 만든다.
## 그리고 R2가 중앙이고, 중앙이 끊기면 모두 끝이므로 BDR이 의미가 없음.
## 그래서 priority 값을 0으로 만들면 DR, BDR 선출에 참여를 안함!!
R1] - DR, BDR 선출에 참여 안함.
conf t
int s1/0
ipv6 ospf priority 0
end
wr
R3] - DR, BDR 선출에 참여 안함.
conf t
int s1/0.123
ipv6 ospf priority 0
end
wr
Nonbroadcast이므로, Neighbor를 강제로 맺어줘야 한다.
R2]
conf t
int s1/0.123
ipv6 ospf neighbor FE80::CE01:17FF:FE8C:0 ## R1의 Link-local 주소
ipv6 ospf neighbor FE80::CE03:1FFF:FE38:0 ## R3의 Link-local 주소
end
wr
## 인접단끼리는 IP가 아닌 Link-local로만 통신한다!! 꼭 알아두기!! 그래서 Link-local 값을 넣어줘야 한다.
R1, R2, R3, R4]
show ipv6 ospf nei
## Neighbor가 맺어졌다.
## 그런데..!
show ipv6
## 문제점이 보인다! 어떤? 상대방의 lo0이 128bit로 보인다!! 이러면 안된다!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
아래처럼 p-to-p 방식을 써줘야 해결된다.
R1, R2, R3, R4]
conf t
int lo0
ipv6 ospf network point-to-point
R2]
clear ipv6 ospf pro [yes]
'Network > Cisco (KEDU)' 카테고리의 다른 글
VLAN 이중화 Test (1시간 안에 풀어야 하는 과제, 배운거임.) (0) | 2021.07.12 |
---|---|
IPv4와 IPv6의 통신을 위한 터널링 기법 (0) | 2021.07.09 |
기존 Map을 활용한 DNS와 DB file(master) - 2 (0) | 2021.07.06 |
기존 Map을 활용한 DNS와 DB file(master) - 1 (0) | 2021.07.05 |
IPv6와 Link-local(2) (2) | 2021.07.02 |