It is a vlan-intervlan topic i have querry why i cant able to ping from 192.168.10.1 to 192.168.20.1....what i have done wrong in the configuration? can anyone explain


It is a vlan-intervlan topic LAB i have querry why i cant able to ping from 192.168.10.1 to 192.168.20.1

sw1

enable
config t
hostname sw1

vlan 10
name IT

VLAN 20
name HR

interface range fa0/1-2
switchport access vlan 10

interface range fa0/3-4
switchport access vlan 20

interface range gig0/1-2
switchport mode trunk

sw2

enable
config t
hostname sw2

vlan 10
name IT

VLAN 20
name HR

interface range fa0/1-2
switchport access vlan 10

interface range fa0/3-4
switchport access vlan 20

interface range gig0/1-2
switchport mode trunk

###COR- SW ###
enable
config t
hostname COR-SW
IP ROUTING

VLAN 10
NAME IT

VLAN 20
NAME HR

interface range gig0/1-2
switchport trunk encapsulation dot1q
switchport mode trunk

interface range fa0/1-2
switchport trunk encapsulation dot1q
switchport mode trunk

create svi

interface vlan 10
ip address 192.168.10.0 255.255.255.0
no shutdown

interface vlan 20
ip address 192.168.20.0 255.255.255.0
no shutdown

Dont give Network ids on Interface of vlans. Like 192.168.10.0 instead give 192.168.10.1