pc is not being able to connect to dhcp server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2024 10:17 AM
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
- Labels:
-
Routing Protocols
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2024 10:28 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2024 10:38 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2024 01:47 PM - edited 12-26-2024 01:48 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2024 01:31 AM - edited 12-27-2024 01:35 AM
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
