nat和静态映射
?
?
要求:內部通過NAT上網、設為222.222.222.222 R3模仿內部服務器,靜態映射為222.222.222.100r2
en
conf t
int f0/0
ip add 192.168.0.100 255.255.255.0
no sh
exit
ip route 0.0.0.0 0.0.0.0 f0/0
r3
en
conf t
int f0/0
ip add 192.168.0.101 255.255.255.0
no sh
exit
ip route 0.0.0.0 0.0.0.0 f0/0 r1
en
conf t
int f0/0
ip add 192.168.0.1 255.255.255.0
no sh
ip nat inside
exit
int s1/0
ip add 222.222.222.222 255.255.255.0
no sh
ip add 222.222.222.100 255.255.255.0 secondary?
no sh
ip nat outside
clock rate 64000
exit
access-list 1 permit 192.168.0.0 0.0.0.255
ip nat inside source list 1 interface s1/0
ip nat inside source static 192.168.0.101 222.222.222.100
ip route 0.0.0.0 0.0.0.0 s1/0
r4
en
conf t
int s0/0
ip add 222.222.222.1 255.255.255.0
no sh
exit
int loopback 0
ip add 4.4.4.4 255.255.255.0
no sh
exit
?
?
轉載于:https://blog.51cto.com/winword/892618
總結
- 上一篇: fastreport(A)
- 下一篇: 启动器和选择器学习-----(5)启动器