第一次自己配置思科路由器 为什么我无法访问互联网?



我可以在8.8.8.8和8.8.4.4从路由器Google的DNS服务器进行ping……我可以访问192.168.1.X范围内连接的所有内部网络设备。除了这几个地址之外,我无法在路由器之外访问。我从ISP那里提取了一个IP。我的ISP提供了一条通往下一个跃点地址的路由。

下面是我的运行配置。我用了一本来自思科的指南来设置这个。如果有人看到我只能联系到这两个地址的原因,请告诉我。


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谷歌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路由器正在阻止一些东西,比如DNS到谷歌?

如果您将电脑直接连接到ISP路由器,会发生什么情况?那你能浏览互联网吗?如果ISP分发不同的DNS服务器,请尝试使用Cisco路由器中的服务器。

最新更新