-
déclaration de VLAN :
RG20-1#vlan database
RG20-1(vlan)#vlan 2 name SERVERS
VLAN 2 added:
Name: SERVERS
RG20-1(vlan)#exit
APPLY completed.
Exiting....
RG20-1#show vlans
...
- affectation d'un port à un VLAN :
RG20-1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
RG20-1(config)#interface fastEthernet0/7
RG20-1(config-if)#switchport access vlan 2
RG20-1(config-if)#exit
- configuration d'un port global :
RG20-1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
RG20-1(config)#interface fastEthernet0/1
RG20-1(config-if)#switchport mode trunk
RG20-1(config-if)#switchport trunk encapsulation dot1q
RG20-1(config-if)#exit