12-20-2022 12:39 AM
Hi
I have a cisco cbs350 that is connected to a router that provided an IP range that I did not want. The VLAN1 is directly connected to the router with DHCP. 10.1.10.x I changed this so the switch would provide the DHCP.
I created new VLANs 10, and 20 on the CBS350 and added IPv4 Interface static 192.168.10.200 and 192.168.20.200 and added the DHCP service on the switch.
I assigned the trunk port for all the VLANs.
The Problem is the VLAN 10 or 20 is not assigning the 192.168 DHCP addresses and when I manually assign a computer's address to 192.168.1.x I no longer have access to the router.
What step am I missing?
12-20-2022 02:08 AM
You say that the switch should do the DHCP, but which device should do the routing between the VLANs?
12-20-2022 04:30 AM
Hi Karsten, Thank you for your reply. I don't think the router the ISP provides has a trunk. but LAN 1 that is the . I did also try making LAN10 the native LAN and all ports defined as access ports but I think my problem is not knowing how to point to the default route. I tried ACL but it did not work. I don't think I did it correctly if ACL is the way to do that. I just factory reset the switch to start over. I was thinking of adding the 192.168 to VLAN 1 but still was not sure on when I change the DHCP to be on the switch if that would work. Or, If I keep VLAN 1 as 10.1.10. x not sure how to route the LAN 10 correctly to 10.1.10.1
Could you point me to a resource that explains this?
IPv4 Forwarding Table
Destination IP Prefix Prefix Length Route Type
0.0.0.0 0 Remote 10.1.10.1 VLAN 1
10.1.10.0 24 Local 10.1.10.64 VLAN 1
192.168.1.0 24 Local 192.168.1.200
12-20-2022 04:36 AM
And There is the next Problem. The Router would need a route back to the switch for the internal VLANs. First check if the router is capable of extra static routes. Perhaps you need a different device there.
12-20-2022 04:49 AM
Thank Karsten, So could I turn on DHCP on the switch and add the static to VLAN 1 and not setup the other VLANs . In the end I'm just looking for the port to give out 192.168 and not 10.1. I will ask about the static routes.
12-20-2022 05:00 AM
Yes, the correct port config is part of the DHCP success. But if the rest of the infrastructure is not capable to deliver the needed services, you still can’t access the internet.
12-20-2022 07:35 AM
Hi Karsten, Currently our infrastructure is the ISP router and the new cisco switch. We currently have running the ISP router and a few netgear routers connected to the ISP router, On the NETGEAR router we could just define the internet IP address, the subnet, def gateway, and DNS 1 - 2, and enable DHCP, define the start address of 192.168.1 1 and the MAX # of users. With that I would get the IP address I wanted. I wanted to remove the extra netgear router and the hubs and use the 1 cisco switch. But having a problem doing this. I'm sure I'm just missing something in doing the configuration (the wizard did not help) to make the switch work and provide the IP address of 192.168.1.x. I'm wondering if this gives a better view of what I'm looking to do.
Thank you for replying to my post.
12-20-2022 02:29 AM
The Problem is the VLAN 10 or 20 is not assigning the 192.168 DHCP addresses and when I manually assign a computer's address to 192.168.1.x I no longer have access to the router
The port should belong respected VLAN. to get an IP address from DHCP.
192.168.1.x ( are you sure this IP address correct, you have 10.X and 20.X IP range?)
12-20-2022 04:31 AM
Hi BB, If I could have the switch assign 1 VLAN to 192.168.1.x address and route to the routers 10.1.10.1 I would be happy. I think I don't understand how the route process works. The things I did try did not work.
12-20-2022 05:23 AM
can you post show run - also have you enable ip routing for the switch to perform l3 functions.
12-20-2022 07:14 AM
12-20-2022 07:52 AM
show run - not full config.
12-20-2022 08:13 AM
The switch isn't going to assign any DHCP addresses becase there are no address pools assigned. You have turned on the server but its not doing anything. You should see entries for each pool looking something like this
ip dhcp pool network mainlan
address low 192.168.1.160 high 192.168.1.199 255.255.255.0
default-router 192.168.1.200
dns-server 10.1.10. I
should have a line identifying where the internet gateway is
ip default-gateway 10.1.10. I
Your VLAN20 also lacks a switch address. The switch needs its own IP address on each vlan.
If the CBS350 can't see the internet (use ping to test and NTP services shoukld connect) then your not even close.
12-20-2022 01:17 PM
12-20-2022 08:39 AM
L3 routing is enabled by default and is done on a global not port level. It would have a "no ip routing" in your show run if it was disabled.
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