I want to be able to have any workstation I put on the workstations vlan to use 188.8.131.52.34 as a gw and from there route to 184.108.40.206 and from there to the outside. Basiclly, I want to be able to route ips from two different subnets on two different vlans. I've read through the docs and so far I have vlan1 setup and vlan 2 setup fine but I have no clue how to get the routing to cross vlans. The docs say the only way to have vlans talk to each other is by routing through the vlans ip interfaces but I have no clue how. There isn't a simple step 1,2,3 chapter that gets you to route between two vlans. What am I doing wrong? I put in some IP route entries but nothing seems to work.
Thank you for participating in the support community. My name is Nico Muselle from Cisco Sofia STAC.
Let me try and guide you step by step through the configuration you would like to implement.
First of all, if you want your switch to be routing, you need to set it to layer 3 mode. You cannot do this through the web interface, so you might want to connect either through telnet/ssh, either through the console port. Keep in mind that when you change the mode from L2 to L3, the switch settings will be reset to factory defaults. (if this has already been done, please skip this step)
Secondly, you will create your vlans again like you did in your L2 configuration, and assign the VLANS to the ports. After that, you will assign an IP address to each of the created VLANs.
This being done, and clients connected to each of the VLANs, you will see that the routing table will get populated by the 2 VLANs. Now we need to add a default route to the switch 0.0.0.0 - 0.0.0.0 with the next hop being the default gateway being the IP address of your router connecting to the ISP.
We have a way out now for all traffic not intended for the local VLANs, we also need to configure a way back, so you need to add a static route in your router telling it that for all the traffic with a destination IP in the subnet of VLAN2, the next hop is the switch's VLAN1 IP address, the switch will detect the destination IP as local and route the traffic to the correct VLAN.
I’ve been having difficulties getting this to work;
I have 2 VLAN's Set up and working. my default gateway (next hop) for the router is 220.127.116.11 0.0.0.0/0 connected into VLAN1, this runs fine with DHCP via the router, and i can access/view an IP camera on VLAN 2 192.168.2.100 from VLAN1 but the real issue I’m having is accessing the internet from VLAN 2, I can ping 18.104.22.168 VLAN1 Gateway from VLAN 2 but cannot ping the default gateway on 22.214.171.124 (the apparent next hop) I can also ping any client in VLAN1 from VLAN2.
With my router do i need another subnet setup with NAT for the 192.168.2.x network to access the internet or does the switch tag the packet when it leaves the switch looking for the next hop?
And how should i configure my static DNS, should this be the local gateway address, VLAN1 gateway or the Default gateway???
Listen: https://smarturl.it/CCRS8E41 Follow us: https://twitter.com/CiscoChampion
Let’s face it: today’s work is hybrid. Making hybrid work requires more than collaboration tools and SaaS applications. It’s about connecting people, dispa...
Join David Bombal as he busts the myths around Cisco Designed while building out an SMB network right at his desk.
David, a CCIE, CCSI and an educator, has delivered training courses all around the globe across multiple Cisco topics. And he’s desig...
This Chat covers the intersection of technology and social impact from community to global levels. Learn how digital maturity accelerates SMB growth and profits that can fund social programs and enable sustainable business practices like remote work.
This Chat covers the intersection of technology and social impact from community to global levels. Learn how digital maturity accelerates SMB growth and profits that can fund social programs and enable sustainable business practices like remote work. We'l...