Can anyone please advise how "vlan-id dot1q" command works?
According to the Command lookup tool, it says "This command allows you to enable IEEE 802.1Q VLAN encapsulation for a specific VLAN on an Ethernet interface without associating the VLAN with a subinterface."
Does this mean when I configure "vlan-id dot1q (vlan-id)" on a Ethernet interface, frame sent out the interface wil be tagged with specified vlan-id?
Also I want to know how router in other end should be configured as dot1q trunk.
I did test this command using configuration below, but it did not work (cannot ping each other)
Assume Router1 Fa0/1 is directly connected to Router2 Fa0/1
Router1
interface Fastethernet 0/1
ip address 192.168.1.1 255.255.255.252
speed 100
duplex full
vlan-id dot1q 55
Router2
interface Fastethernet0/1
speed 100
duplex full
!
interface Fastethernet0/1.55
encapsulation dot1q 55
ip address 192.168.1.2. 255.255.255.252
!
Thanks!