- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2022 05:01 AM
I create a network that has two VLANs in one subnet. I set switch 6 as a server and switch 5 as a client. when I select DHCP in pc it says failed. This is the running configuration on the router. please help me.
ip dhcp excluded-address 192.168.11.1
ip dhcp excluded-address 192.168.40.1
!
ip dhcp pool vlan
dns-server 8.8.8.8
ip dhcp pool finance
network 192.168.40.0 255.255.255.0
default-router 192.168.40.1
dns-server 8.8.8.8
ip dhcp pool cctv
network 192.168.11.0 255.255.255.0
default-router 192.168.11.1
dns-server 8.8.8.8
!
interface FastEthernet0/0
ip address dhcp
duplex auto
speed auto
!
interface FastEthernet0/0.11
encapsulation dot1Q 11
ip address 192.168.11.1 255.255.255.0
!
interface FastEthernet0/0.40
encapsulation dot1Q 40
ip address 192.168.40.1 255.255.255.0
Solved! Go to Solution.
- Labels:
-
LAN Switching
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2022 09:18 AM
Hello,
the Vlans configured on your subinterfaces did not correspond to the Vlans configured on the switches. The subinterfaces were 11 and 40, on the switches, Vlans 2 and 4 were configured. I changed 2 to 11m and 4 to 40.
Attached the revised file (saved in PT version 8).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2022 05:34 AM
Config does not look good, we only have half the information, until we know the full configuration - we only assuming here..that not going to anywhere of the solution. So you need to post complete switch 5 and 6 config, (show run) - also tell us where is PC connected?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2022 07:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2022 09:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2022 12:04 PM
thankyou for your support. it worked now I realized that encapsulation dot1q 11 means referring subnet not VLAN id. 10nx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2022 10:02 AM
Hello
FYI - DOT1Q x represens the vlan the subnet resides in.
On the rtr
interface FastEthernet0/0.11
encapsulation dot1Q 2
ip address 192.168.11.1 255.255.255.0
interface FastEthernet0/0.40
encapsulation dot1Q 4
ip address 192.168.40.1 255.255.255.0
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
01-29-2022 12:06 PM
thankyou too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2022 11:41 AM
Thank you for the information, unfortunately, I do not use PT, someone sure assists you in this community.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2022 12:08 PM
yes, I check it on my pt file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2022 06:33 PM - edited 01-29-2022 06:47 PM
It appears that in the router you did the VLAN ID wrong
you have CCTV VLAN with ID 2, need to change the encapsulation ID to 2 not 11, and same with the finance VLAN from 40 to 4
