Popular Posts

Tuesday, October 22, 2013

VLAN ACLs...



First -  ACL should permit whatever traffic you wish the VACL to process (remember the final deny will negate anything else).


access-list 100 permit tcp any any eq ftp

creating VACL

vlan access-map BLOCK_FTP 10
match ip address 100
action drop
vlan access-map BLOCK_FTP 20
action forward

assign access list to a VLAN





vlan filter BLOCK_FTP vlan-list 1

Sunday, September 22, 2013

SWITCH config LAB - This is a sample configuration can be use by any body who forgot Basic Networking concepts.





This is a sample configuration can be use by any body who forgot Basic Networking concepts.

3500 Config
****************************************************************

cat3550#show running-config
Building configuration...

Current configuration : 1745 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname cat3550
!
spanning-tree mode pvst
!
interface FastEthernet0/1
 description connected_to_ROUTER
 no switchport
 ip address 200.1.1.1 255.255.255.252
 duplex auto
 speed auto
!
interface FastEthernet0/2
!
!
interface FastEthernet0/23
!
interface FastEthernet0/24
 description SERVER_1
 switchport access vlan 3
 switchport mode access
 spanning-tree portfast
!
interface GigabitEthernet0/1
 description To 2950
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface GigabitEthernet0/2
 description To 2960
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface Vlan1
 no ip address
 shutdown
!
interface Vlan2
 description USER_VLAN
 ip address 10.1.2.1 255.255.255.0
!
interface Vlan3
 description SERVER_VLAN
 ip address 10.1.3.1 255.255.255.0
!
interface Vlan4
 no ip address
!
interface Vlan10
 description MANAGMENT_VLAN
 ip address 10.1.10.1 255.255.255.0
!
ip classless
ip route 0.0.0.0 0.0.0.0 200.1.1.2
!
line con 0
line vty 0 4
 login
!
!
!
end
cat3550#


2950 Config 
****************************************************************

cat2950#show running-config
Building configuration...

Current configuration : 1312 bytes
!
version 12.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname cat2950
!
!
spanning-tree mode pvst
!
interface FastEthernet0/1
 description SERVER_1
 switchport access vlan 3
 switchport mode access
 spanning-tree portfast
!
interface FastEthernet0/2
 description HOST_1
 switchport access vlan 2
 switchport mode access
 spanning-tree portfast
!
interface FastEthernet0/3
!
interface FastEthernet0/24
 switchport mode trunk
!
interface Vlan1
 no ip address
 shutdown
!
interface Vlan10
 description MANAGMENT
 ip address 10.1.10.2 255.255.255.0
!
ip default-gateway 10.1.10.1
!
!
line con 0
 history size 256
!
line vty 0 4
 login
line vty 5 15
 login
!
!
end
cat2950#


2960 Config
 ****************************************************************

cat2960#show running-config
Building configuration...

Current configuration : 1335 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname cat2960
!
!
spanning-tree mode pvst
!
interface FastEthernet0/1
 description TO_HOST_2
 switchport access vlan 2
 switchport mode access
 spanning-tree portfast
!
interface FastEthernet0/2
 description SERVER_2
 switchport access vlan 3
 switchport mode access
!
interface FastEthernet0/3
!
!
interface FastEthernet0/24
 switchport mode trunk
!
interface GigabitEthernet1/1
!
interface GigabitEthernet1/2
!
interface Vlan1
 no ip address
 shutdown
!
interface Vlan10
 description MANAGMENT
 ip address 10.1.10.3 255.255.255.0
!
ip default-gateway 10.1.10.1
!
!
line con 0
!
line vty 0 4
 login
line vty 5 15
 login
!
!
end
cat2960#


Router Config
****************************************************************
Router#show running-config
Building configuration...

Current configuration : 534 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
spanning-tree mode pvst
!
interface FastEthernet0/0
 description TO_Multilayer_Switch
 ip address 200.1.1.2 255.255.255.252
 duplex auto
 speed auto
!
interface FastEthernet0/1
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface Vlan1
 no ip address
 shutdown
!
ip classless
!
no cdp run
!!
line con 0
line vty 0 4
 login
!
end

Router# 


Wednesday, August 28, 2013

configure a port for multi-VLAN mode(Not Trunk)

configure a port for multi-VLAN mode - VLAN traffic on the multi-VLAN port is not encapsulated as it is in trunking

The following example shows how to configure a port for multi-VLAN mode:
Switch(config-if)# switchport mode multi
The following example shows how to assign a multi-VLAN port already in multi mode to a range of VLANs:
Switch(config-if)# switchport multi vlan 5-10

Wednesday, July 31, 2013

portfast and uplinkpast convergance




Enabling portpast and uplinkpast significantly speedup STP   
convergance

Enabling portfast on access layer switches on ports which connect to a server/pc directly.


P1ASW1(config)#interface fastethernet 0/5
P1ASW1(config-if)#spanning-tree portfast


Enabling uplinkpast on a trunk port which speed stp convergance
P1ASW1(config)# spanning-tree uplinkpast

To check STP status
P1ASW1(config)#show spanning-tree vlan 11

Configuring EtherChannel



Configuring EtherChannel
Configuring EtherChannel will help to increase the band with by bundling two links.
First configure ports as trunks.

ALS1# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
ALS1(config)# interface range fastEthernet 0/7 - 12
ALS1(config-if-range)# switchport trunk encapsulation dot1q
ALS1(config-if-range)# switchport mode trunk

We can use Port Aggregation Protocol (PAgP), a Cisco EtherChannel protocol to configure EtherChannel.
1.       Configure an EtherChannel with Cisco PAgP
First configure logical interface by binding two interfaces.
ALS1(config)# interface range fastEthernet 0/11 - 12
ALS1(config-if-range)# channel-group 1 mode desirable
Creating a port-channel interface Port-channel 1

Than change the logical interface to a trunk
ALS1(config)# interface port-channel 1
ALS1(config-if)# switchport mode trunk

You can check the Ether-Channel status by
ALS1# show etherchannel summary

Thursday, June 27, 2013


The following table describes the three VTP modes



VTP Mode
Description
VTP server
You can create, modify, and delete VLANs and specify other configuration parameters, such as VTP version and VTP pruning, for the entire VTP domain. VTP servers advertise their VLAN configuration to other switches in the same VTP domain and synchronize their VLAN configuration with other switches based on advertisements received over trunk links.
VTP server is the default mode.
VTP client
VTP clients behave the same way as VTP servers, but you cannot create, change, or delete VLANs on a VTP client.
VTP transparent
VTP transparent switches do not participate in VTP. A VTP transparent switch does not advertise its VLAN configuration nor synchronize its VLAN configuration based on received advertisements. Transparent switches do forward VTP advertisements that they receive out their trunk ports in VTP Version 2.


Creating VLAN


If switch in VTP Server or Transparent mode VLAN will create when port assign to a new port
WTM1(config)#interface fastEthernet 0/6
WTM1 (config-if)#switchport access vlan 100
% Access VLAN does not exist. Creating vlan 100

Or we can configure vlan in configure mode in VTP server and it  will propagate the VLAN to other switches and will include the port when we assign the port to that particular VLAN.
WTM1 (config)#vlan 100
WTM1 (config-vlan)#name Server-Farm-1
WTM1 (config-vlan)#exit

Deactivate port  by shutting down VLAN

We can change VLAN status to deactivate port
WTM1(config)# vlan 120
WTM1(config-vlan)# shutdown
This only deactivate that port only and can be use from switch any VTP state.


If we need to shutdown entire VLAN we can use suspend command.

WTM1(config)# vlan 120

WTM1(config-vlan)# state suspend
this will deactivate all port assign to that VLAN in that VTP domain.