NAT和ACL配置问题
答案:2 悬赏:80 手机版
解决时间 2021-02-15 02:39
- 提问者网友:战魂
- 2021-02-14 07:36
NAT和ACL配置问题
最佳答案
- 五星知识达人网友:酒醒三更
- 2021-02-14 08:59
你好!
简单的货
NAT:
NAT_R
ip access-list st Nat
permit 172.16.0.0 0.0.0.255
permit 172.17.0.0 0.0.0.255
permit 172.18.0.0 0.0.0.255
exit
ip nat pool Nat_pool 211.1.67.3 211.1.67.15 netmask 255.255.255.240
ip nat inside source list Nat pool Nat_pool
int range et0/0/0,fa0/0,fa0/1
ip nat inside
exit
int serial0/1/0
ip nat outside
exit
ACL
access-list 1 deny 172.16.0.0 0.0.0.255
access-list 1 permit any
interface fa0/0
ip access-group 1 out
exit
就这样。
简单的货
NAT:
NAT_R
ip access-list st Nat
permit 172.16.0.0 0.0.0.255
permit 172.17.0.0 0.0.0.255
permit 172.18.0.0 0.0.0.255
exit
ip nat pool Nat_pool 211.1.67.3 211.1.67.15 netmask 255.255.255.240
ip nat inside source list Nat pool Nat_pool
int range et0/0/0,fa0/0,fa0/1
ip nat inside
exit
int serial0/1/0
ip nat outside
exit
ACL
access-list 1 deny 172.16.0.0 0.0.0.255
access-list 1 permit any
interface fa0/0
ip access-group 1 out
exit
就这样。
全部回答
- 1楼网友:冷風如刀
- 2021-02-14 10:09
1.在3个网段中分别写条路由指向 211.1.67.1-15的网关
2.单臂路由自己搞。
2.单臂路由自己搞。
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯