I have a 4506 connected via fiber to a 2960. The interface on the 4506 is switchport access vlan 9. The interface on the 2960 is switchport access vlan 10. They are both on the same subnet. vlan 9 on the 4506 is 10.20.2.1 and vlan 10 on the 2960 is 10.20.2.2. How are these two talking? I tried to change the interface on the 4506 to a trunk and I wasn't able to ping the 2960s vlan interface anymore.
4506
interface GigabitEthernet2/48
switchport access vlan 9
switchport mode access
interface Vlan9
ip address 10.20.2.1 255.255.255.0
2960
interface GigabitEthernet0/1
switchport access vlan 10
switchport mode access
interface Vlan10
ip address 10.20.2.2 255.255.255.0
no ip route-cache