TEST/GNS3

udp cloud

히두두 2021. 8. 31. 00:06

 


R1

conf t
in f 0/0
ip address 10.10.X.254 255.255.255.0
no sh
exit
in f 0/1
ip address 12.0.X.1 255.255.255.0
no sh
exit
router ospf 1
network 10.10.X.254 0.0.0.255 area 0
network 12.0.X.1 0.0.0.255 area 0

R2

conf t
in f 0/0
ip address 20.20.X.254 255.255.255.0
no sh
exit
in f 0/1
ip address 12.0.X.2 255.255.255.0
no sh
exit
in f 1/0
ip address 23.0.X.1 255.255.255.0
no sh
exit
router ospf 1
network 20.20.X.254 0.0.0.255 area 0
network 12.0.X.2 0.0.0.255 area 0
network 23.0.X.1 0.0.0.255 area 0

R3

conf t
in f 0/0
ip address 30.30.X.254 255.255.255.0
no sh
exit
in f 0/1
ip address 23.0.X.2 255.255.255.0
no sh
exit
router ospf 1
network 30.30.X.254 0.0.0.255 area 0
network 23.0.X.2 0.0.0.255 area 0

상대방과 맞는 port 정하기

local port와 remote port는 서로 반대되는 숫자 이용하기

conf t
int fa1/0
ip ad 100.100.100.1 255.255.255.0
no sh
exit
router ospf 1
network 100.100.100.1 0.0.0.255 area 0
end
 wr me

이렇게 뜬다면 라우터랑 연결된 선을 제거하고 실행하면 된다!