Which configuration can you apply to enable encapsulation on a subinterface?

IT Questions BankWhich configuration can you apply to enable encapsulation on a subinterface?

Question:
Which configuration can you apply to enable encapsulation on a subinterface?

  • interface FastEthernet 0/0
    encapsulation dot1Q 30
    ip address 10.1.1.30 255.255.255.0
  • interface FastEthernet 0/0.30
    ip address 10.1.1.30 255.255.255.0
  • interface FastEthernet 0/0.30
    description subinterface vlan 30
  • interface FastEthernet 0/0.30
    encapsulation dot1Q 30
    ip address 10.1.1.30 255.255.255.0

Explanation: To enabe encapsulation on a subinterface we have type the “encapsulation” command under that subinterface, not the main interface. An example of configuring encapsulation on subinterface of Fa0/1 is shown below:

Router(config)#interface f0/0
Router(config-if)#no shutdown

(Note: The main interface f0/0 doesn’t need an IP address but it must be turned on)

Router(config)#interface f0/0.0
Router(config-subif)#encapsulation dot1q 10
Router(config-subif)#ip address 192.168.1.1 255.255.255.0
Router(config-subif)#interface f0/0.1
Router(config-subif)#encapsulation dot1q 20
Router(config-subif)#ip address 192.168.2.1 255.255.255.0

Note: In the “encapsulation dot1q 10”, number 10 is the VLAN applied to that subinterface. Or you can understand that the subinterface belongs to that VLAN.

Exam with this question: CCNA v3.0 (200-125) Study Guide – Exam Dumps

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments