Configure Router Sub-interfaces With Encapsulation

Router>en

Router#conf t

Router(config)#int fa0/0.1

Router(config-subif)#encapsulation dot1q 1

Router(config-subif)#ip address 192.168.1.1 255.255.255.0

Router(config-subif)#int fa0/0.50

Router(config-subif)#encapsulation dot1q 50

Router(config-subif)#ip address 192.168.50.1 255.255.255.0

Router(config-subif)#int fa0/0.80

Router(config-subif)#encapsulation dot1q 80

Router(config-subif)#ip address 192.168.80.1 255.255.255.0

Router(config-subif)#int fa0/0.99

Router(config-subif)#encapsulation dot1q 99

Router(config-subif)#ip address 192.168.99.1 255.255.255.0

Router(config-subif)#int fa0/0.150

Router(config-subif)#encapsulation dot1q 150

Router(config-subif)#ip address 192.168.150.1 255.255.255.0

Router(config-subif)#end

Router#

Router#conf t

Router(config)#int fa0/0

Router(config-if)#no shut

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

%LINK-5-CHANGED: Interface FastEthernet0/0.1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.1, changed state to up

%LINK-5-CHANGED: Interface FastEthernet0/0.50, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.50, changed state to up

%LINK-5-CHANGED: Interface FastEthernet0/0.80, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.80, changed state to up

%LINK-5-CHANGED: Interface FastEthernet0/0.99, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.99, changed state to up

%LINK-5-CHANGED: Interface FastEthernet0/0.150, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.150, changed state to up

Router(config-if)#end

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s