1 분 소요

1. 서론

     오늘은 그동안 배운걸 종합한 문제를 해결해 보았다.

2. 본론

1. Cisco IOS

1. Routing(RIP + Static) + NAT

eg

1. Mapping
//R1-4
# conf t
# no ip domain look
# line c 0
# logging sync
# exec-t0
# exit
!
# int s1/0
# clock rate 64000
# no sh
# encap frame-relay
# no fram inverse

//R1
# int s1/0
# ip add 17.17.12.1 255.255.255.0
# fram map ip 17.17.12.2 102 br
# exit
!
# int lo0
# ip add 17.17.1.1 255.255.255.0

//R2
# int s1/0.12 m
# ip add 17.17.12.2 255.255.255.0
# fram map ip 17.17.12.1 201 br
# exit
!
# int s1/0.23 m
# ip add 17.17.23.2 255.255.255.0
# fram map ip 17.17.23.3 203 br
# exit
!
# int lo0
# ip add 17.17.2.2 255.255.255.0

//R3
# int s1/0.23 m
# ip add 17.17.23.3 255.255.255.0
# fram map ip 17.17.23.2 302 br
# exit
!
# int s1/0.34 p
# ip add 17.17.34.3 255.255.255.0
# fram inter 304
# exit
!
# int lo0
# ip add 17.17.3.3 255.255.255.0

//R4
# int s1/0.34 p
# ip add 17.17.34.4 255.255.255.0
# fram inter 403
# exit
!
# int lo0
# ip add 17.17.4.4 255.255.255.0

//next hop ping
//R1
# p 17.17.12.2

//R2
# p 17.17.23.3

//R3
# p 17.17.34.4

2. RIP
//R1
# router rip
# ver2
# pass lo0
# network 17.0.0.0
# default-information originate

//R2
# router rip
# ver2
# pass lo0
# pass int s1/0.23
# network 17.0.0.0

3. Static
//R2
# ip route 17.17.3.0 255.255.255.0 s1/0.23 17.17.23.3
# ip route 17.17.4.0 255.255.255.0 s1/0.23 17.17.23.3
# ip route 17.17.34.0 255.255.255.0 s1/0.23 17.17.23.3

//R3
# ip route 0.0.0.0 0.0.0.0 s1/0.23 17.17.23.2
# ip route 17.17.4.0 255.255.255.0 s1/0.34 17.17.34.4

//R4
# ip route 0.0.0.0 0.0.0.0 s1/0.34 17.17.34.3

4. NAT
//R1
# access-list 10 permit 10.0.0.0 0.255.255.255
# sh ip access-list //verify
# ip nat inside source list 10 interface f0/1 overload
!
# int f0/0
# ip nat inside
# exit
!
# int s1/0
# ip nat inside
# exit
!
# int f0/1
# ip nat outside

5. Redistribute
//R2
# ip prefix-list HOP2 permit 17.17.3.0/24
# ip prefix-list HOP2 permit 17.17.34.0/24
# ip prefix-list HOP3 permit 17.17.4.0/24
# route-map STATIC_NET10
!
# match ip add prefix HOP2
# set metric 2
# exit
!
# route-map STATIC_NET20
# match ip add prefix HOP3
# set metric 3
# exit
!
# router rip
!
# redistribute static route-map STATIC_NET

3. 결론

    타 클래스에서 발표하는걸 보니 조별과제의 무서움이 떠오른다.

4. 참고자료

Ⅰ. 문웅호, 정보통신망


클라우드 엔지니어를 꿈꾸며 공부를 시작한 초보 엔지니어입니다. 틀린점 또는 조언해주실 부분이 있으시면 친절하게 댓글 부탁드립니다. 방문해 주셔서 감사합니다 :)

댓글남기기