01-28-2021 05:04 AM
Hello Everyone , im just a beginner and i really need help, Thank you in Advance
Motive : to set up inter vlan routing between 2 switches and also make them connect to a PC on a different network
Problem being faced :
I created a network with 2 L3 switches with inter vlan routing, now i want a to connect to a pc on a different network
so i added a router , i am unable to understand how do i configure the L3 Switch to route to it ,
PC0 ,PC0(1) ARE IN VLAN 1
PC1 , PC1(1) ARE IN VLAN 2
PC2,PC2 (2) ARE IN VLAN 3
g1/0/4 on both switches are trunking and in VLAN 1
and the interface connecting to the router g1/0/5 is also in VLAN 1
and also how can i improve this network as everything just passes from the first L3 switches as my default gateways are set on it.
Thank you in Advance
Solved! Go to Solution.
01-29-2021 05:17 AM
Hello,
I opened your project. I assume what you want is to reach 8.8.8.1 from all other PCs ? You need routing (static or dynamic) between the L3 switch and the router. Static routes would look like this (attached the working file with the routes below added):
Switch
ip route 8.8.8.0 255.255.255.0 10.1.1.253
Router
ip route 10.1.1.0 255.255.255.0 10.1.1.254
ip route 11.1.1.0 255.255.255.0 10.1.1.254
ip route 12.1.1.0 255.255.255.0 10.1.1.254
01-28-2021 06:01 AM
Hello,
can you please show the VLAN and IP address configuration from your L3 switches.
01-28-2021 07:06 AM
Switch one
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Gig1/0/1, Gig1/0/5
2 VLAN0002 active Gig1/0/2
3 VLAN0003 active Gig1/0/3
100 parking_lot active Gig1/0/6, Gig1/0/7, Gig1/0/8, Gig1/0/9
Gig1/0/10, Gig1/0/11, Gig1/0/12, Gig1/0/13
Gig1/0/14, Gig1/0/15, Gig1/0/16, Gig1/0/17
Gig1/0/18, Gig1/0/19, Gig1/0/20, Gig1/0/21
Gig1/0/22, Gig1/0/23, Gig1/0/24, Gig1/1/1
Gig1/1/2, Gig1/1/3, Gig1/1/4
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
Interface IP-Address OK? Method Status Protocol
GigabitEthernet1/0/1 unassigned YES unset up up
GigabitEthernet1/0/2 unassigned YES unset up up
GigabitEthernet1/0/3 unassigned YES unset up up
GigabitEthernet1/0/4 unassigned YES unset up up
GigabitEthernet1/0/5 unassigned YES unset up up
GigabitEthernet1/0/6 unassigned YES unset down down
GigabitEthernet1/0/7 unassigned YES unset down down
GigabitEthernet1/0/8 unassigned YES unset down down
GigabitEthernet1/0/9 unassigned YES unset down down
GigabitEthernet1/0/10 unassigned YES unset down down
GigabitEthernet1/0/11 unassigned YES unset down down
GigabitEthernet1/0/12 unassigned YES unset down down
GigabitEthernet1/0/13 unassigned YES unset down down
GigabitEthernet1/0/14 unassigned YES unset down down
GigabitEthernet1/0/15 unassigned YES unset down down
GigabitEthernet1/0/16 unassigned YES unset down down
GigabitEthernet1/0/17 unassigned YES unset down down
GigabitEthernet1/0/18 unassigned YES unset down down
GigabitEthernet1/0/19 unassigned YES unset down down
GigabitEthernet1/0/20 unassigned YES unset down down
GigabitEthernet1/0/21 unassigned YES unset down down
GigabitEthernet1/0/22 unassigned YES unset down down
GigabitEthernet1/0/23 unassigned YES unset down down
GigabitEthernet1/0/24 unassigned YES unset down down
GigabitEthernet1/1/1 unassigned YES unset down down
GigabitEthernet1/1/2 unassigned YES unset down down
GigabitEthernet1/1/3 unassigned YES unset down down
GigabitEthernet1/1/4 unassigned YES unset down down
Vlan1 10.1.1.254 YES manual up up
Vlan2 11.1.1.254 YES manual up up
Vlan3 12.1.1.254 YES manual up up
=========================================================================================
Switch 2
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Gig1/0/1, Gig1/0/5, Gig1/0/6, Gig1/0/7
Gig1/0/8, Gig1/0/9, Gig1/0/10, Gig1/0/11
Gig1/0/12, Gig1/0/13, Gig1/0/14, Gig1/0/15
Gig1/0/16, Gig1/0/17, Gig1/0/18, Gig1/0/19
Gig1/0/20, Gig1/0/21, Gig1/0/22, Gig1/0/23
Gig1/0/24, Gig1/1/1, Gig1/1/2, Gig1/1/3
Gig1/1/4
2 VLAN0002 active Gig1/0/2
3 VLAN0003 active Gig1/0/3
100 parking_lot active
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
Interface IP-Address OK? Method Status Protocol
GigabitEthernet1/0/1 unassigned YES unset up up
GigabitEthernet1/0/2 unassigned YES unset up up
GigabitEthernet1/0/3 unassigned YES unset up up
GigabitEthernet1/0/4 unassigned YES unset up up
GigabitEthernet1/0/5 unassigned YES unset down down
GigabitEthernet1/0/6 unassigned YES unset down down
GigabitEthernet1/0/7 unassigned YES unset down down
GigabitEthernet1/0/8 unassigned YES unset down down
GigabitEthernet1/0/9 unassigned YES unset down down
GigabitEthernet1/0/10 unassigned YES unset down down
GigabitEthernet1/0/11 unassigned YES unset down down
GigabitEthernet1/0/12 unassigned YES unset down down
GigabitEthernet1/0/13 unassigned YES unset down down
GigabitEthernet1/0/14 unassigned YES unset down down
GigabitEthernet1/0/15 unassigned YES unset down down
GigabitEthernet1/0/16 unassigned YES unset down down
GigabitEthernet1/0/17 unassigned YES unset down down
GigabitEthernet1/0/18 unassigned YES unset down down
GigabitEthernet1/0/19 unassigned YES unset down down
GigabitEthernet1/0/20 unassigned YES unset down down
GigabitEthernet1/0/21 unassigned YES unset down down
GigabitEthernet1/0/22 unassigned YES unset down down
GigabitEthernet1/0/23 unassigned YES unset down down
GigabitEthernet1/0/24 unassigned YES unset down down
GigabitEthernet1/1/1 unassigned YES unset down down
GigabitEthernet1/1/2 unassigned YES unset down down
GigabitEthernet1/1/3 unassigned YES unset down down
GigabitEthernet1/1/4 unassigned YES unset down down
Vlan1 unassigned YES unset up up
=============================================================================================
Router
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0/0 10.1.1.253 YES manual up up
GigabitEthernet0/0/1 8.8.8.254 YES manual up up
GigabitEthernet0/0/2 unassigned YES unset administratively down down
Vlan1 unassigned YES unset administratively down down
Sir Please Help
01-28-2021 06:36 AM
Hello,
actually, since this looks like a Packet Tracer project, post the zipped project (.pkt) file.
01-28-2021 07:00 AM
01-29-2021 05:17 AM
Hello,
I opened your project. I assume what you want is to reach 8.8.8.1 from all other PCs ? You need routing (static or dynamic) between the L3 switch and the router. Static routes would look like this (attached the working file with the routes below added):
Switch
ip route 8.8.8.0 255.255.255.0 10.1.1.253
Router
ip route 10.1.1.0 255.255.255.0 10.1.1.254
ip route 11.1.1.0 255.255.255.0 10.1.1.254
ip route 12.1.1.0 255.255.255.0 10.1.1.254
01-29-2021 03:04 AM
So, from the information you have provided it is apparent that you are supposed to do inter-VLAN routing on your switches, not on your router. But your trunk port between switches doesn't seem to have VLANs 2 and 3 allowed on it. Please run the following commands on both switches:
config t
interface gi1/0/4
switchport mode trunk
switchport trunk allowed vlan all
end
Also, as long as your PCs in VLAN 2 and 3 have their default gateways set to point to Switch1's SVI interfaces, the routing should work.
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