3 VLANs (2,5,10) Defined on switch and subinterfaces on router. VLAN 2 native VLAN is applied on the physical int on the router, and is the only SVI up on the switch.
I have 2 PCs connected to the layer 2 switch, each in their own vlan (5+10 respectively).
I have set the DG of the switch to the IP of the physical interface on the router.
I can ping:
The two PCs from the router, but not the SVI on the switch
From the PCs I can ping the ip of the subinterfaces on the router of their VLAN but not the other PC or any other IPs
Basically I think I've got myself in one hell of a muddle and I'm not sure how close (or far away) I am from nailing this.
Router:
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
no ip directed-broadcast
!
interface FastEthernet0/0.10
encapsulation dot1q 5
ip address 172.16.5.1 255.255.255.0
!
interface FastEthernet0/0.20
encapsulation dot1q 10
ip address 172.16.6.1 255.255.255.0
!
172.16.0.0/24 is subnetted, 2 subnets
C 172.16.5.0 is directly connected, FastEthernet0/0.10
C 172.16.6.0 is directly connected, FastEthernet0/0.20
C 192.168.1.0 is directly connected, FastEthernet0/0
!
Switch:
interface FastEthernet0/1
switchport mode trunk
!
interface FastEthernet0/2
switchport mode access
switchport access vlan 5
!
interface FastEthernet0/3
switchport mode access
switchport access vlan 10
!
interface Vlan 1
no ip address
no ip route-cache
!
interface Vlan0005
ip address 172.16.5.5 255.255.255.0
no ip route-cache
shutdown
!
interface Vlan0010
ip address 172.16.6.10 255.255.255.0
no ip route-cache
shutdown
!
interface Vlan0002
ip address 192.168.1.5 255.255.255.0
no ip route-cache
!
!
ip default-gateway 192.168.1.1
!