DHCP Relaysons: روتر می تواند سرور DHCP را پینگ کند ، اما دستگاه های نهایی نمی توانند آدرس IP را دریافت کنند – بسته ردیابی

من شبکه ای را تنظیم کردم که در آن بسیاری از زیر شبکه ها یک سرور DHCP را به اشتراک می گذارند. روتر می تواند سرور DHCP را پینگ کند ، اما دستگاه های نهایی متصل به روتر نمی توانند آدرس IP را بدست آورند. این تنظیم من و آنچه تاکنون امتحان کرده ام است:
تنظیم شبکه:
سرور DHCP:
IP: 192.10.0.2
Scopes:
10.10.0.0/24 (Default Gateway: 10.10.0.1)
10.20.0.0/24 (Default Gateway: 10.20.0.1)
10.30.0.0/24 (Default Gateway: 10.30.0.1)
10.40.0.0/24 (Default Gateway: 10.40.0.1)
Local Pool:
Default: 192.10.0.1
IPv4: 192.10.0.2
Subnet: 255.255.255.0
Start: 192.10.0.3
سوئیچ اصلی:
Connects to the DHCP server and all routers.
G0/1: connects to the dhcp switchport mode trunk
Fa0/1: Connects to Network 1. Switchport access vlan 1
Vlan 1 -> 10.10.0.1 255.255.255.0
Fa0/2: Connects to Network 2. Switchport access vlan 2
Vlan 2 -> 10.20.0.1 255.255.255.0
Building configuration...
Current configuration : 1380 bytes
!
version 15.0
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Switch
!
!
!
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
interface FastEthernet0/1
!
interface FastEthernet0/2
switchport access vlan 2
!
interface FastEthernet0/3
switchport access vlan 3
!
interface FastEthernet0/4
switchport access vlan 4
!
interface FastEthernet0/5
switchport access vlan 4
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
switchport mode trunk
!
interface GigabitEthernet0/2
!
interface Vlan1
ip address 10.10.0.1 255.255.255.0
!
interface Vlan2
ip address 10.20.0.1 255.255.255.0
!
interface Vlan3
ip address 10.30.0.1 255.255.255.0
!
interface Vlan4
ip address 10.40.0.1 255.255.255.0
!
!
!
!
line con 0
!
line vty 0 4
login
line vty 5 15
login
!
!
!
!
end
روترها:
Each router has two interfaces:
G0/0/0: Connects to the main switch (IP: 192.10.0.4/24 for Network 1).
G0/0/1: Connects to the internal switch (IP: 10.10.0.1/24 for Network 1).
DHCP Relay is configured on G0/0/1:
interface GigabitEthernet0/0/1
ip helper-address 192.10.0.2
Building configuration...
Current configuration : 948 bytes
!
version 15.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
!
!
!
!
no ip cef
no ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0/0
ip address 192.10.0.3 255.255.255.0
ip helper-address 192.10.0.2
duplex auto
speed auto
!
interface GigabitEthernet0/0/1
ip address 10.10.0.1 255.255.255.0
ip helper-address 192.10.0.2
duplex auto
speed auto
!
interface GigabitEthernet0/0/2
no ip address
duplex auto
speed auto
shutdown
!
interface GigabitEthernet0/1/0
switchport mode access
!
interface GigabitEthernet0/1/1
switchport mode access
!
interface GigabitEthernet0/1/2
switchport mode access
!
interface GigabitEthernet0/1/3
switchport mode access
!
interface Vlan1
no ip address
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end
سوئیچ های داخلی: با دستگاه های روتر و End (PCS) تماس بگیرید.
مشکل: روتر می تواند سرور Ping DHCP (192.10.0.2). دستگاه های نهایی متصل به سوئیچ داخلی نمی توانند آدرس IP را از طریق DHCP بدست آورند. اگر G0/0/0 IP را به روتر در سال 192.10.0.1 تغییر دهم ، کار می کند ، اما با یک IP منحصر به فرد (به عنوان مثال 192.0.0.4) ، شکست می خورد.
سرور DHCP درخواست را دریافت می کند اما آن را پس نمی فرستد
تا کنون انجام شده است:
سوئیچ L2 را در L3 تغییر داد
پیکربندی سوئیچ L3:
Building configuration...
Current configuration : 1498 bytes
!
version 12.2(37)SE1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Switch
!
!
!
!
!
!
ip routing
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface FastEthernet0/1
switchport access vlan 20
switchport mode access
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
switchport access vlan 10
switchport mode access
!
interface GigabitEthernet0/2
!
interface Vlan1
no ip address
shutdown
!
interface Vlan10
mac-address 0001.42db.1c01
ip address 192.10.0.1 255.255.255.0
!
interface Vlan20
mac-address 0001.42db.1c02
ip address 192.168.1.1 255.255.255.252
ip helper-address 192.10.0.2
!
ip classless
ip route 10.10.0.0 255.255.255.0 192.168.1.2
!
ip flow-export version 9
!
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
!
end
روتر:
Building configuration...
Current configuration : 968 bytes
!
version 15.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
!
!
!
!
no ip cef
no ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0/0
ip address 192.168.1.2 255.255.255.252
duplex auto
speed auto
!
interface GigabitEthernet0/0/1
ip address 10.10.0.1 255.255.255.0
ip helper-address 192.10.0.2
duplex auto
speed auto
!
interface GigabitEthernet0/0/2
no ip address
duplex auto
speed auto
shutdown
!
interface GigabitEthernet0/1/0
switchport mode access
!
interface GigabitEthernet0/1/1
switchport mode access
!
interface GigabitEthernet0/1/2
switchport mode access
!
interface GigabitEthernet0/1/3
switchport mode access
!
interface Vlan1
no ip address
!
ip classless
ip route 192.10.0.0 255.255.255.0 192.168.1.1
!
ip flow-export version 9
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end
رایانه من می تواند یک آدرس IP را از کشش دریافت کند. اما من می خواهم اطمینان حاصل کنم که من درست است.





