设为首页收藏本站language→→ 语言切换

鸿鹄论坛

 找回密码
 论坛注册

QQ登录

先注册再绑定QQ

查看: 752|回复: 3
收起左侧

[Cisco Packet Tracer] NAT加一个DCHP实验,无法实现 。求解答谢谢

[复制链接]
发表于 2018-8-11 16:26:43 | 显示全部楼层 |阅读模式
一个NAT加一个DHCP实验,始终ping不通1.1.1.1 不知道为何,PC可以获取IP地址,动态模式显示抵达R0路由器没有返回报文。。。郁闷。。。有些能解释 NAT.png




Router1#show run
Building configuration...

Current configuration : 908 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
ip dhcp excluded-address 192.168.1.1
!
ip dhcp pool sam
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 10.1.1.1
!
!
!
ip cef
no ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface FastEthernet0/0
ip address 1.1.1.2 255.255.255.0
ip nat outside
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.1.1 255.255.255.0
ip nat inside
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
ip nat pool 123 1.1.1.1 1.1.1.10 netmask 255.255.255.0
ip nat inside source list 101 pool 123
ip classless
!
ip flow-export version 9
!
!
access-list 101 permit ip 0.0.0.2 255.255.255.0 0.0.0.254 255.255.255.0
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end


Router1#

Router0#show run
Building configuration...

Current configuration : 908 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
ip dhcp excluded-address 192.168.1.1
!
ip dhcp pool sam
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 10.1.1.1
!
!
!
ip cef
no ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface FastEthernet0/0
ip address 1.1.1.2 255.255.255.0
ip nat outside
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.1.1 255.255.255.0
ip nat inside
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
ip nat pool 123 1.1.1.1 1.1.1.10 netmask 255.255.255.0
ip nat inside source list 101 pool 123
ip classless
!
ip flow-export version 9
!
!
access-list 101 permit ip 0.0.0.2 255.255.255.0 0.0.0.254 255.255.255.0
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end



Router0#


发表于 2018-8-11 16:41:53 | 显示全部楼层
R0上有路由吗?
沙发 2018-8-11 16:41:53 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2018-9-6 14:41:52 | 显示全部楼层
就一个R1的配置,也看不出来啥啊
地板 2018-9-6 14:41:52 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2024-4-20 02:24 , Processed in 0.083194 second(s), 10 queries , Redis On.  

  Powered by Discuz!

  © 2001-2024 HH010.COM

快速回复 返回顶部 返回列表