Inter-Vlan Routing and Internet connection
Alceo
Member Posts: 80 ■■□□□□□□□□
in CCNA & CCENT
Let's say I have a network with an ADSL line.
My PCs are connected to L3 switches with different VLAN assigned, to route between them I configure their NIC with a default gateway that is the IP of the SVI interface with the same VLAN ID.
How can I let the PCs access the internet?
I' d like to find a solution in the two cases that I mapped.
My PCs are connected to L3 switches with different VLAN assigned, to route between them I configure their NIC with a default gateway that is the IP of the SVI interface with the same VLAN ID.
How can I let the PCs access the internet?
I' d like to find a solution in the two cases that I mapped.
Comments
-
Deathmage Banned Posts: 2,496I'd set the ip default-gateway on the switches to that of the router and enable ip routing and then set the gateway of last resort on the router to the ISP's IP. So say the IP from the ISP on the router is 172.16.60.1 and the ISP's is 172.16.60.2 you set the gateway of last resort or default gateway to 172.16.60.2.
Also I'd presume the L3 switches are connected to each other with a trunk and have the same native vlan.
That's how I would do it. -
OfWolfAndMan Member Posts: 923 ■■■■□□□□□□It depends on how many users you have, routing protocols supported on the L3 switches, and size of a site can determine if interVLAN routing occurs at the switch or the router. In a large site, you would not daisy chain your switches like that and run it to a core, but let's assume the top switch is your core. You could have all computers point to the SVIs place on the top switch, run a routing protocol between the top switch and the router, and then have a default route advertised down to the top L3 switch.:study:Reading: Lab Books, Ansible Documentation, Python Cookbook 2018 Goals: More Ansible/Python work for Automation, IPSpace Automation Course [X], Build Jenkins Framework for Network Automation []
-
santaowns Member Posts: 366Ip route 0.0.0.0 0.0.0.0 (router address) IF you're using the switches as l3. If not default gateway on switch will do the same. To route the vlans just setup eigrp between the two l3 and redistribute connected should do it.
-
websponge Member Posts: 119Ip route 0.0.0.0 0.0.0.0 (router address) IF you're using the switches as l3. If not default gateway on switch will do the same. To route the vlans just setup eigrp between the two l3 and redistribute connected should do it.CCDP Next