06-18-2023 10:11 AM - last edited on 06-20-2023 02:17 AM by Translator
I am working through the CCNA curriculum and I have a question about ROAS configuration. I have two VLANs set up in my LAN, 5 and 10. Each VLAN has 3 PC's and there are no network communication issues. While trying to configure ROAS I have created two subinterfaces,
GE0/1.5 and GE0/1.10.
Both interfaces have been configured with encapsulation dot1q. The only thing I am not understanding is the assigning of IP addresses to each subinterface. I am using a DHCP pool to hand out IP addresses all on the 192.168.1.0/24 network. I have tried setting each subinterface to IP add dhcp to no avail. Am i just supposed to statically assign an ip within the same network range?
Solved! Go to Solution.
06-18-2023 11:14 AM - last edited on 06-20-2023 02:21 AM by Translator
hi,
int the router put ip address in sub interface and create dhcp pool with
default-router
the ip of subinterface.
that is what i understood , if else please share the configuration.
06-18-2023 11:14 AM - last edited on 06-20-2023 02:21 AM by Translator
hi,
int the router put ip address in sub interface and create dhcp pool with
default-router
the ip of subinterface.
that is what i understood , if else please share the configuration.
06-19-2023 12:32 PM
My man! I didn't think of setting up each dhcp server to point towards that subinterface. Thank you!
06-18-2023 11:30 AM - last edited on 06-20-2023 02:30 AM by Translator
Hello @reedman,
You can manually assign IP addresses to each subinterface within the corresponding VLAN subnet. For example, you can configure the subinterface
GE0/1.5
with the IP address 192.168.1.1/24 and the subinterface
GE0/1.10
with the IP address 192.168.1.2/24. This ensures that each VLAN has its own unique IP subnet.
You can configure a DHCP pool on the router to dynamically assign IP addresses to the hosts within each VLAN. In this case, you would configure the DHCP pool to provide IP addresses from the appropriate subnet for each VLAN. For example, you can configure a DHCP pool for VLAN 5 to assign IP addresses from the 192.168.1.0/24 subnet, and another DHCP pool for VLAN 10 to assign IP addresses from the same subnet.
Make sure that the DHCP pool is correctly configured, the pool is active, and the VLAN interfaces (subinterfaces) are properly associated with the correct VLAN IDs.
In your DHCP pool configuration, you would specify the IP address of the subinterface as the
default router
for the hosts in that VLAN. For example, if you have the subinterface
GE0/1.5
with the IP address 192.168.1.1/24 for VLAN 5, your DHCP pool configuration for VLAN 5 would include the following line:
default-router 192.168.1.1
This tells the DHCP clients in VLAN 5 to use 192.168.1.1 as their
default gateway.
Also check that the VLANs are properly configured on any connected switches, and the trunk link between the router and the switch is configured to carry the appropriate VLAN traffic.
06-19-2023 12:33 PM
Thanks for taking the time to write it all out! Worked like a charm.
06-18-2023 01:47 PM
Hi
Best way to help you is you attaching your PatratTracer project here. You just need to zip the file to attach
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