04-21-2021 03:31 AM - edited 04-21-2021 03:31 AM
Hello,
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!
Solved! Go to Solution.
04-21-2021 03:46 AM
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.
04-21-2021 03:46 AM
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.
04-21-2021 03:46 AM
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.
04-21-2021 03:58 AM
Hello,
Thank you very much, it works and I understand.
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