Beruflich Dokumente
Kultur Dokumente
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
S1(config)#vtp mode server
Router(config-subif)#encapsulation dot1Q 10
Router(config-subif)#ip address 10.0.0.1 255.0.0.0
Router(config-subif)#exit
Router(config)#interface fastEthernet 0/0.20
Router(config-subif)#encapsulation dot1Q 20
Router(config-subif)#ip address 20.0.0.1 255.0.0.0
Router(config-subif)#exit
To test connectivity between different vlan do ping form any pc to all reaming pc. it
should be ping successfully. If you have error download this configured topology and
cross check that where you have committed mistake.
Configured VLAN VTP STP topology
VLAN VTP Server STP DTP command reference sheet
Switch(config)#vlan 10
Switch(config-vlan)#name
Sales
Assigns a name to the VLAN. The length of the name can be from 1
to 32 characters.
Switch(config-vlan)#exit
Switch(config)#interface
fastethernet 0/1
Switch(config-if)#switchport
Sets the port to access mode
mode access
Switch(config-if)#switchport
Assigns this port to VLAN 10
access vlan 10
Switch#show vlan
Switch#show vlan id 10
Switch#show
sales
Switch#show
vlan x
vlan
name
interfaces
Switch#delete
flash:vlan.dat
Delete filename [vlan.dat]?
Delete
flash:vlan.dat?
[confirm]
Switch#
you read the output from the switch. If you need to cancel,
press ctrl+c to escape back to privileged mode:
Switch(config)#interface
fastethernet 0/5
Switch(config-if)#no
switchport access vlan 5
Switch(config-if)#exit
Switch(config)#no vlan 5
Switch#copy running-config
Saves the configuration in NVRAM
startupconfig
Switch(config-if)
#switchport mode trunk
Switch(config)#vtp
server
mode
Switch(config)#vtp
client
mode
Switch(config)#vtp
transparent
mode
Switch(config)#no vtp mode Returns the switch to the default VTP server mode.
Switch(config)#vtp domain Configures the VTP domain name. The name can be from 1 to 32
domain-name
characters long.
Switch(config)#vtp
password password
Switch(config)#vtp pruning