cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
353
Views
0
Helpful
4
Replies

pc is not being able to connect to dhcp server

GuriSingh
Level 1
Level 1

Screenshot 2024-12-25 214659.png

In this project the pc6 is not being able to connect to dhcp server which is branchrouter.

the network is 192.168.9.0/24. the gateway address or the ip address of router is 192.168.9.1.

the pc6 is in vlan 90

on the other side the student lab pc has got its ip address from dhcp server which is in vlan 100

4 Replies 4

@GuriSingh 

 Router interface fa0/0 must have subinterfaces on both networks and encapsulation dot1q.

DHCP scope must attend both network providing the proper gateway

Interface F1/2 on Branch switch must be in trunk mode. Both vlans must be created on Branch switch.

As I remember we reply to you that gns3 have bad l2SW' and hence dhcp can not work as you want.

Use eve-ng it better 

MHM

Hello
try the following:

Branch rtr
interface fa0/0
no shut
interface fa0/0.90
encapsulation dot1Q 90
ip address 192.168.9.1 255.255.255.0

interface fa0/0.100
encapsulation dot1Q 100
ip address 192.168.10.1 255.255.255.0

ip route 0.0.0.0 0.0.0.0 s0/0 x.x.x.x

ip dhcp pool dhcp
network 192.168.9.0 255.255.255.0
network 192.168.10.0 255.255.255.0 secondary
override default-router 192.168.10.1
default-router 192.168.9.1
lease 0 8

branch switch
conf t
no ip routing
int fa1/2
switchport trunk encapsulation dot1q
switchport mode trunk
no shut

vlan 90,100
exit

int fa1/0
switchport host
switchport access vlan 90
no shut

int fa1/1
switchport host
switchport access vlan 100
no shut


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Devaa
Spotlight
Spotlight

Hi @GuriSingh 

Are you able to configure static IP (Ex: 192.168.9.10) in PC6 and able to ping 192.168.9.1? 

If you're able to ping gateway, then it's DHCP issue. If unable to ping, then it's L2 issue. 

Share the output of below commands.

From branchRouter:

 

# show ip int brief
# show ip dhcp pool

 

 

From branchSwitch

 

# show vlan
# show interfaces trunk