cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
785
Views
5
Helpful
6
Replies

2 switches and a router interconnectivity , Please Help

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.

asdf.PNG
Thank you in Advance 

1 Accepted Solution

Accepted Solutions

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

 

 

View solution in original post

6 Replies 6

Sergey Lisitsin
VIP Alumni
VIP Alumni

Hello,

 

can you please show the VLAN and IP address configuration from your L3 switches.

 

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

Hello,

 

actually, since this looks like a Packet Tracer project, post the zipped project (.pkt) file.

 

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

 

 

Sergey Lisitsin
VIP Alumni
VIP Alumni

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.

 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card