Did you add vlans?? where is your vlan config?
SW1 config
Code:
sw1#sh vlan-switch
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa1/0, Fa1/1, Fa1/2, Fa1/3
Fa1/4, Fa1/5, Fa1/6, Fa1/7
Fa1/8, Fa1/9, Fa1/10, Fa1/11
Fa1/12
10 VLAN0010 active Fa1/14
20 VLAN0020 active Fa1/15
Code:
sw1#sh run int fa1/13
Building configuration...
Current configuration : 72 bytes
!
interface FastEthernet1/13
switchport mode trunk
no ip address
end
sw1#sh run int fa1/14
Building configuration...
Current configuration : 76 bytes
!
interface FastEthernet1/14
switchport access vlan 10
no ip address
end
sw1#sh run int fa1/15
Building configuration...
Current configuration : 76 bytes
!
interface FastEthernet1/15
switchport access vlan 20
no ip address
end
sw1#
Code:
pc2#ping 192.168.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/24/40 ms
pc2#ping 192.168.2.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/20/28 ms
pc2#ping 192.168.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/43/88 ms
pc2#