Lab cisco Pat 没有创建任何翻译

网络工程 纳特 实验室
2021-07-27 23:04:51

我有一个 cisco 881 和一个 6509 sup720 我曾尝试为 pat 配置两者,但在这样做时遇到了问题。不会产生翻译流量。

881 configuration
version 15.1
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname bdrrtr
!
boot-start-marker
boot-end-marker
!
no aaa new-model
!
service-module wlan-ap 0 bootimage autonomous
crypto pki token default removal timeout 0
!         
ip source-route
no ip routing
no ip cef
!
no ip domain lookup
no ipv6 cef
!
interface FastEthernet0
 no ip address
!
interface FastEthernet1
 no ip address
 shutdown
!
interface FastEthernet2
 no ip address
 shutdown
!
interface FastEthernet3
 no ip address
!
interface FastEthernet4
 ip address 70.80.90.99 255.255.255.248
 ip nat outside
 ip virtual-reassembly in
 no ip route-cache
 duplex full
 speed auto
 ipv6 dhcp client pd hint xxx
 ipv6 dhcp client pd comcast
!
interface Wlan-GigabitEthernet0
 description Internal switch interface connecting to the embedded AP
 no ip address
!
interface wlan-ap0
 description Embedded Service module interface to manage the embedded AP
 no ip address
 no ip route-cache
 shutdown
!
interface Vlan1
 ip address 10.1.0.1 255.255.255.0
 ip nat inside
 ip virtual-reassembly in
 no ip route-cache
!
ip default-gateway 70.80.90.100
ip forward-protocol nd
ip http server
ip nat inside source list 1 interface FastEthernet4 overload
ip route 0.0.0.0 0.0.0.0 FastEthernet4 70.80.90.100
!
access-list 1 permit 10.1.0.0 0.0.255.255
!
snmp-server community public RO
!
control-plane
!
line con 0
line aux 0
line 2
 no activation-character
 no exec
 transport preferred none
 transport input all
 stopbits 1
line vty 0 4

isp 是带有 netgear cg3000dcr 调制解调器的 comcast buisness 5 static。

fa/3 客户端使用来自路由器的 ip 10.1.0.18 默认 gw 1​​0.1.0.1 插入客户端 我可以从客户端 ping 8.8.8.8 我可以 ping 10.1.0.1 70.80.90.99 但不是 70.80.90.100 或任何外部 ip.100

显示 nat 翻译为空白

从 6509 我设置了 vlan99 与外部 ip 默认路由到该接口和相同的结果。我还没有启用任何路由协议。

bdrrtr#show spanning-tree vlan 1

VLAN1 is executing the ieee compatible Spanning Tree protocol
Bridge Identifier has priority 32768, address xxx.xxx.xxx
Configured hello time 2, max age 20, forward delay 15
Current root has priority 32768, address xxx.xxx.xxx
Root port is 4 (FastEthernet3), cost of root path is 19
 Topology change flag not set, detected flag not set
 Number of topology changes 3 last change occurred 1w1d ago
      from FastEthernet0
 Times:  hold 1, topology change 35, notification 2
      hello 2, max age 20, forward delay 15 
 Timers: hello 0, topology change 0, notification 0, aging 300

Port 1 (FastEthernet0) of VLAN1 is forwarding
  Port path cost 19, Port priority 128, Port Identifier 128.1.
  Designated root has priority 32768, address xxx.xxx.xxx
  Designated bridge has priority 32768, address xxx.xxx.xxx
  Designated port id is 128.1, designated path cost 19
  Timers: message age 0, forward delay 0, hold 0
  Number of transitions to forwarding state: 1
  BPDU: sent 349073, received 0

Port 4 (FastEthernet3) of VLAN1 is forwarding
  Port path cost 19, Port priority 128, Port Identifier 128.4.

Fa3 插入 6509,fa0 插入膝上型计算机。

1个回答

您已关闭路由,因此路由器不会转发数据包。你可以启用它

Ip routing

感谢@ronmaupin 注意到这一点。