04-11-2020 05:37 AM - edited 04-11-2020 08:07 AM
Hi
I'm looking to setup a router on a stick with 2 Vlans and have DHCP operate on both Vlan 2 and vlan 3
I'm using packet tracer v 7.2
I have setup the Vlans and the machines are able to ping each other through the Vlans
Have setup and assigned the ports to each vlan and ensured the machines are in the correct ports for their vlan.
Ive set the sub interfaces on the router with the default gateway for each sub interface.
The machines on the Vlan 2 are getting their IP address OK but those on Vlan 3 are not.
I set them up identically so I dont see why one is working and not the other.
Ive included some detail below. I doubled checked my config but not sure if im getting tunnel vision.
# Configure the Switch Gig port as a Trunking port.
Interface GigabitEthernet 0/1
No shutdown
Switchport mode trunk
# Configure the Router Gig port as the receiving Trunk port
Interface gigabitEthernet 0/0
No shutdown
No ip address
Duplex auto
Speed auto
# Set the sub interfaces on the router Trunk port. e.g. . 2 represent corresponding vlan 2
interface GigabitEthernet 0/0.2
encapsulation dot1Q 10
ip address 192.168.2.126 255.255.255.128 # Last ip addr of that range to be the default gateway on Vlan 2.
interface GigabitEthernet 0/0.3
encapsulation dot1Q 10
ip address 192.168.2.254 255.255.255.128 # Last ip addr of that range to be the default gateway on Vlan 3.
# DHCP SET EXCLUSIONS
# Default Gateway exclusion for each subnet. Ensure DG address not given out.
Router(config)# ip dhcp excluded-address 192.168.2.126 255.255.255.128 # Vlan 2 DG - Sales
Router(config)# ip dhcp excluded-address 192.168.2.254 255.255.255.128 # Vlan 3 DG - Finance
# Have an exclusion of 10 IP addresses for servers, printers etc. for Sales Vlan 2
Router(config)# ip dhcp excluded-address 192.168.2.1 192.168.2.10
# Have an exclusion of 10 IP addresses for servers, printers etc. for Finance Vlan 3
Router(config)# ip dhcp excluded-address 192.168.2.129 192.168.2.139
# Setup DHCP for Sales Vlan 2 - Identify using the network ID/Mask
Router(config)# ip dhcp pool SalesVlan2 # Dhcp setting name
Router(dhcp-config)# network 192.168.2.0 255.255.255.128 # Identify Network
Router(dhcp-config)# default-router 192.168.2.126 # Default gateway for that subnet
# Setup DHCP for Finance Vlan 3 - Identify using the network ID/Mask
Router(config)# ip dhcp pool FinanceVlan3
Router(dhcp-config)# network 192.168.2.128 255.255.255.128
Router(dhcp-config)# default-router 192.168.2.254
Solved! Go to Solution.
04-11-2020 09:21 AM
Hi @Confuseis
Apparently it is a PT bug.
I have created a new router and entered the settings for DHCP and I have been successful.
I have version 7.3, so if I attach my exercise to you, you won't be able to open it with your version.
I suggest you create a new router and re-enter the commands.
Regards
04-11-2020 06:28 AM
Hi @Confuseis
Compress your exercise (winzip) and attach it to check.
In the meantime, try this change:
interface GigabitEthernet 0/0.2
encapsulation dot1Q 2
ip address 192.168.2.126 255.255.255.128
interface GigabitEthernet 0/0.3
encapsulation dot1Q 3
ip address 192.168.2.254 255.255.255.128
Regards
04-11-2020 08:09 AM
Ive tried those amendments but no joy. Ive attached the file to the main post
Thanks
04-11-2020 09:21 AM
Hi @Confuseis
Apparently it is a PT bug.
I have created a new router and entered the settings for DHCP and I have been successful.
I have version 7.3, so if I attach my exercise to you, you won't be able to open it with your version.
I suggest you create a new router and re-enter the commands.
Regards
04-11-2020 11:31 AM
as far as I know PT does NOT support multi-pool on a router; nothing wrong with configs; it is just PT limitation as it is a software sim, not real IOS
please use Server DHCP
Regards, ML
**Please Rate All Helpful Responses **
04-12-2020 07:51 AM
Looks from previous post it worked on 7.3
In any case looks like packet tracer is the culprit which brings me some relief
as sank way too much time troubleshooting configs.
Thanks to both of you
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