Trunking:
(1)Create trunk ports between 2 switch:
to setup trunk between port F0/11 and F012 of Switch S1
For Port F0/11
configure terminal interface fastEthernet 0/11 switchport mode trunk note : if upper commands say : command rejected with error : Trunk encapsulation is Auto, then do the followings switchport trunk encapsulation dot1q Now type again : switchport mode trunk
For Port F0/12
configure terminal interface fastEthernet 0/12 switchport mode trunk note : if it upper commands say , : command rejected with error : Trunk encapsulation is Auto, then do the followings switchport trunk encapsulation dot1q Now type again : switchport mode trunk
Set others ports a Access ports 1 to 10, then 13 to 23
configure terminal
interface range fastEthernet 0/1-10 switchport mode access interface range fastEthernet 0/13-23 switchport mode access
How to view which ports are trunk for a switch :
show interfaces trunk
VTP :
(a) Configure VTP:
How to see VTP status :
show vtp status
Setup VTP Domain
configure terminal vtp domain MYDomain
(B) How to create vtp client
By default every switch is a vtp server. To make switch as VTP client:
configure terminal vtp mode client
Configuring VLAN:
(3)How to view vlan information
show vlan
How to create vlan
configure terminal vlan 10 exit show vlan
How to assign a name to a vlan
configure terminal vlan 10 name SALES
How to assign port to vlan
example : we want to make pc ip : 192.168.1.50 which is connected to switch 3 via port F0/8 and we want to make this pc under vlan 10
From switch 3 : configure terminal interface fastEthernet 0/8 switchport access vlan 10
How to routing between Vlan 10 and Vlan20 for subnet (192.168.20.0 and 192.168.10.0)(Router on a stick)
To routing between vlan , we need to create sub-interface inside a router(example router2)
For interface 1
configure terminal interface FastEthernet0/0.10 encapsulation dot1Q 10 ip address 192.168.10.1 255.255.255.0
For interface 2
configure terminal interface FastEthernet0/0.20 encapsulation dot1Q 20 ip address 192.168.20.1 255.255.255.0
It will create 2 interface like bellow :
R2#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.168.1.2 YES manual up up
FastEthernet0/0.10 192.168.10.1 YES manual up up
FastEthernet0/0.20 192.168.20.1 YES manual up up
FastEthernet0/1 192.168.2.1 YES manual up up
R2#
To be continue
