我自己第一次配置cisco路由器为什么我无法连接到互联网?

问题描述

我可以从路由器8.8.8.8和8.8.4.4的Google DNS服务器ping通...我可以访问192.168.1.X范围内连接的所有内部网络设备。除了那几个地址外,我无法到达路由器之外。我已经从ISP提取了IP。我有一条建立到我的ISP提供的下一跳地址的路由。

下面是我的运行配置。我使用了CISCO的指南进行设置。如果有人发现我只能到达这两个地址的任何原因,请告诉我。


Current configuration : 1903 bytes
!
! Last configuration change at 14:49:37 UTC Wed Oct 14 2020
!
version 15.1
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname StorageRTR
!
boot-start-marker
boot-end-marker
!
!
enable secret 5 $1$3PFU$WQpG5ApsBE/6BZZpd7Oew1
enable password Probasco1!
!
no aaa new-model
!
no ipv6 cef
ip source-route
ip cef
!
!
!
ip dhcp excluded-address 192.168.1.1
ip dhcp excluded-address 192.168.1.2
ip dhcp excluded-address 192.168.1.3
ip dhcp excluded-address 192.168.1.4
ip dhcp excluded-address 192.168.1.5
ip dhcp excluded-address 192.168.1.6
ip dhcp excluded-address 192.168.1.7
ip dhcp excluded-address 192.168.1.8
ip dhcp excluded-address 192.168.1.9
ip dhcp excluded-address 192.168.1.10
!
ip dhcp pool CLIENT
   import all
   network 192.168.1.0 255.255.255.0
   default-router 192.168.1.1
   dns-server 8.8.8.8
!
!
ip name-server 8.8.8.8
ip name-server 8.8.4.4
multilink bundle-name authenticated
!
crypto pki token default removal timeout 0
!
!
license udi pid CISCO1941/K9 sn FJC1931E0DD
!
!
username Rob password 0 Probasco1
!
!
!
!
!
!
interface GigabitEthernet0/0
 ip address 192.168.1.1 255.255.255.0
 ip nat inside
 ip virtual-reassembly in
 no ip route-cache cef
 no ip route-cache
 duplex auto
 speed auto
 no cdp enable
!
interface GigabitEthernet0/1
 ip address dhcp
 ip nat outside
 ip virtual-reassembly in
 no ip route-cache cef
 no ip route-cache
 duplex auto
 speed auto
 no cdp enable
!
ip forward-protocol nd
!
ip http server
no ip http secure-server
!
ip nat inside source list 102 interface GigabitEthernet0/1 overload
ip route 0.0.0.0 0.0.0.0 10.255.77.69
!
access-list 102 permit ip 192.168.1.0 0.0.0.255 any
!
no cdp run

!
!
control-plane
!
!
line con 0
 exec-timeout 120 0
 stopbits 1
line aux 0
line vty 0 4
 exec-timeout 30 0
 login local
 length 0
 transport input all
!
scheduler allocate 20000 1000
end

解决方法

配置对我来说似乎可以,但是使用DHCP时不需要静态配置网关IP,但是我想它可以正常工作,因为您可以ping Google DNS。我将删除此行: ip route 0.0.0.0 0.0.0.0 10.255.77.69

您可以使用以下命令检查您是否拥有正确的IP: show ip int brief

并使用以下命令检查您的路线: show ip route

您ISP的网关IP是一个专用IP地址,因此ISP在进入Internet之前将再次进行NAT。也许ISP路由器阻止了诸如Google的DNS之类的东西?

如果将PC直接连接到ISP路由器会发生什么?那您能浏览互联网吗?如果ISP分发其他DNS服务器,请尝试在Cisco路由器中使用它们。