Inter-VLAN Communication: Router-on-a-Stick


Router(config)#int fa 0/0

Enters interface mode for interface fa 0/0

Router(config-if)#no shut

Turns the interface on

Router(config-if)#int fa 0/0.1

Creates subinterface 0/0.1

Router(config-subif)#encapsulation dot1q 1 native

Assigns the native VLAN (usually VLAN 1) to this logical subinterface

Router(config-subif)#ip address 192.168.1.1 255.255.255.0

Assigns an IP address to the subinterface

Router(config-subif)#int fa 0/0.10

Creates subinterface 0/0.10

Router(config-subif)#encapsulation dot1q 10

Assigns VLAN 10 to this subinterface

Router(config-subif)#ip address 192.168.10.1 255.255.255.0

Assigns an IP address to the subinterface

Router(config-subif)#

 

Router#

 





CCNA Self-Study(c) CCNA Portable Command Guide
CCNA Portable Command Guide
ISBN: 1587201585
EAN: 2147483647
Year: 2006
Pages: 261
Authors: Scott Empson

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net