by Step Guide?
In this tutorial we will demonstrate that how can you
Configure Access or Trunk links
Create VLAN
Assign VLAN membership
Configure Intra VLAN routing
Configure VTP Server
Make VTP Clients
Show STP Static
Configure DTP port
To complete these labs either creates a topology as shown in figure
or downloads this file and loads it in packet tracer
Task
You are the administrator at router-switch.com have two
department sales and management. You have given three pc for
sales and three pc in management. You created two VLAN. VLAN 10
for sales and VLAN20 for management. For backup purpose you
have interconnected switch with one extra connection. You have one
router for intera VLAN communications.
Let's start configuration first assign IP address to all pc's
To assign IP address double click on pc and select ip configurations
from desktop tab and give ip address as shown in table given above
VLAN Trunking Protocol
Configure VTP Server
We will first create a VTP Server so it can automatically propagate
VLAN information to other switch. Double click on Switch1 and
select CLI. Set hostname to S1 and create VTP domain name
example and set password to vinita (Remember password is case
sensitive).
Switch 1
Switch>enable
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname S1
%LINEPROTO-5-UPDOWN:
Line
protocol
FastEthernet0/24,
changed state to down
%LINEPROTO-5-UPDOWN:
Line
protocol
FastEthernet0/24,
changed state to up
S1(config-if)#exit
S1(config)#interface gigabitEthernet 1/1
S1(config-if)#switchport mode trunk
S1(config-if)#exit
S1(config)#interface gigabitEthernet 1/2
S1(config-if)#switchport mode trunk
%LINEPROTO-5-UPDOWN:
Line
protocol
GigabitEthernet1/2,
changed state to down
%LINEPROTO-5-UPDOWN:
Line
protocol
GigabitEthernet1/2,
changed state to up
S1(config-if)#exit
S1(config)#
Switch 2
S2(config)#interface gigabitEthernet 1/1
S2(config-if)#switchport mode trunk
%LINEPROTO-5-UPDOWN:
Line
protocol
GigabitEthernet1/1,
changed state to down
%LINEPROTO-5-UPDOWN:
Line
protocol
GigabitEthernet1/1,
changed state to up
S2(config-if)#exit
S2(config)#interface gigabitEthernet 1/2
S2(config-if)#switchport mode trunk
S2(config-if)#exit
S2(config)#interface fastEthernet 0/23
S2(config-if)#switchport mode trunk
%LINEPROTO-5-UPDOWN:
Line
protocol
FastEthernet0/23,
changed state to down
%LINEPROTO-5-UPDOWN:
Line
protocol
FastEthernet0/23,
changed state to up
S2(config-if)#exit
S2(config)#interface fastEthernet 0/24
on
Interface
on
Interface
on
Interface
on
Interface
on
Interface
on
Interface
on
Interface
on
Interface
Switch(configvlan)#exit
Switch(configif)#switchport
access vlan 10
Switch#show vlan
Switch#show
brief
Switch#show
interfaces vlan x
Switch#delete
flash:vlan.dat
Delete
filename
[vlan.dat]?
Delete
flash:vlan.dat?
[confirm]
Switch#
Switch(config)#no
vlan 5
Switch#copy
running-config
startupconfig
Switch(config-if)
Puts the interface into permanent trunking mode and
#switchport
mode negotiates to convert the link into a trunk link.
trunk
Switch(config)#vtp
mode server
Switch(config)#vtp
mode client
Switch(config)#vtp
mode transparent
Switch(config)#no
vtp mode
Switch#show
status
Switch#show
counters