kjh00n의 기록저장소
실습4 본문
PC1
ip 10.10.10.1 255.255.255.0 10.10.10.254
PC2
ip 10.10.10.1 255.255.255.0 10.10.10.254
PC3
ip 10.10.10.1 255.255.255.0 10.10.10.254
PC4
ip 10.10.10.1 255.255.255.0 10.10.10.254
SERVER1
ip 10.10.10.2 255.255.255.0 10.10.10.254
SERVER2
ip 10.10.10.2 255.255.255.0 10.10.10.254
SERVER3
ip 10.10.10.2 255.255.255.0 10.10.10.254
SERVER4
ip 10.10.10.2 255.255.255.0 10.10.10.254
R1
conf t
int fa 0/0
ip addr 10.10.10.254 255.255.255.0
no shu
int fa 0/1
ip addr 2.2.2.1 255.255.255.0
no shu
int fa 1/0
ip addr 1.1.1.1 255.255.255.0
no shu
int fa 2/0
ip addr 3.3.3.1 255.255.255.0
no shu
access-list 1 permit 10.10.10.0 0.0.0.255
ip nat inside source list 1 int fa 0/1
int fa 0/0
ip nat inside
int fa 0/1
ip nat outside
int fa 1/0
ip nat outside
int fa 2/0
ip nat outside
ip route 0.0.0.0 0.0.0.0 2.2.2.5
ip nat inside source static 10.10.10.2 1.1.1.1
ip route 7.7.7.0 255.255.255.0 1.1.1.2
access-list 100 deny icmp host 4.4.4.2 host 10.10.10.2
access-list 100 permit icmp any any
int fa 0/0
ip access-group 100 out
R2
conf t
int fa 0/0
ip addr 10.10.10.254 255.255.255.0
no shu
int fa 0/1
ip addr 4.4.4.2 255.255.255.0
no shu
int fa 1/0
ip addr 1.1.1.2 255.255.255.0
no shu
int fa 2/0
ip addr 7.7.7.2 255.255.255.0
no shu
access-list 1 permit 10.10.10.0 0.0.0.255
ip nat inside source list 1 int fa 0/1
int fa 0/0
ip nat inside
int fa 0/1
ip nat outside
int fa 1/0
ip nat outside
int fa 2/0
ip nat outside
ip route 0.0.0.0 0.0.0.0 4.4.4.5
ip nat inside source static 10.10.10.2 1.1.1.2
ip route 3.3.3.0 255.255.255.0 1.1.1.1
access-list 100 deny icmp host 5.5.5.3 host 10.10.10.2
access-list 100 permit icmp any any
int fa 0/0
ip access-group 100 out
R3
conf t
int fa 0/0
ip addr 10.10.10.254 255.255.255.0
no shu
int fa 0/1
ip addr 5.5.5.3 255.255.255.0
no shu
int fa 1/0
ip addr 9.9.9.3 255.255.255.0
no shu
int fa 2/0
ip addr 7.7.7.3 255.255.255.0
no shu
access-list 1 permit 10.10.10.0 0.0.0.255
ip nat inside source list 1 int fa 0/1
int fa 0/0
ip nat inside
int fa 0/1
ip nat outside
int fa 1/0
ip nat outside
int fa 2/0
ip nat outside
ip route 0.0.0.0 0.0.0.0 5.5.5.5
ip nat inside source static 10.10.10.2 7.7.7.3
ip route 1.1.1.0 255.255.255.0 7.7.7.2
ip route 3.3.3.0 255.255.255.0 9.9.9.4
access-list 100 deny icmp host 6.6.6.4 host 10.10.10.2
access-list 100 permit icmp any any
int fa 0/0
ip access-group 100 out
R4
conf t
int fa 0/0
ip addr 10.10.10.254 255.255.255.0
no shu
int fa 0/1
ip addr 6.6.6.4 255.255.255.0
no shu
int fa 1/0
ip addr 9.9.9.4 255.255.255.0
no shu
int fa 2/0
ip addr 3.3.3.4 255.255.255.0
no shu
access-list 1 permit 10.10.10.0 0.0.0.255
ip nat inside source list 1 int fa 0/1
int fa 0/0
ip nat inside
int fa 0/1
ip nat outside
int fa 1/0
ip nat outside
int fa 2/0
ip nat outside
ip route 0.0.0.0 0.0.0.0 6.6.6.5
ip nat inside source static 10.10.10.2 3.3.3.4
ip route 1.1.1.0 255.255.255.0 3.3.3.1
ip route 7.7.7.0 255.255.255.0 9.9.9.3
access-list 100 deny icmp host 2.2.2.1 host 10.10.10.2
access-list 100 permit icmp any any
int fa 0/0
ip access-group 100 out
R5
conf t
int fa 0/0
ip addr 2.2.2.5 255.255.255.0
no shu
int fa 0/1
ip addr 4.4.4.5 255.255.255.0
no shu
int fa 1/0
ip addr 5.5.5.5 255.255.255.0
no shu
int fa 2/0
ip addr 6.6.6.5 255.255.255.0
no shu
int fa 3/0
ip addr 192.168.50.5 255.255.255.0
no shu
ip route 0.0.0.0 0.0.0.0 192.168.50.2
access-list 1 permit 2.2.2.0 0.0.0.255
access-list 1 permit 4.4.4.0 0.0.0.255
access-list 1 permit 5.5.5.0 0.0.0.255
access-list 1 permit 6.6.6.0 0.0.0.255
ip nat inside source list 1 int fa 3/0
int fa 0/0
ip nat inside
int fa 0/1
ip nat inside
int fa 1/0
ip nat inside
int fa 2/0
ip nat inside
int fa 3/0
ip nat outside
'Network' 카테고리의 다른 글
Network RIP 실습 (0) | 2024.10.26 |
---|---|
Network Wan 실습 (0) | 2024.10.26 |
(실습3) 공인 ip가 2개 필요할 때 (0) | 2024.10.21 |
실습2 (0) | 2024.10.21 |
다른 네트워크끼리의 통신하는 법 (0) | 2024.10.21 |