cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1084
Views
0
Helpful
3
Replies

VLANS trunks doesn't work

punasup
Level 1
Level 1

Hello,

cisco.png

Switch0 configuration:

S0(config)# vlan 10
S0(config-vlan)# name dev
S0(config-vlan)# vlan 20
S0(config-vlan)# name tech
S0(config-vlan)# exit
S0(config)# interface f0/1
S0(config-if)# switchport mode trunk
S0(config-if)# interface f0/5
S0(config-if)# switchport mode trunk
S0(config-if)#interface f0/6
S0(config-if)# switchport mode access
S0(config-if)# switchport access vlan 10

Switch1 configuration:

S1(config)# vlan 10
S1(config-vlan)# name dev
S1(config-vlan)# vlan 20
S1(config-vlan)# name tech
S1(config)# interface f0/1
S1(config-if)# switchport mode trunk
S1(config-if)# interface f0/18
S1(config-if)# switchport mode access
S1(config-if)# switchport access vlan 20

PCA : 192.168.10.2 PCB : 192.168.20.2

 

Problem: I can't ping the PCB from the PCA. I don't understand what is missing, it's a simple configuration and I followed a tutorial.

 

Thanks!

1 Accepted Solution

Accepted Solutions

balaji.bandi
Hall of Fame
Hall of Fame

where is the Layer 3 SVI confifgured for the Gateway for this subnet for VLAN 10 and VLAN 20 ?

 

PCA : 192.168.10.2 PCB : 192.168.20.2

 

PCA  what is the Gateway or what switch has this ?

PCB  what is the Gateway or what switch has this ?

 

Try below config

 

config t

!

Interface vlan 10

ip address 192.168.10.254 255.255.255.0

no shut

!

Interface vlan 20

ip address 192.168.20.254 255.255.255.0

no shut

!

ip routing

 

 

setup your PCA  gateway as 192.168.10.254 and PCB to 192.168.20.254

 

check PCA able to ping .254 

 

Test now.

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

View solution in original post

3 Replies 3

balaji.bandi
Hall of Fame
Hall of Fame

where is the Layer 3 SVI confifgured for the Gateway for this subnet for VLAN 10 and VLAN 20 ?

 

PCA : 192.168.10.2 PCB : 192.168.20.2

 

PCA  what is the Gateway or what switch has this ?

PCB  what is the Gateway or what switch has this ?

 

Try below config

 

config t

!

Interface vlan 10

ip address 192.168.10.254 255.255.255.0

no shut

!

Interface vlan 20

ip address 192.168.20.254 255.255.255.0

no shut

!

ip routing

 

 

setup your PCA  gateway as 192.168.10.254 and PCB to 192.168.20.254

 

check PCA able to ping .254 

 

Test now.

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Seb Rupik
VIP Alumni
VIP Alumni

Hi there, 

You have no Layer3 interfaces to provide a mechanism for the subnets to reach eachother. What you need to do is replace one of the Layer2 switches with a multi-layer switch and configure Layer3 SVIs on it:

 

!
int vlan 10
  ip address 192.168.10.254 255.255.255.0
!
int vlan 20
  ip address 192.168.20.254 255.255.255.0
!

PC A needs to have its default GW set to 192.168.10.254 and PC B DGW set to 192.168.20.254.

 

cheers,

Seb.

punasup
Level 1
Level 1

Hello,

 

Thank you very much, it works and I understand.