qq_29246613 2015-06-23 07:55 采纳率: 0%
浏览 2503

思科关于NAT网络地址转换问题!

Building configuration...

Current configuration : 1422 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
enable secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0
!
!
!
ip dhcp pool cisco
network 192.168.2.0 255.255.255.0
default-router 192.168.2.1
ip dhcp pool cisco1
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
!
ip cef
no ipv6 cef
!
!
!
username cisco secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0
!
!
license udi pid CISCO2911/K9 sn FTX15245DY7
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0
ip address 172.16.10.1 255.255.0.0
ip access-group test1 out
ip nat outside
duplex auto
speed auto
!
interface GigabitEthernet0/1
ip address 192.168.1.1 255.255.255.0
ip nat inside
duplex auto
speed auto
!
interface GigabitEthernet0/2
ip address 192.168.2.1 255.255.255.0
ip nat inside
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
router ospf 1
log-adjacency-changes
network 192.168.1.0 0.0.0.255 area 0
network 172.16.0.0 0.0.255.255 area 0
network 192.168.2.0 0.0.0.255 area 0
!
ip nat pool wan 172.16.10.1 172.16.10.1 netmask 255.255.0.0
ip nat inside source list test1 interface GigabitEthernet0/0 overload
ip classless
!
ip flow-export version 9
!
!
ip access-list extended test1
permit ip 192.168.2.0 0.0.0.255 any
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login local
!
!
!
end

这是我简单的一个实验环境,为什么当我在G0/0口应用了“ ip access-group test1 out”后,我的192.168.2.0网段也不能访问外部服务器了呢!

  • 写回答

3条回答 默认 最新

  • qq_29246613 2015-06-23 08:58
    关注

    回答的人好少,虽然我不知道为什么应用成outside接口的out会出现这种情况,但是我自己处理,将acl应用到离源最近的G0/1接口使用in就能满足实际业务需求,如果有大神知道为什么应用到G0/0接口的OUT的问题,请不吝赐教。

    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器