sys(进入特权)
Interface vlan 101(创建并进入vlan)
ip address 192.168.11.1 255.255.255.0
quit (退出接口模式)
Interface 0/0/2(进入接口2)
port access vlan 101
具体看下这里
http://wenku.baidu.com/link?url=Nlwl-mblKdqszOi8az6Id8GWQLrrJE6dGLGCpYu-NX-47KFirPHLfCOmuy1yYbbmUUynddPIkyatbQy3_MFmcnP05I8lO1KLy0MBFbQVCXa
画出拓扑图,便于详细分析