Wednesday, March 22, 2017

Cisco Prime Infastructure

Definition:
Cisco Prime Infrastructure is a network management tool that supports lifecycle  management of your entire network infrastructure from one graphical interface.
Provides network administrators with a single solution for provisioning, monitoring, optimizing and troubleshooting both wired and wireless devices.

Configuring SNMP
To ensure Prime Infrastructure can query SNMP devices and receive traps and notifications:

Step 1
Set SNMP credentials (community strings)  on each device you want to manage using Prime Infrastructure.
Configure  these devices to send SNMP notifications to the Prime Infrastructure.

admin(config)#snmp-server community private RW
admin(config)#snmp-server community public RW

NB
Where private and public are the community strings you want to set.

After you set the community strings you can specify the device notifications to be sent as traps to the Prime Infrastructure server using the following Cisco  IOS global command:

admin(config)#snmp-server host Host traps version community notification type

Host is the IP address of Prime Infrastructure server

Version is the version of SNMP that is used to send the traps

Community is the community string sent to the server with the notification operation.

Notification type is the trap to send

IPsec Site to Site VPN

IPsec Site to Site VPN: Definition

  • organizations use virtual private networks (VPN) to create end-to-end private network connection (tunnel) over third party networks such as the internet or extranets.
  • IP Security (IPsec) protocol provides a framework for configuring secure VPNs and is commonly deployed over the internet to connect branch offices, remote employees and business parties.
IPsec VPN negotiation can be broken down in five steps:

Step 1
An IPsec tunnel is initiated when Host A sends interesting traffic to Host B.
Traffic is considered interesting when it travels between the IPsec peers and meets that criteria that is defined in the crypto access control list.

Step 2
Router 1 and Router 2 negotiate a Security Association (SA) used to form an IKE Phase 1 tunnel which is known as an ISAKMP tunnel.

Step 3
Within the protection of the IKE Phase 1 tunnel an IKE Phase 2 tunnel is negotiated and set up. (IPsec Tunnel).

Step 4

After the IPsec tunnel is established interesting traffic flows through the protected IPsec tunnel.

Step 5
After no interesting traffic has been seen for a specified amount of time or if the IPsec SA is deleted, the IPsec tunnel is torn down.

Elements of site-to-site VPN
a) Headend VPN device - Act as a VPN termination device, located at a primary network location (Headquarters location).
b) VPN access device - Serves as a VPN termination device, located at a remote office.
c) Tunnel - Provides a logical connection over which traffic flows (e.g IP sec tunnel and Generic Router Encapsulaiton (GRE))
d) Broadband service - Transports traffic to and from the internet.

NB
IPsec operates at layer 3 of the OSI model  (Network Layer) and it is indepent of the applications.
It means that the applications don't require any modifications to use IPsec

IPsec Modes

1) Transport Mode - security is provided for the transport layer.
2) Tunnel mode - will encapsulate the original IP header and create a new IP header that is sent unencrypted across the untrusted network.

IPsec Transforms
IPsec delivers data confidentiality services by executing a "transform" on plain text data into a block of ciphertext.
Common ciphers used in the IPsec transforms are: DES, 3DES and AES.
3DES and AES are considered stronger encryption ciphers than DES.
3DES uses 128 bit key
AES uses 256 bit key


Monday, June 17, 2013

Switch Port States

Switch Port States

  • Listening - sends and receives BPDUs to determine root, but does not update the MAC address.
  • Disabled - does not participate in frame forwarding or in stp.
  • Blocking - does not participate in frame forwarding.
  • Forwarding - sends and receives data frames.
  • Learning - populates the MAC address table, but will not forward user data.

HSRP Port States

HRP Port States

  1. Initial - this state indicates that HSRP is not running, and it is entered via a configuration change or when the interface first comes up.
  2. Learn - a router has not determined the virtual ip address and has not yet seen an authenticated hello message from those routers. 
  3. Listen - the router knows the virtual ip address but is neither the active nor the standby router. It listens for hello messages.
  4. Speak - the router sends periodic hello messages and is actively participating in the election of the active  or standby router. A router cannot enter speak state unless  it has the virtual ip address.
  5. Standby - The router is a candidate to become the next  active router and sends periodic hello message.
  6. Active - The router is currently forwarding packets that are set to the group virtual MAC address. The router sends periodic hello messages.

Syslog Levels and Description


Syslog levels and Descriptions

     0. Emergency  - system is unusable (such as imminent system crash).
  1. Alert - action must be taken immediately (such as corrupted system database).
  2. Critical - critical conditions (such as hardware error).
  3. Error - Error conditions.
  4. Warning - Warning conditions.
  5. Notice - normal but significant conditions. It is not an error, but possibly should be handled in a special way.
  6. Informational - Informational Message.
  7. Debug -debug level message.

The Port Aggregation Protocol and Link Aggregation Protocol

The Port Aggregation Protocol (PAgP) and Link Aggregation Protocol (LACP) facilitate the automatic creation of EtherChannels by exchanging packets between Ethernet interfaces.
PAgP is a cisco-proprietary solution and LACP is  a standards based solution.

LACP Modes:

  • on - the link aggregation is forced to be formed without any LACP negotiation, the peer must be set to on as well.
  • off - disables LACP & prevents from forming a port channel.
  • passive - the port does not initiate the channel.
  • active - send LACP packets and will to form a port channel.
PAgP Modes:


  •  on -  the link aggregation is forced to be formed without PAgP negotiation, the peer must be set to on as well.
  • off - disables PAgP and prevents from forming a port-channel.
  • desirable - sends PAgP packets and willing to form a port-channel.
  • auto - does not start PAgP packet negotiation but responds  to PAgP packets it receives 
Note :

An etherchannel in cisco is defined as a layer 2 Etherchannel or a layer 3 Etherchannel.
For layer 2 Etherchannel, physical ports are placed into an Etherchannel group.
A logical port-channel interface will be created automatically.
For layer 3 Etherchannel a layer 3 switch virtual interface (svi)  is created and then the physical ports are bound into this layer 3 svi.

Monday, May 9, 2011

Ubuntu 11.04(Natty Narwhal) and Windows 7 Home Premium 64 Bit living in Harmony

Ubuntu 11.4 operating system is a variation of Linux built on top of a kernel (the heart of the operating system). There are various versions of Linux such as Ubuntu, Mandriva, OpenSuse 11.4, Fedora, Red Hat and CentOS to name a few. These are all based on the concept of open-source, and Ubuntu was developed by Mark Shuttleworth, a former University of Cape Town student. Ubuntu is primarily developed, by a company called Canonical, and it is a free operating system, which can be obtained for FREE from www.ubuntu.org.zw. Windows 7 Home premium is the 7th iteration from Microsoft and is owned by Bill Gates, a former Harvard student. Windows 7 is developed by Microsoft and is commercial software which, is acquired by one purchasing a new machine or purchasing the operating system installation disc, through one of the many accredited Microsoft Partners. There are similarities and differences between Ubuntu and Windows, which I shall explore, as I seek to discover the better of the two.
I decided to boot Ubuntu 11.04 64 bit alongside Windows 7 Home Premium64 bit, on my Toshiba Satellite LS655, with a Intel Core i5 processor, 4 GIG memory, 500 GIG hard drive. Windows 7 Home Premium 64 bit, integrates Windows Media Centre, which is a stylish way to manage media files. I performed a Dual boot install of Ubuntu 11.04 yesterday at the Ubuntu 11.04 Launch party, with the help of some friends, whomI shall not mention. The install for Ubuntu 11.04 was simple and fast, it took less than 20 minutes. Out of the box, Ubuntu 11.04 (700MB) is packaged with additional software, such as Libre Office 3.1, Brasero, Banshee, Adobe Reader, and Ubuntu one and many more applications that can be downloaded for FREE via Synaptic Packet Manager or Ubuntu Software Centre. On the other hand Windows 7 Home Premium comes loaded with, Word Pad, Windows Media Player and a scaled down version of the office suite, called Office 2010 starter (includes Excel and Word). There are additional third party softwares that come pre-loaded such as McAfee Internet Security and Nero Start smart 10.
Ubuntu 11.04 has this intuitive feel especially with integration of the Unity interface into 11.04, which resourcefully utilizes the left side of the screen. You can access your windows partitions in Linux and use files as if you were logged into Windows. Transferring files in Windows can be cumbersome, in terms of time fluctuations during copying process; however Ubuntu 11.04 is relatively fast, as it does this speedily, whether copying to flash or external hard drive. The Brasero software is not finicky, as some would want to believe, which makes burning iso images onto disc tranquil, with Windows compatibility software. In Windows 7 I found myself in a pickle, when I tried to transfer, about 14 GIG of data in the late hours of the evening, still have to give it a go in Ubuntu 11.04! Office 2010 is impressive and has this air of supremacy compared to Ubuntu 11.04’s LibreOffice 3.1, which in my opinion is akin to a Subaru; its looks don’t do it justice. However considering the former is commercial and the latter is free, the size of your pocket will determine which Office suite you will use. Maybe it is a general feeling that something you pay for is better than something which is free, Office 2010 should cost an arm and a leg though! The de facto for Ubuntu had been OpenOffice, as evident in the Ubuntu 10.04 release; give me a LibreOffice any day!
Linux/Unix Operating systems are inherently secure, and modular in design. Ubuntu is no exception, as it has utility software called Appamor which monitors usage of machine and any deviation from the norm sends out a warning to the user/administrator. So that means no worries of purchasing or downloading commercial antivirus software. For those who are sceptical there is AVG for Linux, which is FREE and for the Corporates running mail servers, and web servers etc. NOD32Business Edition has a version for Linux as well, which comes at a fee. These Linux anti-viruses search for viruses made for Windows in Linux. Whereas Windows 7 on the other hand recquires antivirus software, lest one wants to experience sluggish performance on their box, in Linux it is not a necessity. However, these two operating systems require download of updates on a regular basis, and graceful in terms of hardware requirements.
Ubuntu releases a new version of its operating system every six months, and given that technology keeps you on your toes as it changes rapidly. It is possible to upgrade operating system over the internet by pointing machine to local repository, www.ubuntu.org.zw. Ubuntu has assimilated Ubuntu One application which offers cloud computing with 2GB of space. The .04 is released every April and is the long time support version (three years for Desktop and five years for server). The server version of Ubuntu 11.04 has no graphical user interface and this can pose a challenge to administrators accustomed to configuring via a Graphical User Interface (GUI). Windows releases a new operating system every three to five years, and in-between bundles a collection of updates into a service pack. I have had the privilege of working with Windows 2003 server, it gets the job done, however once blackouts occur frequently, with no backup power source, error messages begin popping up and blue screen of death rears its ugly head!
I believe Ubuntu is a viable option for Small to Medium companies who do not have sufficient capital to invest in commercial software. I also feel Ubuntu is a viable option for corporates, as there are certifications in Linux, which IT administrators can obtain, so as to effectively manage their servers and train users. I have not used 2008 server yet, however I find Linux to be more resilient as a server solution. I have been an administrator of Suse Linux Enterprise Server (SLES) 10, running an installation server, web server, mail server, and file server on a dual core desktop with 512MB and 80 GB. With frequent power cuts at the time, a simple click of the switch and SLES would roar into life!!
In conclusion if you are tired of formatting your machine every time performance becomes sluggish or begins freezing, especially in Windows XP. Or tired of sluggish performance of Windows Vista which is resource hungry. It would be worthwhile to venture into the open-source community, and to try one of the several Linux variations, such as Mandriva, Linux Mint, OpenSuse, Debian, Ubuntu, and Fedora. However when it comes to issues of Graphic Design software, Gimp is the main application, and this does not match up to Adobe Suite and Corel Draw. On the games front, the greater numbers of games are not compatible with Linux and additional applications such as Wine need to be installed and these can be rather finicky for computer novices.