05-18-2022
06:36 AM
- last edited on
05-19-2022
10:06 AM
by
Translator
I"m having trouble with the DHCP !
it say
C:\>ipconfig /renew
DHCP request failed.
What i did wrong ?Routing and Switching
Solved! Go to Solution.
05-18-2022
07:22 AM
- last edited on
05-19-2022
10:04 AM
by
Translator
Hi
There was some mistakes on your project. Go through the config I did on router and try to make sense of it.
Basially, you need to have suinterface on router. You can´t do it with physical interface because you need put is as trunk and physical interface does not suport trunk
When you create subinterface you can enable trunk.
!
interface GigabitEthernet0/0/0.10
encapsulation dot1Q 10
ip address 10.21.1.50 255.255.255.128
!
interface GigabitEthernet0/0/0.20
encapsulation dot1Q 20
ip address 10.21.1.129 255.255.255.128
!
this configuration must mach with the DHCP scope:
ip dhcp pool mypool
network 10.21.1.0 255.255.255.128
default-router 10.21.1.50
dns-server 11.1.1.10
ip dhcp pool mypool2
network 10.21.1.128 255.255.255.128
default-router 10.21.1.129
dns-server 11.1.1.10
!
The rest is OK. You put switches interfaces right, the communication between router and switch is ok. I tested and all machine got IP as it should.
05-18-2022 10:38 AM
Did you look at my file?
I am going to attached devices config here for you.
Assuming you are trying to get ip address from the router.
05-18-2022
07:22 AM
- last edited on
05-19-2022
10:04 AM
by
Translator
Hi
There was some mistakes on your project. Go through the config I did on router and try to make sense of it.
Basially, you need to have suinterface on router. You can´t do it with physical interface because you need put is as trunk and physical interface does not suport trunk
When you create subinterface you can enable trunk.
!
interface GigabitEthernet0/0/0.10
encapsulation dot1Q 10
ip address 10.21.1.50 255.255.255.128
!
interface GigabitEthernet0/0/0.20
encapsulation dot1Q 20
ip address 10.21.1.129 255.255.255.128
!
this configuration must mach with the DHCP scope:
ip dhcp pool mypool
network 10.21.1.0 255.255.255.128
default-router 10.21.1.50
dns-server 11.1.1.10
ip dhcp pool mypool2
network 10.21.1.128 255.255.255.128
default-router 10.21.1.129
dns-server 11.1.1.10
!
The rest is OK. You put switches interfaces right, the communication between router and switch is ok. I tested and all machine got IP as it should.
05-18-2022 09:56 AM
05-18-2022 10:38 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide