|
Posted by: technocrate on 2010-02-23, 06:45:56
First create your vlan as follows. You will have to first log into your layer 3 Cisco Catalyst switch and go into enable mode. After that, you will go into config-t. (switch)#config t (switch-config)#vlan 10 Next, give your vlan a name. You can use any name you want. It is good to be descriptive of what the vlan will be used for. ((switch-vlan)#name Test_Vlan (switch-vlan)#exit Now to assign a port to your vlan. The first thing you are going to do is put the port into "layer 2 " mode. After that, you will actually asign the port to a vlan. (switch)# int fa0/ 1 (switch-if)# switchport mode access (switch-if)# switchport access vlan 10 (switch-if)# no shut (switch-if)# exit You have now created vlan 10, gave it a name (Test_Vlan, and assigned it to port fa0/ 1. Any device plugging into port fa0/ 1 will automatically be put into vlan 10. Or rather, all traffic travelling from port fa0/ 1 will be tagged as vlan 10. |