返回时 DHCP 数据包丢弃

网络工程 dhcp
2022-02-19 20:44:31

在此处输入图像描述

DHCP 数据包从安全计算机一直到 DHCP 服务器并返回到 Router1,但被卡在那里。当设备分配了静态 IP 时,所有数据包都会通过。

文本

路由器1

!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
 no ip address
 ip helper-address 192.168.80.2
 ip nat inside
 duplex auto
 speed auto
!
interface FastEthernet0/0.1
 encapsulation dot1Q 10
 ip address 192.168.10.1 255.255.255.0
 ip helper-address 192.168.80.2
 ip nat inside
!
interface FastEthernet0/0.2
 encapsulation dot1Q 20
 ip address 192.168.20.1 255.255.255.0
 ip helper-address 192.168.80.2
 ip nat inside
!
interface FastEthernet0/0.3
 encapsulation dot1Q 30
 ip address 192.168.30.1 255.255.255.0
 ip helper-address 192.168.80.2
 ip nat inside
!
interface FastEthernet1/0
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface Serial2/0
 ip address 129.137.107.130 255.255.255.128
 ip nat outside
!
interface Serial3/0
 no ip address
 clock rate 2000000
 shutdown
!
interface FastEthernet4/0
 no ip address
 shutdown
!
interface FastEthernet5/0
 no ip address
 shutdown
!
router eigrp 1
 network 129.137.107.128 0.0.0.127
 network 192.168.10.0
 network 192.168.20.0
 network 192.168.30.0
 auto-summary
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end

路由器0

!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
 ip address 192.168.1.1 255.255.255.0
 ip helper-address 192.168.80.2
 ip nat inside
 duplex auto
 speed auto
!
interface FastEthernet0/0.1
 encapsulation dot1Q 2
 ip address 192.168.2.1 255.255.255.0
 ip helper-address 192.168.80.2
 ip nat inside
!
interface FastEthernet0/0.2
 no ip address
 shutdown
!
interface FastEthernet0/0.3
 encapsulation dot1Q 20
 ip address 192.168.20.1 255.255.255.0
 ip helper-address 192.168.80.2
 ip nat inside
!
interface FastEthernet0/0.5
 encapsulation dot1Q 40
 ip address 192.168.40.1 255.255.255.0
 ip helper-address 192.168.80.2
 ip nat inside
!
interface FastEthernet0/0.6
 encapsulation dot1Q 50
 ip address 192.168.50.1 255.255.255.0
 ip helper-address 192.168.80.2
 ip nat inside
!
interface FastEthernet0/0.7
 encapsulation dot1Q 60
 ip address 192.168.60.1 255.255.255.0
 ip helper-address 192.168.80.2
 ip nat inside
!
interface FastEthernet0/0.8
 encapsulation dot1Q 70
 ip address 192.168.70.1 255.255.255.0
 ip helper-address 192.168.80.2
 ip nat inside
!
interface FastEthernet1/0
 ip address 192.168.80.1 255.255.255.0
 ip helper-address 192.168.80.2
 ip nat inside
 duplex auto
 speed auto
!
interface Serial2/0
 ip address 129.137.107.129 255.255.255.128
 ip nat outside
 clock rate 2000000
!
interface Serial3/0
 no ip address
 clock rate 2000000
 shutdown
!
interface FastEthernet4/0
 no ip address
 shutdown
!
interface FastEthernet5/0
 no ip address
 shutdown
!
router eigrp 1
 network 129.137.107.128 0.0.0.127
 network 192.168.2.0
 network 192.168.20.0
 network 192.168.40.0
 network 192.168.50.0
 network 192.168.60.0
 network 192.168.70.0
 network 192.168.80.0
 auto-summary
!
ip nat inside source list 10 interface Serial2/0 overload
ip nat inside source static tcp 192.168.80.3 80 129.137.107.131 80 
ip classless
!
ip flow-export version 9
!
!
access-list 10 permit 192.168.0.0 0.0.255.255
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end
1个回答

从路由器 1 中删除了所有剩余的 NAT 命令,并从 fa1/0 中删除了内部命令,现在 DHCP 正在工作。