带 PAT 的 VLAN 无法通过路由器

网络工程 思科 路由器 局域网 纳特 dhcp
2022-02-14 11:42:14

我想开始说我超出了我的范围,但我真的可以使用一些帮助。我们的 ISP 为我们提供了以下连接到我们的商务级互联网服务。

  • 网络:97.105.48.72
  • 网关:97.105.48.73
  • 可用:97.105.48.74 至 97.105.48.78
  • 广播:97.105.48.79
  • 尺寸:/29
  • 子网:255.255.255.248
  • TWC DNS1:209.18.47.61
  • TWC DNS2:209.18.47.62

我正在使用运行 IOS 12.4(13r) 的 Cisco 3845。我让 VLAN 10 上的交换机端口从路由器获取 DHCP 地址。那部分似乎工作正常。我有来自 ISP 的连接进入 GigabitEthernet0/1,分配了 97.105.48.74。我可以从路由器ping通到互联网。我尝试设置从 VLAN 10 到 GigabitEthernet0/1 的 PAT。这就是事情分崩离析的地方。终端设备可以 ping 97.105.48.74,但不能 ping ISP 网关或其他任何东西。

有人可以检查我的配置并让我知道他们是否可以发现任何明显的错误吗?我非常感谢您的帮助,并且我希望我的错误是由于无知而导致的简单错误。非常感谢你。

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2016.05.12 12:56:43 =~=~=~=~=~=~=~=~=~=~=~=

TWC-Router#sho run
Building configuration...


Current configuration : 3005 bytes
!
! Last configuration change at 06:24:57 UTC Mon May 2 2016
version 15.1
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname TWC-Router
!
boot-start-marker
boot-end-marker
!
!
enable secret 5 $1$6nZJ$MHOdhhnr7fGeq2PvctzPI.
enable password 45rtfgvb$%RTFGVB
!
no aaa new-model
!
no network-clock-participate slot 2 
!
dot11 syslog
ip source-route
no ip routing
!
no ip cef
!
!
no ip dhcp conflict logging
ip dhcp excluded-address 192.168.1.1 192.168.1.20
!
ip dhcp pool twc-iamd
 network 192.168.1.0 255.255.255.0
 dns-server 209.18.47.61 209.18.47.62 
 default-router 192.168.1.1 
!
!
no ipv6 cef
!
multilink bundle-name authenticated
!
!
!
!
!
voice-card 0
!
!
!
!
!
!
!
crypto pki token default removal timeout 0
!
!
!
!
license udi pid CISCO3845-MB sn FOC12393HAM
!
redundancy
!
!
cem 2/0/0
 payload-size 32
!
cem 2/1/0
 payload-size 32
!
cem 2/2/0
 payload-size 32
!
cem 2/3/0
 payload-size 32
!
! 
!
!
!
!
!
!
!
interface GigabitEthernet0/0
 no ip address
 no ip route-cache
 shutdown
 duplex auto
 speed auto
 media-type rj45
!
 interface GigabitEthernet0/1
 ip address 97.105.48.74 255.255.255.248
 ip nat outside
 ip virtual-reassembly in
 no ip route-cache
 duplex auto
 speed auto
 media-type rj45
!
interface Serial0/0/0
 no ip address
 no ip route-cache
 shutdown
 clock rate 2000000
!
interface Serial0/0/1
 no ip address
 no ip route-cache
 shutdown
 clock rate 2000000
!
interface Serial0/1/0
 no ip address
 no ip route-cache
 shutdown
 clock rate 2000000
!
interface Serial0/1/1
 no ip address
 no ip route-cache
 shutdown
 clock rate 2000000
!
interface FastEthernet1/0
 switchport access vlan 10
 no ip address
!
interface FastEthernet1/1
 no ip address
 shutdown
!
interface FastEthernet1/2
 no ip address
!
interface FastEthernet1/3
 no ip address
!
interface FastEthernet1/4
 no ip address
!
interface FastEthernet1/5
 no ip address
!
interface FastEthernet1/6
 no ip address
!
interface FastEthernet1/7
 no ip address
!
interface FastEthernet1/8
 no ip address
!
interface FastEthernet1/9
 no ip address
!
interface FastEthernet1/10
 no ip address
!
interface FastEthernet1/11
no ip address
!
interface FastEthernet1/12
 no ip address
!
interface FastEthernet1/13
 no ip address
!
interface FastEthernet1/14
 no ip address
!
interface FastEthernet1/15
 no ip address
 no mop enabled
!
interface GigabitEthernet1/0
 no ip address
 shutdown
!
interface Vlan10
 ip address 192.168.1.1 255.255.255.0
 ip nat inside
 ip virtual-reassembly in
!
ip default-gateway 97.105.48.73
ip forward-protocol nd
no ip http server
no ip http secure-server
!
!
ip nat inside source list 1 interface GigabitEthernet0/1 overload
ip route 0.0.0.0 0.0.0.0 97.105.48.73
!
access-list 1 permit 192.168.1.0 0.0.0.255
!
!
!
!
snmp-server community public RO
!
!
control-plane
!
!
!
!
mgcp profile default
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
 password 45rtfgvb$%RTFGVB
 login
 transport input all
!
scheduler allocate 20000 1000
end

TWC-Router#
2个回答

您已禁用路由器上的路由:

no ip routing
!

您需要启用路由才能让路由器路由:

ip routing
!
no ip routing

为了****的缘故。我真的很想知道这些垃圾是如何进入配置的。它是一个路由器,某人的完美默认设置是关闭路由(此外,他们打开路由,但关闭cef!以及强制所有接口进行进程切换 -没有 ip route-cache

[PS:这不是我第一次看到这个。事实上,它是如此流行,这是我寻找的第一件事。]