Router – Configure Sub-interfaces and Encapsulation


  1. Configure sub-interfaces
  2. Encapsulation dot1q
  3. Native VLAN (



Fa0/0.10 –

Fa0/0.20 –

Fa0/0.30 –

Fa0/0.55 –

Fa0/0.77 –


Configure Sub-interfaces

Router#conf t

Router(config)#int fa0/0

Router(config-if)#no shut

Router(config-if)#int fa0/0.10

Router(config-subif)#encapsulation dot1q 10

Router(config-subif)#ip address

Router(config-subif)#int fa0/0.20

Router(config-subif)#encapsulation dot1q 20

Router(config-subif)#ip address

Router(config-subif)#int fa0/0.30

Router(config-subif)#encapsulation dot1q 30

Router(config-subif)#ip address

Router(config-subif)#int fa0/0.55

Router(config-subif)#encapsulation dot1q 55 native

Router(config-subif)#ip address


Router(config-subif)#int fa0/0.77

Router(config-subif)#encapsulation dot1q 77

Router(config-subif)#ip address

Router#sho ip route

Codes: C – connected, S – static, I – IGRP, R – RIP, M – mobile, B – BGP

D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area

N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2

E1 – OSPF external type 1, E2 – OSPF external type 2, E – EGP

i – IS-IS, L1 – IS-IS level-1, L2 – IS-IS level-2, ia – IS-IS inter area

* – candidate default, U – per-user static route, o – ODR

P – periodic downloaded static route


Gateway of last resort is not set


C is directly connected, FastEthernet0/0.10

C is directly connected, FastEthernet0/0.20

C is directly connected, FastEthernet0/0.30

C is directly connected, FastEthernet0/0.55

C is directly connected, FastEthernet0/0.77



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s