07-29-2025 05:51 AM
Hello, Team,
I want to connect the PCs in VLAN 10 to the PCs in VLAN 40 through two Layer 3 switches on which I have configured EtherChannel 3. But the communication fails.
Please find the architecture in the attached image (at the bottom of the page). And the main configurations of the two switches are below.
Can someone please help me resolve this issue?
SW1:
SW1#show running-config
hostname SW1
!
ip routing
!
spanning-tree mode pvst
!
interface Port-channel1
no switchport
ip address 10.1.50.1 255.255.255.0
!
interface FastEthernet0/1
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/2
switchport access vlan 20
switchport mode access
!
interface GigabitEthernet0/1
no switchport
no ip address
channel-group 1 mode on
duplex auto
speed auto
!
interface GigabitEthernet0/2
no switchport
no ip address
channel-group 1 mode on
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
interface Vlan10
mac-address 000a.f313.ea01
ip address 10.1.10.1 255.255.255.0
!
interface Vlan20
mac-address 000a.f313.ea02
ip address 10.1.20.1 255.255.255.0
!
SW2:
SW2#show running-config
!
hostname SW2
!
ip routing
!
interface Port-channel2
no switchport
ip address 10.1.50.2 255.255.255.0
!
interface FastEthernet0/1
switchport access vlan 30
switchport mode access
!
interface FastEthernet0/2
switchport access vlan 40
switchport mode access
!
interface GigabitEthernet0/1
no switchport
no ip address
channel-group 2 mode on
duplex auto
speed auto
!
interface GigabitEthernet0/2
no switchport
no ip address
channel-group 2 mode on
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
interface Vlan30
mac-address 0001.971e.d501
ip address 10.1.30.1 255.255.255.0
!
interface Vlan40
mac-address 0001.971e.d502
ip address 10.1.40.1 255.255.255.0
!
07-29-2025 06:00 AM
You need static route config in both L3SW for each vlan connect to that SW
MHM
07-29-2025 06:02 AM
hello @taonrez Based on what you've posted, the core issue seems to be missing routing between VLANs across the switches. You’ve created Layer 3 EtherChannels (po1 and po2) with IPs on both ends, but there’s no routing between VLAN 10 (SW1) and VLAN 40 (SW2).
Here’s what u need to do:
Add static routes or use a dynamic routing protocol (like OSPF or EIGRP) so the switches know how to reach each other's VLANs via the Port-Channels.
For example, on SW1:
ip route 10.1.40.0 255.255.255.0 10.1.50.2
And on SW2:
ip route 10.1.10.0 255.255.255.0 10.1.50.1
Make sure the PCs have correct default gateways — for VLAN 10, it should be 10.1.10.1; for VLAN 40, it should be 10.1.40.1.
Test with a ping from one switch to the other using VLAN SVI IPs to confirm routing is working.
If that doesn’t solve it, paste here ur topology as ZIP and ill fix it for u....
-Enes
07-29-2025 06:23 AM - edited 07-29-2025 06:25 AM
Hello
Static routing is to administrative in the long term, suggest an IGP would be applicable
SW1
ip routing
router ospf 1
router-id 10.1.50.1
passive interface default
no passive interface port-channel 1
interface Port-channel 1
ip ospf 1 area 0
ip ossf network point-to-point
int range vlan 10, 20
ip ospf 1 area 1
SW2
ip routing
router ospf 1
router-id 10.1.50.2
passive interface default
no passive interface port-channel 2
interface Port-channel2
ip ospf 1 area 0
ip ospf network point-to-point
int range vlan 30, 40
ip ospf 1 area 2
07-29-2025 06:38 AM
Both @MHM Cisco World and @Enes Simnica have correctly identified the issue, i.e. neither switch has routes for networks not directly connected to the switches. The Etherchannel, isn't the problem, a single link would have the same issue.
To be clear, in the example static route statements that @Enes Simnica provides, he's only showing one static route, per switch, but that kind of static routes would need one for each remote network, or a summary/aggregate route for multiple remote networks.
For example, SW1 would need:
ip route 10.1.30.0 255.255.255.0 10.1.50.2
ip route 10.1.40.0 255.255.255.0 10.1.50.2
To use summary/aggregate routes, you would need to have considered that in what address blocks you use, and where you use them.
For example if SW1 had 10.1.2.0/24 and 10.1.3.0/24, they could have been summarized using 10.1.2.0/23. For just two /24s it matters little, but understanding summary/aggregate routes, and how to take advantage on them, is useful to know.
In this particular case, you can use a single global default route, on each switch, although that would work correctly for the actual networks, a non-existent network, like ping 10.1.50.1, would cause a routing loop.
BTW, if using something like Packet Tracer, be aware it doesn't usually (if ever) support all features, and the features it does support, don't always work as they should.
Further, if you were doing this for "real", likely you would use LACP, use a /30 or /31 for the Etherchannel, concern yourself with the Etherchannel load balancing choice, etc.
07-29-2025 07:37 AM - edited 07-29-2025 07:38 AM
Hello @taonrez
First, you must add static routes (or a dynamic routing protocol) on both switches to allow L3 routing between VLANs across the L3 Etherchanel.
Give you some tips to troubleshoot by yourself next time:
Ensure PC default Gateways match the correct SVI IPs.
Verify that SVIs are all up with command show ip interface brief and that Port-channels are up too: show etherchannel summary.
Check IP table with show ip route command -- You could also use a routing protocol like OSPF or EIGRP between SW1 and SW2 for automatic route learning if your design grows...
A lot of PT ressources exist on internet to help you as concerned basic config of routing protocol.
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