This Blog is my personal opinion blog of Cisco networking studies. I will provide Cisco switches, routers, ASA and Cisco WLC troubleshooting and configurations.

Showing posts with label cisco. Show all posts
Showing posts with label cisco. Show all posts

Friday, 31 August 2018

Quick Cisco switch Port Security Configuration Step by Step

               Cisco Port Security Quick Configuration

Overview

Hello, boys and girls, let's start our discussion on Cisco port security feature. One of the key factor that we are not really worked on inside the network. Port security is the feature which secures your inside network so we should need to apply this feature at your layer 2 switches. In short, if your switch port is configured with port security then it will be considered as a secure port. Now lets quickly go into the configuration. This quick configuration article, if you want more detail on it, please visit the under mentioned link for reference.

https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst4500/12-2/25ew/configuration/guide/conf/port_sec.html

Note

  • Port security only enable in access port, not in dynamic mode(By default port is dynamic as shown in Pic 01 as well)
    Means, first you need to put the port on switchport access mode then you can apply port security to the required port. It is recommended that apply port-security as per your requirements.


    Cisco port-security
                                                  (Pic-01)
    As per pic-01, when we go into the interface and try to enable port security by entering command "Switchport port-security". The command is rejected because the port is not in the access port.



    Cisco port-security
    (Pic-02)                                         
    See in Pic-02, Now we have enter switchport mode access command which makes the interface in access mode, Then we have entered a port-security command to enable port security in the port. Now everything seems alright :)  



    Cisco port-security
                                                     (Pic-03)
     See in Pic-03, Now we are applying port to learn only one mac address at a time, suppose we connect one laptop at the above port, Port lean one mac address then we connect another laptop to the same port. By doing this port will come up again because we have allowed one mac address at a time to the port. Note that by applying above command the mac address not sticky(We will discuss this in next pic-04). Many of us think by applying this command the only one mac address is allowed to the port which is wrong. One mac address at a time


    Cisco port-security
                                                        (Pic-04)
     See in Pic-04, Now we have applied the sticky command to the port. By entering this command, now the mac address is sticky. Suppose we connect the laptop to the port, The port lean mac address XYZ. Now the port is sticky with XYZ mac address. then no other laptop will be able to connect with this port
    Cisco port-security
                                                        (Pic-05)
     See in Pic-05, By entering this command, If any violation occurs as per above configuration then the ports automatically goes in shutdown mode. Assume the port is configured with sticky command with laptop-1, now we connect laptop-2 to the same port, then a violation occurs, the port will go in shutdown mode. If we check in show interface status command. The said port shows in error-disable mode. Under mentioned link is for understanding why port goes in error-disabled.



    Now your port configuration is done now, Let me summarize the above commands in one go. 
    Note. guys, again I like to mention here, please configure your port security as per your need



    Port-Security
                                                          (Pic-06)
    In Pic-06, Above is the basic recommended commands of port security



Port-Security
                                                                (Pic-07)

 In Pic-07, By entering this command we can check under mentioned details. Starting from left to Right

  • VLAN: The VLAN in which port security is enabled.
  • Mac Address: The Mac-address learn on the port.
  • Type: The type keyword set the aging type.
  • Ports: The port-security ports




Cisco Port-Security
                                                                  (Pic-08)

 In Pic-08, Guys it is a very useful command with respect to port security, By entering this command we can check under mentioned details. Starting from left to Right
  •  . Secure Port: The port in which port security enabled.
  •    MaxSecureAddr:  The maximum limit is allowed on the port to avoid violations.
  •    CurrentAddr: Currently the number of mac address lean on the switch port.
  •    security violation: How much violation occurs on the port.
  •    Security Action:  Which action is taken once the violation is occurs




Cisco port-security
                                                             (Pic-10)
 In Pic-10, A very useful command for getting port security information related to the port security enabled interface.




Hope this Port-security quick documents helpful for you. please share this document for others. Sharing is caring

--------------------------------------------------End Topic--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
                                            ****Free of Cost Services****

·        You can contact us for free any Cisco paid software router IOS, Latest Switches IOS, Wireless IOS, Cisco ASA IOS, paid Cisco documentation.

·        You can also contact us any kind of network issues during your studies and job. we will respond to you within 2 to 3 hours.

·        You can also contact us for your network projects and assignment. We have expert team for preparing the documentation.

·         

                                           ****Contact us****
****Whatsapp# ****

+923224995052

 ****Email ****


****AQ Cisco Community Profile****
             


****Google+ ****



****Facebook****



*****Cisco Switch Useful Commands****



****Cisco switch Error disable quick****


****Cisco switch LED and Network assistant software****



****Cisco switch password recovery****



****Port channel suspended****




Hope document helpful for you

Regards,

AQ Learning Center (Networks)
CCIE Experts
AQ Learning Center

Now presents AQ Learning Center



Thursday, 16 November 2017

Cisco switches Configurations and tips

                        Configure Switch Passwords   

 Switch passwords must be (Recommend)  set at all the switches for secure security.

  • Line Console

This password is configured for all users who are trying to access through the console

cisco switch line console password set

You can check is the configuration in show running-config as given below

line console show password

Note: password is changed because of encryption command. we will discuss it later.

  • Local user and specific passwords

Firstly, we are going to create a user for telnet and SSH


how to create cisco username and password


Now we are creating telnet and SSH on line VTY (Virtual Teletype).

how to set telnet passwords in line vty

Enable Password

Note: Enable password is must access the switch through telnet/SSH

how to set enable password


  • Tip

We are going to discuss Line VTY.

  • If there is "no login" command in line mode then no authentication is going to meet and the connection will succeed without authentication which is not a good practice at all
  • If there is login local command is present under line VTY then it is going to meet with aaa authentication. In our scenario, we consider login local command in AQ Learning switch. Now when we access this switch it will ask for the username and password then we will be able to access the switch.
  • If the keyword Login exits and local is missing from line VTY then you must mention password underline VTY otherwise switch will not access through telnet/SSH
Note: If we configure login local underline VTY and username and password is not created then we will not be able to access the switch.

  • Encrypted All Passwords

We should encrypt all passwords in show running/startup configurations by applying one command in configuration mode as under
how to encrypt cisco passwords

You can verify in show running/startup-configuration as under

show run verfiy your password

Note: By applying service password-encryption command all passwords including enable, console and telnet/SSH will be encrypted in running/startup configurations


                    Configure VLAN On Cisco Switches

Note: This document doesn't contain detailed information. This document is all about quick basic configuration commands and tips which you should remember during initial configuring in a live environment. But we will discuss very basic concepts.

      
In simple words VLAN allows us to subdivide the physical network into the separate logical broadcast domain.

Complete detail document link is given below for complete understanding.


Here is an example why we create VLANS

Example: Suppose we have two departments in our office, One is sales and second one is IT. These two departments in the same network. Now we don't want to communicate sales with IT depart. In this scenario, we will create two different VLANs for achieving our task. VLANS have a very simple configuration. We can also control bandwidth through these different VLANs. 

create vlan name and access port to the vlan


Tip:

All unused ports should be in shutdown mode and at default VLAN only (Best Practice). Always create manual VLAN on your access layer and unused port should not the member of any VLAN.

  • Assign Ports to VLANs

Now we are going to show how we can assign VLANs to specific ports

assign ports to vlan required vlan


  • Interface GigabitEthernet1/0/11
This command is used to access specific physical port (interface)
  • switchport mode access
This command is used to configure the port as the access port (end devices are in access mode)
  • Switchport access VLAN 101
This command is used to assign the physical port to specific VLAN
  • Spanning-tree portfast
This command is used when we want to turn port in forwarding state immediately
  • no shutdown
Command used to enable port


--------------------------------------------------End Topic----------------------------------------------------------------------------------------------------------------------------------------------------------
                                            ****Free of Cost Services****

·        You can contact us for free any Cisco paid software router IOS, Latest Switches IOS, Wireless IOS, Cisco ASA IOS, paid Cisco documentation.

·        You can also contact us any kind of network issues during your studies and job. we will respond to you within 2 to 3 hours.

·        You can also contact us for your network projects and assignment. We have expert team for preparing the documentation.

·         

                                           ****Contact us****
****Blogger ****


 ****Email ****


****Website ****



****AQ Cisco Community Profile****
             


****Google+ ****



****Facebook****



*****Cisco Switch Useful Commands****



****Cisco switch Error disable quick****


****Cisco switch LED and Network assistant software****



****Cisco switch password recovery****



****Port channel suspended****




Hope document helpful for you

Regards,

AQ Learning Center (Networks)

CCIE Experts

Now presents AQ Learning Center


Sunday, 12 November 2017

cisco nexus vpc configuration best practice

Virtual port channel step by step


Quick Introduction

Virtual port channel (vPC) allows links which are physically connected with each other and behave like a one link to third device (it may be switch,server,pc etc).

vpc diagram and topology diagram

vPC feature only available in cisco NX-OS only. In above figure both nexus switches connected with each other through vPC and connected with third device which is 2960 network switch. Suppose vPC configuration done then both nexus behave like a one switch (bundle) to 2960 switch. This is a quick guide to configure a vPC. Below is the link for details of VPC and its features, benefits.


Quick vPC Configurations steps


vpc peer-link diagram example
AQ Learning Center vPC Diagram


We are going to configure quick step of vPc and consider the above diagram for reference
  • Enable vPC Feature on Both Nexus

enable vpc feature in cisco nexus 7k 5 k

  • Management VRF Context For Keepalive Update on Both Nexus

Management VRF Context For Keepalive Update on Both Nexus

  • Configure Both Nexus Management Interface (For telnet, SSH, Keepalive)


Management VRF Context For Keepalive Update on Both Nexus
AQ-Learning-Center-Nexus-1

Management VRF Context For Keepalive Update on Both Nexus
AQ-Learning-Center-Nexus-2

  • Configure IP Route On Both Nexus

cisco ip route command

  • Configure vPC Domain ID on Both Nexus (Same ID)

vpc domain

  • Configure Role Priority on Both Nexus

Note that role priority should be configured in (config-vpc-domain) after creating domain ID. Role Priority should be different on both nexus. Primary nexus Priority should be less than secondary

Configure Role Priority nexus
AQ-Learning-Center-Nexus-1

Configure Role Priority nexus
AQ-Learning-Center-Nexus-2


  • Configure IP of Source and Destination Keepalive


Now configure the source (Nexus1) and Destination (Nexus2) keepalive ip address

Configure IP of Source and Destination Keepalive
AQ-Learning-Center-Nexus-1

cisco nexus Configure IP of Source and Destination Keepalive
AQ-Learning-Center-Nexus-2

  • Configure Port-Channel 2 on Nexus-1

Apply these command in configuration mode


(Config)#interface port-channel2
 (Config-if)# no switchport
  vrf member Keepalive
  ip address 172.15.13.1/24

  • Configure Port-Channel 2 on Nexus-2

Apply these command in configuration mode

Config)#interface port-channel2
 (Config-if)# no switchport
  vrf member Keepalive
  ip address 172.15.13.2/24
  • Now Apply Port channel to Physical Ports on Nexus-1

Apply these commands in Configuration mode

interface Ethernet3/1
no switchport
description ****Connected To AQ-Learning-Nexus-2-VPC Peer-Keepalive-Link-172.15.13.2****
channel-group 2 mode active
no shutdown

interface Ethernet3/2
no switchport
description ****Connected To AQ-Learning-Nexus-2-VPC Peer-Keepalive-Link-172.15.13.2****
channel-group 2 mode active
no shutdown

  • Now Apply Port channel to Physical Ports on Nexus 2

interface Ethernet3/1
no switchport
description ****Connected To AQ-Learning-Nexus-1-VPC Peer-Keepalive-Link-172.15.13.1****
channel-group 2 mode active
no shutdown

interface Ethernet3/2
no switchport
description ****Connected To AQ-Learning-Nexus-2-VPC Peer-Keepalive-Link-172.15.13.1****
channel-group 2 mode active
no shutdown

After connected cables to your both Nexus the peer status is (peer adjacency formed ok) and keep alive link is alive as under

show vpc comand details

cisco nexus Configure IP of Source and Destination Keepalive





--------------------------------------------------End Topic----------------------------------------------------------------------------------------------------------------------------------------------------------
                                            ****Free of Cost Services****

·        You can contact us for free any Cisco paid software router IOS, Latest Switches IOS, Wireless IOS, Cisco ASA IOS, paid Cisco documentation.

·        You can also contact us for any kind of network issues during your studies and job. we will respond to you within 2 to 3 hours.

·        You can also contact us for your network projects and assignment. We have expert team for preparing the documentation.

·         

                                           ****Contact us****
****Blogger ****


 ****Email ****


****Website ****



****AQ Cisco Community Profile****
             


****Google+ ****



****Facebook****



*****Cisco Switch Useful Commands****



****Cisco switch Error disable quick****


****Cisco switch LED and Network assistant software****



****Cisco switch password recovery****



****Port channel suspended****




Hope document helpful for you

Regards,

AQ Learning Center (Networks)

CCIE Experts
AQ technologies
Now presents AQ Learning Center

Play Pause