0

When creating a sub-interface for use with dot1q encapsulation. Do I have to match the name of the interface with the vlan number?

For example:

int g1/0/0.40
encap dot1q 40

or would this also work?

int g1/0/0.50
encap dot1q 40
gWaldo
  • 11,957
  • 8
  • 42
  • 69
3D1L
  • 109
  • 3
  • 7
  • 13

3 Answers3

2

Do I have to match the name of the interface with the vlan number?

No, I don't believe so. It's just a standard convention (and one I'd highly recommend sticking to) to reduce confusion when reading or modifying the config.

EEAA
  • 109,363
  • 18
  • 175
  • 245
0

Are you asking does the VLAN ID need to have anything to do with the IP range? If so then not at all, VLANs are a layer 2 function, they don't care about IP at all.

Chopper3
  • 101,299
  • 9
  • 108
  • 239
0

Agreed with ErikA, it keeps it easy to remember what sub-interface is mapped to what vlan. In some cases, sub-interfaces, vlans, and hsrp groups can use the same number to keep track of them all.

Eric
  • 21
  • 1