Tuesday, December 8, 2015

CONFIGURE THE LINKS BETWEEN SWITCHES AS TRUNK LINKSCONFIGURE VTP ON ALL SWITCHES AS PER THE DIAGRAMTO VERIFY VTPCREATE VLANS ON SERVER AND VERIFY ON CLIENT AND TRANSPARENTCREATE VLANS ON TRNASPARENT AND VERIFY ON CLEINT AND SERVER

Picture
We need to create trunk links on all switches

SW-1
SW-1(config)#interface fa0/20

SW-1(config-if)#switchport trunk encapsulation dot1q
SW-1(config-if)#switchport mode trunk


SW-1#sh int trunk
Port       Mode     Encapsulation   Status     Native vlan
Fa0/20     on         802.1q           trunking       1
Port        Vlans allowed on trunk
Fa0/20    1-1005
Port        Vlans allowed and active in management domain
Fa0/20    1
Port        Vlans in spanning tree forwarding state and not pruned
Fa0/20    1

SW_2
SW-2(config-if)#switchport trunk encapsulation dot1q
SW-2(config-if)#switchport mode trunk

SW-2(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/21, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/21, changed state to up

SW-3

SW-3(config)#interface fa0/21
SW-3(config-if)#switchport trunk encapsulation dot1q
SW-3(config-if)#switchport mode trunk
SW-3(config-if)#

SW-3#sh int trunk
Port       Mode    Encapsulation  Status   Native vlan
Fa0/21     on           802.1q        trunking    1
Port       Vlans allowed on trunk
Fa0/21     1-1005
Port      Vlans allowed and active in management domain
Fa0/21   1
Port      Vlans in spanning tree forwarding state and not pruned
Fa0/21   1


Configure VTP Cisco on all swicthes

SW-1
SW-1(config)#vtp domain Cisco
Changing VTP domain name from NULL to Cisco

SW-2
SW-2(config)#vtp domain Cisco

SW-3

SW-3(config)#vtp domain Cisco
Changing VTP domain name from NULL to Cisco
SW-3(config)#exit
SW-3#
%SYS-5-CONFIG_I: Configured from console by console
SW-3#sh vtp status
VTP Version : 2
Configuration Revision : 0
Maximum VLANs supported locally : 1005
Number of existing VLANs : 5
VTP Operating Mode : Server
VTP Domain Name : Cisco
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0xA9 0xC8 0x52 0x12 0x94 0x71 0xE9 0x8C
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
Local updater ID is 0.0.0.0 (no valid interface found)
SW-3#

Configuring vtp mode on switches. Default mode Server
SW-1
SW-1(config)#vtp mode server
Device mode already VTP SERVER.


SW-1#show vtp status
VTP Version : 2
Configuration Revision : 0
Maximum VLANs supported locally : 1005
Number of existing VLANs : 5
VTP Operating Mode : Server


SW-2
SW-2(config)#vtp mode transparent
Setting device to VTP TRANSPARENT mode.

SW-2#show vtp status
VTP Version : 2
Configuration Revision : 0
Maximum VLANs supported locally : 1005
Number of existing VLANs : 5
VTP Operating Mode : Transparent


SW-3
SW-3(config)#vtp mode client
Setting device to VTP CLIENT mode.

SW-3#show vtp sta
VTP Version : 2
Configuration Revision : 0
Maximum VLANs supported locally : 1005
Number of existing VLANs : 5
VTP Operating Mode : Client


Creating vlans on server and verifying on client and transparent switches
SW-1

SW-1(config)#vlan 10
SW-1(config-vlan)#exit
SW-1(config)#vlan 20
SW-1(config-vlan)#
show vlan brief

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/1, Fa0/2, Fa0/3, Fa0/4
                                                Fa0/5, Fa0/6, Fa0/7, Fa0/8
                                                Fa0/9, Fa0/10, Fa0/11, Fa0/12
                                                Fa0/13, Fa0/14, Fa0/15, Fa0/16
                                                Fa0/17, Fa0/18, Fa0/19, Fa0/21
                                                Fa0/22, Fa0/23, Fa0/24, Gig0/1
                                                Gig0/2
10   VLAN0010                         active  
20   VLAN0020                         active    



SW-2
SW-2(config)#vtp mode transparent
Setting device to VTP TRANSPARENT mode.
SW-2#show vlan brief

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/1, Fa0/2, Fa0/3, Fa0/4
                                                Fa0/5, Fa0/6, Fa0/7, Fa0/8
                                                Fa0/9, Fa0/10, Fa0/11, Fa0/12
                                                Fa0/13, Fa0/14, Fa0/15, Fa0/16
                                                Fa0/17, Fa0/18, Fa0/19, Fa0/22
                                                Fa0/23, Fa0/24, Gig0/1, Gig0/2
1002 fddi-default                     active  
1003 token-ring-default               active  
1004 fddinet-default                  active  
1005 trnet-default                    active  

SW-3


SW-3(config)#vtp mode client
Setting device to VTP CLIENT mode.
SW-3(config)#
SW-3#show vlan brief

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/1, Fa0/2, Fa0/3, Fa0/4
                                                Fa0/5, Fa0/6, Fa0/7, Fa0/8
                                                Fa0/9, Fa0/10, Fa0/11, Fa0/12
                                                Fa0/13, Fa0/14, Fa0/15, Fa0/16
                                                Fa0/17, Fa0/18, Fa0/19, Fa0/20
                                                Fa0/22, Fa0/23, Fa0/24, Gig0/1
                                                Gig0/2
10   VLAN0010                         active  
20   VLAN0020                         active    

1002 fddi-default                     active  

vlans created on server switch is in the vlan database of client switch but not transparent


Creating vlans on transparent switch and verifying on server and client

SW-2
SW-2(config)#vlan 30
SW-2(config-vlan)#exi
SW-2(config)#vlan 40
SW-2#sh vlan brief

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/1, Fa0/2, Fa0/3, Fa0/4
                                                Fa0/5, Fa0/6, Fa0/7, Fa0/8
                                                Fa0/9, Fa0/10, Fa0/11, Fa0/12
                                                Fa0/13, Fa0/14, Fa0/15, Fa0/16
                                                Fa0/17, Fa0/18, Fa0/19, Fa0/22
                                                Fa0/23, Fa0/24, Gig0/1, Gig0/2
30   VLAN0030                         active  
40   VLAN0040                         active  


SW-1
SW-1#show vlan brief

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/1, Fa0/2, Fa0/3, Fa0/4
                                                Fa0/5, Fa0/6, Fa0/7, Fa0/8
                                                Fa0/9, Fa0/10, Fa0/11, Fa0/12
                                                Fa0/13, Fa0/14, Fa0/15, Fa0/16
                                                Fa0/17, Fa0/18, Fa0/19, Fa0/21
                                                Fa0/22, Fa0/23, Fa0/24, Gig0/1
                                                Gig0/2
10   VLAN0010                         active  
20   VLAN0020                         active  
1002 fddi-default                     active  
1003 token-ring-default               active  
1004 fddinet-default                  active  
1005 trnet-default                    active

SW-3

SW-3#sho vlan brief

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/1, Fa0/2, Fa0/3, Fa0/4
                                                Fa0/5, Fa0/6, Fa0/7, Fa0/8
                                                Fa0/9, Fa0/10, Fa0/11, Fa0/12
                                                Fa0/13, Fa0/14, Fa0/15, Fa0/16
                                                Fa0/17, Fa0/18, Fa0/19, Fa0/20
                                                Fa0/22, Fa0/23, Fa0/24, Gig0/1
                                                Gig0/2
10   VLAN0010                         active  
20   VLAN0020                         active  
1002 fddi-default                     active  
1003 token-ring-default               active  
1004 fddinet-default                  active  
1005 trnet-default                    active  


vlans created on transparent switch not propagated to server and client swicthes

Configuring Syslog on Cisco Packet Tracer

We are using switch 3560 and a server

Connect Server and Switch using straight through cable

Configuring interface vlan 1 IP address on 3560 Switch
SW-1(config)#interface vlan 1
SW-1(config-if)#ip address 192.168.1.3 255.255.255.0
SW-1(config-if)#no shut

Configure following ip address on Server
Picture
​Enable Syslog service on Server
Picture
Configuring Logging on Switch
Define syslog server
SW-1(config)#logging host 192.168.1.2

Specifying type of trap we want to send to server
SW-1(config)#logging trap ?
Emergency: 0
Alert: 1
Critical: 2
Error: 3
Warning: 4
Notice: 5
Informational: 6
Debug: 7

SW-1(config)#logging trap warning
Trap will be send for Emergency, Alert , Critical, Error and Warning

SW-1(config)#logging trap debug
All trap will be send to syslog server

We can specify interface by source-interface command
SW-1(config)#logging source-interface fa0/0
SW-1(config)#exit

We will change switch hostname from Sw-1 to switch and vice and versa and verify logs on syslog server
SW-1(config)#hostname switch
switch(config)#host
switch(config)#hostname SW-1
SW-1(config)#
Verifying logs on Server