I have R1 connected to R2 with a direct ethernet connection. R1 has is using a subinterface and R2 is not. If I use this config I do not get reachability:
R1
int f0/0
no shut
int f0/0.12
encapsulation dot1q 12
ip add 192.168.1.1 255.255.255.0
R2
int f0/0
ip add 192.168.1.2 255.255.255.0
vlan-id dot1q 12
no shut
If I remove the vlan-id command from R2 and on R1 change the encapsulation to vlan 1 I can now ping. How can I get it to work on a different vlan?