
위 망에서 HO <-> BO 터널링을 하려고 한다
# S1
s1
int fa 0/0
no shut
ip add 10.1.10.1 255.255.255.0
exi
router rip
ver 2
no auto
net 10.0.0.0
exi
# S2
int fa 0/0
no shut
ip add 10.1.20.1 255.255.255.0
exi
router rip
ver 2
no auto
net 10.0.0.0
exi
# HO
int fa 0/0
no shut
ip add 10.1.10.254 255.255.255.0
exi
int fa 0/1
no shut
description Internet
ip add 1.1.12.1 255.255.255.0
exi
router rip
ver 2
no auto
net 10.0.0.0
exi
router os 1
router-id 1.1.1.1
net 1.1.12.1 0.0.0.0 area 0
exi
# BO
int fa 0/1
no shut
ip add 10.1.20.254 255.255.255.0
exi
int fa 0/0
no shut
description Internet
ip add 1.1.45.5 255.255.255.0
exi
router rip
ver 2
no auto
net 10.0.0.0
exi
router os 1
router-id 5.5.5.5
net 1.1.45.5 0.0.0.0 area 0
exi
#ISP1
int fa 0/0
no shut
ip add 1.1.23.2 255.255.255.0
ip ospf 1 area 0
exi
int fa 0/1
no shut
ip add 1.1.12.2 255.255.255.0
ip ospf 1 area 0
exi
router os 1
router-id 2.2.2.2
exi
# ISP2
int fa 0/0
no shut
ip add 1.1.45.4 255.255.255.0
ip ospf 1 area 0
exi
int fa 0/1
no shut
ip add 1.1.34.4 255.255.255.0
ip ospf 1 area 0
exi
router os 1
router-id 4.4.4.4
exi
# IX
int fa 0/0
no shut
ip add 1.1.23.3 255.255.255.0
exi
int fa 0/1
no shut
ip add 1.1.34.3 255.255.255.0
exi
router os 1
router-id 3.3.3.3
net 1.1.23.3 0.0.0.0 a 0
net 1.1.34.3 0.0.0.0 a 0
exi
우선 각 rotuer에 rip, ospf, ip 설정을 해준다
show ip os neighbor
show ip route ospf
# HO
ping 1.1.45.5
# BO
ping 1.1.12.1

잘 설정 됐는지 확인
# HO
int tun 15
ip add 10.1.15.1 255.255.255.0
tun so 1.1.12.1
tun de 1.1.45.5
exit
# BO
int tun 15
ip add 10.1.15.5 255.255.255.0
tun so 1.1.45.5
tun de 1.1.12.1
exi
HO 와 BO에 터널링 구축
# S1,S2
show ip route rip
# S1
traceroute 10.1.20.1
# S2
traceroute 10.1.10.1


터널링 설정을 하고나면 각 서버에서 반대편 서버로 routing이 확인되고 traceroute에 isp1 <-> isp2 부분이 잡히지 않는다