cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
484
Views
2
Helpful
6
Replies

Multiple VLAN communication problem in Layer 3 switch

Cdg2017
Level 1
Level 1

Hi,
I need to make these PCs communicate between them but i think there are some steps of the configuration im missing.
this is the topology(nevermind about the f0/0 link).

Screenshot 2023-12-21 114437.png
the Layer 3 switch configuration i used:
.
.
.

conf t
vlan database
   vlan 10
   vlan 20
   vlan 30
   apply
conf t
   int vlan 10
      ip add 192.168.10.1 255.255.255.0
      no shut
      exit
   int vlan 20
      ip add 192.168.20.1 255.255.255.0
      no shut
      exit
   int vlan 30
      ip add 192.168.30.1 255.255.255.0
      no shut
      exit
   int f0/1
      switchport mode trunk
      switchport trunk allowed vlan add 10
      switchport trunk allowed vlan add 20
      switchport trunk allowed vlan add 30
      no shut
      exit
   int f0/2
      switchport mode trunk
      switchport trunk allowed vlan add 10
      switchport trunk allowed vlan add 20
      switchport trunk allowed vlan add 30
      no shut
   ip routing


exit
.
.
.
i try from PC1 to ping the PC5 but the host (192.168.10.1), (PC1 gateway) is not reachable.
I am very new to all this.....

1 Accepted Solution

Accepted Solutions

@Cdg2017 

On Switch1, interface e3 is a Trunk, not access.

@Cdg2017, you should have this on Switch1:

M02rt37_0-1703158794328.png

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

View solution in original post

6 Replies 6

M02@rt37
VIP
VIP

hello @Cdg2017 

Does PC1 ping its Gateway hosted on L3 Switch, 192.168.10.1 ?

What about the L2 Switch configuration ? Port assigned to the correct vlan id ? Trunk port configured towards L3 Switch ?

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

PC1 does not ping its gateway on L3switch and I did nothing about the L2 switch

Hello
Do sw1&2 have the their trunks created the same way as the L3 switch and also l2 vlans created.

Example:
SW1/2

conf t
vlan 10,20,30
exit


int x/x
description link to L3 switch
switchport mode trunk

switchport trunk allowed vlan add 10
switchport trunk allowed vlan add 20
switchport trunk allowed vlan add 30

int x/y
description pcx
switchport mode access

switchport access vlan x

PC1
IP =192.168.10.15
Mask=255.255.255.0
D/G= 192.168.10.1

PC5
IP =192.168.20.16
Mask=255.255.255.0
D/G= 192.168.20.1

Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

My GNS3 version does not support the L2switch configuration ftom telnet. only what i can do from here:

Screenshot 2023-12-21 130610.png
i changed the VLAN on ports 0,1 and 2 to 10,20,and 30 but nothing happens

@Cdg2017 

On Switch1, interface e3 is a Trunk, not access.

@Cdg2017, you should have this on Switch1:

M02rt37_0-1703158794328.png

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

Gopinath_Pigili
Spotlight
Spotlight

Hello  Cdg2017,

If you want to see the communication betwenn PC's....The Layer-2 Switches(Switch1 and Switch2) must be configured...

in each L2 switch(Switch1&2)....You should create vlans, moving ports and Trunk...with out this you can't see the communication between PC's...

Either you should try the same lab setup in Cisco Packet tracer....or replace L2 switches with L3 switch....and finish the lab....

if you don't give

ip routing

command in it will act as L2 switch and complete the configurations...

Best regards
******* If This Helps, Please Rate *******

 
Review Cisco Networking for a $25 gift card