Thursday, March 31, 2016

VLAN,VTP and Inter - VLAN Communication Exercises to Understand More

Tasks to Be Done:

1.       Create the Diagram as shown above and Perform the following as clarified Below:

a.       Provide the Hostnames (R1, S1 and S2 ) for Routers and the Switches Respectively

b.       Provide the passwords as:
                                                               i.      Telnet Password : telpass
                                                             ii.      Console Password : compass
                                                           iii.      Privilege password : privpass

c.       Create the Banner on all the devices as :

                                 **************************************
                                    ADMINISTRATORS ONLY
                                   **************************************

d.       Creates the VLAN’s as Shown on the diagram and ensure you only create them on the VTP server switch only as illustrated on the diagram.

e.       The IP address of the Computers on the VLAN’s is as elaborated below, ensure the computers on the respective VLAN receives the right IP address:

                                                               i.      TCICT105 = 192.168.1.0/27
                                                             ii.      TCICT106 = 192.168.1.32/27

f.        After doing that all, Please ensure all the trunking is set between the switches and Routers and verify if it is applied.

g.       Set S1 as the VTP server Mode and the other switches as the VTP Client mode and please verify.

h.       Create a VTP Domain of setup.net

i.         Please verify the VTP information is well configured as instructed and proceed

2.       After all this is done please ensure all the machines in the same VLAN are communicating but not on the different VLAN before proceeding.

3.       After doing that ensure the Inter-VLAN communication is performed and computers in both VLAN’s can communicate.

4.       After all this enable service password encryption in all your Configuration files and save them awaiting for Submission.
-

Configuring and Troubleshooting VLAN,VTP and Performing Inter-VLAN Communications.




VLAN Configuration on CISCO Packet Tracer:
-------------------------------------------------------------

1. Create the VLAN and Name them:
------------------------------------------------

S1(config)#vlan 10
S1(config-vlan)#name SALES
S1(config-vlan)#exit
S1(config)#vlan 20
S1(config-vlan)#name IT
S1(config-vlan)#exit
S1(config)#vlan 30
S1(config-vlan)#name ENGINEERING
S1(config-vlan)#exit
S1(config)#


Verify the VLAN Configuration
----------------------------------------

S1#show vlan


Configuring Trunk ports
------------------------------

S1#config t
Enter configuration commands, one per line.  End with CNTL/Z.
S1(config)#interface fa0/1
S1(config-if)#switchport mode trunk

S2#config t
S2(config)#interface fa0/2
S2(config-if)#switchport mode trunk


Configuring VTP Information
-------------------------------------

1. Configuring the switches to be in VTP Server Mode and those in VTP Client Mode .
---------------------------------------------------------------------------------------------------------

S1(config)#vtp mode server
Device mode already VTP SERVER.
S1(config)#

S2(config)#vtp mode client
Setting device to VTP CLIENT mode.
S2(config)#

S3(config)#vtp mode client
Setting device to VTP CLIENT mode.
S3(config)#


2. Configuring VTP Domain
----------------------------------

S1(config)#vtp domain wazembe.net
Changing VTP domain name from NULL to wazembe.net

3. Verify VTP Configuration
----------------------------------
S2# show vtp status
VTP Version                     : 2
Configuration Revision          : 2
Maximum VLANs supported locally : 255
Number of existing VLANs        : 9
VTP Operating Mode              : Client
VTP Domain Name                 : wazembe.net
VTP Pruning Mode                : Disabled
VTP V2 Mode                     : Disabled
VTP Traps Generation            : Disabled
MD5 digest                      : 0x19 0x05 0x14 0x70 0x70 0x1A 0xFB 0x96
Configuration last modified by 0.0.0.0 at 3-1-93 00:39:55
S2#


3. Assigning of Ports to VLAN
------------------------------ --------

S1(config)#interface fa0/2
S1(config-if)#switchport access vlan 10
S1(config-if)#exit

S1(config)#interface fa0/3
S1(config-if)#switchport access vlan 20
S1(config-if)#exit

S3(config)#interface range fa0/2-3
S3(config-if-range)#switchport access vlan 30
S3(config-if-range)#


4. Assign IP addresses on PC and Begin Communicating within the same respective VLAN's
------------------------------------------------------------------------------------------------------------------


5. Inter-VLAN Configuration (Router on a Stick) to allow people on different VLANs to communicate
------------------------------------------------------------


1. Place a Router on any Switch. This Router will be used to perform communication between
VLAN
------------------------------------------------------------------------------------------
2. Create Sub Interfaces on the Router. The Sub-interfaces will be responding to the respective
VLANs
-----------------------------------------------------------------------------------------------
R1(config)#interface fa0/0.10
R1(config-subif)#encapsulation dot1Q 10
R1(config-subif)#ip add 10.0.0.1 255.0.0.0
R1(config-subif)#exit

R1(config)#interface fa0/0.20
R1(config-subif)#encapsulation dot1Q 20
R1(config-subif)#ip add 11.0.0.1 255.0.0.0
R1(config-subif)#exit

R1(config)#interface fa0/0.30
R1(config-subif)#encapsulation dot1Q 30
R1(config-subif)#ip add 12.0.0.1 255.0.0.0
R1(config-subif)#exit

3. Switch on the Sub Interfaces
--------------------------------------
R1(config)#interface fa0/0
R1(config-if)#no shutdown



4. Configure Trunk port between the Switch and the Router
-------------------------------------------------------------------------

S3#config t
Enter configuration commands, one per line.  End with CNTL/Z.
S3(config)#interface fa0/4
S3(config-if)#switchport mode trunk

Tuesday, March 22, 2016

Preparing Redhat 5 Linux for Oracle Database 11g Release 2 Installation

Lets begin by selecting Next on this First pop up Screen ; 




Choose English and Click Next >




Choose U.S English then Click Next >





Select “Skip Entering Installation Number” and then Select “OK”





Select ”Yes”  to Format the Disk and Prepare




Select “ Create Custom Layout” on the Drop down List and select “Next”




Select the “Free Space” and then Select “New”.






Select the File System to “Swap” and specify your swap Size i.e. Please note that your Swap size should be 1.5 multiply your RAM Size.





This Will be the Output


Let’s Continue to Specify the Root Partition which will be used to Install the Linux OS
Select the “Free Drive” and then Click “New” Specify the root ‘/’ partition then specify the remaining size and then click Next >






On Selecting the Boot Loader leave default and then  Select Next >




On this Screen Specify the the machine name by selecting the “manual”  button and specify your PC Name ‘PC 1’ then select next






On the next screen Select Date and time for your Time zone as shown on the drop down box then select Next >






Specify the root Password by typing it and Confirming it. This account will be having the username of root and the password which will be specified on this Section.




On this next screen Select Customize now below and select next tp select what application to be installed with Redhat:
There are some packages that Oracle requires and you must make sure you install them before even you begin Oracle installation Process.






Select every package on the Development Section:






Select the servers shown on the Servers application without forgetting to select the DNS Name Server above:






On the Base System Section Select every option available at the section:




On the Application Section select every option available:

                    




After all that Click Next to Begin Installation:






After the Installation Process Select reboot:




On the Next Screen select Forward :








On the Next Screen select Yes  I agree to the License Agreement then select Forward :




On the next Screen, for learning purpose go to the drop down list disable the firewall and then select Forward:




On the SE linux Page disable SE Linux and then Click Forward <Oracle Recommendation>:




On the Kdump Screen leave the default option and then Click forward





On the Date and Time Screen, leave default settings and then Click Forward >






On the Set up Software Updates Screen, select “No I Prefer to Register at Later times” .





On the Create User Screen, create a normal user who will not be an administrator, remember we already have a root which we already specified at the beginning.






On the Sound Card Screen leave default and then Select forward:





On the Addition CD’s






The Machine will Reboot and now you can login and Begin the Oracle Preparations. Make Sure you Login as Root user : 


How to Recover a Password on a CISCO 2950 Switch

1. Restart the Switch while holding the Mode Button.
********************************************************
C2950 Boot Loader (C2950-HBOOT-M) Version 12.1(11r)EA1, RELEASE SOFTWARE (fc1)
Compiled Mon 22-Jul-02 17:18 by antonino
WS-C2950-24 starting...
Base ethernet MAC Address: 00:18:18:00:8a:40
Xmodem file system is available.

The system has been interrupted prior to initializing the
flash filesystem.  The following commands will initialize
the flash filesystem, and finish loading the operating
system software:

    flash_init
    load_helper
    boot

switch:

2. Run the flash_init command as shown on the console
*****************************************************

switch: flash_init
Initializing Flash...
flashfs[0]: 379 files, 4 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 7741440
flashfs[0]: Bytes used: 4759040
flashfs[0]: Bytes available: 2982400
flashfs[0]: flashfs fsck took 9 seconds.
...done initializing flash.
Boot Sector Filesystem (bs:) installed, fsid: 3
Parameter Block Filesystem (pb:) installed, fsid: 4
switch:


3. Verify if the config.text is in the flash
*********************************************

switch: dir flash:
Directory of flash:/

2    -rwx  109       <date>               info
3    -rwx  303       <date>               env_vars
4    -rwx  676       <date>               vlan.dat
5    -rwx  736       <date>               vlan.dat.renamed
6    -rwx  1323      <date>               config.text.renamed
7    -rwx  5         <date>               private-config.text.renamed
8    -rwx  3110758   <date>               c2950-i6q4l2-mz.121-22.EA6.bin
9    drwx  4160      <date>               html
378  -rwx  109       <date>               info.ver
379  -rwx  1182      <date>               config.old
380  -rwx  1224      <date>               config.old2
381  -rwx  5         <date>               private-config.text
382  -rwx  1200      <date>               config.old3
383  -rwx  1337      <date>               config.text

2982400 bytes available (4759040 bytes used)

4. Rename the Config.text file to other name preferred.
******************************************************
switch: rename flash:config.text flash:conifg.zamani

5. Verify if the file has been changed.
***************************************
switch: dir flash:
Directory of flash:/

2    -rwx  109       <date>               info
3    -rwx  303       <date>               env_vars
4    -rwx  676       <date>               vlan.dat
5    -rwx  736       <date>               vlan.dat.renamed
6    -rwx  1323      <date>               config.text.renamed
7    -rwx  5         <date>               private-config.text.renamed
8    -rwx  3110758   <date>               c2950-i6q4l2-mz.121-22.EA6.bin
9    drwx  4160      <date>               html
378  -rwx  109       <date>               info.ver
379  -rwx  1182      <date>               config.old
380  -rwx  1224      <date>               config.old2
381  -rwx  5         <date>               private-config.text
382  -rwx  1200      <date>               config.old3
383  -rwx  1337      <date>               conifg.zamani

2982400 bytes available (4759040 bytes used)

6. Run the Boot Command to reload the Switch
*********************************************
switch: boot

Thursday, March 17, 2016

Configuring and Verifying PPP (Point to Point Protocol) on CISCO Routers

Enable PPP to an interface
=============================
On R1
=====
R1(config)#interface se0/0/0
R1(config-if)#encapsulation ppp


On R2
=====
R2config)#interface se0/0/0
R2config-if)#encapsulation ppp

===============================
Enable Authentication
===============================
on Router R1
===============
R1(config)#username R2 password cisco
R1(config)#interface se0/0/0
R1(config-if)#ppp authentication chap

on Router R2
=================
R2(config)#username R1 password cisco
R2(config)#int se0/0/0
R2(config-if)#ppp authentication chap


If you wnat to verify the PPP authentication
==================================================
R1#debug ppp authentication

Configuring and Verifying NAT on CISCO Routers

Network Address Translation (NAT)
private IP address -> Public IP address



How to Configure Static NAT
============================
R1#conf t
R1(config)#ip nat inside source static 192.168.1.2 2.1.1.1
R1(config)#ip nat inside source static 192.168.1.3 2.1.1.2
R1(config)#ip nat inside source static 192.168.1.4 2.1.1.3

Verify the NAT Table Created
============================
R1#show ip nat translations

Applying Static NAT
====================

R1(config)#interface fa0/0
R1(config-if)#ip nat inside

R1(config)#interface fa0/1
R1(config-if)#ip nat outside



Configuring Dunamic NAT
=================================

1. Configure access list to define those who
   should be NATTED
===============================================
R1#conf t
R1(config)#access-list 20 permit 192.168.1.0 0.0.0.255

2. Create a Pool which will be used by the Internal
   PC.
====================================================
R1(config)#ip nat pool INTERNET_POOL 16.0.0.1 16.0.0.50 netmask 255.0.0.0

3. Create a NAT statement which will combine the 2 above statements
====================================================================
R1(config)#ip nat inside source list 20 pool INTERNET_POOL

===================================================================

Configure PAT to use an IP address from the outside interface
==============================================================


1. Configure access list to define those who
   should be NATTED
===============================================
R1#conf t
R1(config)#access-list 20 permit 192.168.1.0 0.0.0.255


2. Create the PAT Statement
==============================

R1(config)#ip nat inside source list 20 interface fa0/1 overload


3. Apply the NAT statement
=========================
R1(config)#interface fa0/0
R1(config-if)#ip nat inside

R1(config)#interface fa0/1
R1(config-if)#ip nat outside

================================

Configuring and Verifying EIGRP and OSPF on CISCO Routers

Setting up OSPF Routing Protocol
===============================
R1(config)#router ospf 10
R1(config-router)#router-id 1.1.1.1
R1(config-router)#network 10.1.1.1 0.0.0.0 area 0
R1(config-router)#network 11.1.1.1 0.0.0.0 area 0

R2(config)#router ospf 20
R2(config-router)#router-id 2.2.2.2
R2(config-router)#network 10.1.1.2 0.0.0.0 area 0
R2(config-router)#network 12.1.1.1 0.0.0.0 area 0
R2(config-router)#network 13.0.0.1 0.0.0.0 area 0

R3(config)#router ospf 30
R3(config-router)#router-id 3.3.3.3
R3(config-router)#network 13.0.0.2 0.0.0.0 area 0
R3(config-router)#network 14.0.0.1 0.0.0.0 area 0

To restart the OSPF Process
=========================
R1#clear ip ospf process
Reset ALL OSPF processes? [no]: yes
R1#



Verifying Commands
==================
R1# show ip route
R1#show ip ospf neighbor
R1#show interface se0/0/0
==============================================================

Configuring EIGRP Routing Protocol
=================================
R1(config)#router eigrp 200
R1(config-router)#network 10.1.1.1
R1(config-router)#network 11.1.1.1
R1(config-router)#end
R1#
***********************************
R2(config)#router eigrp 200
R2(config-router)#network 13.0.0.1
R2(config-router)#network 10.1.1.2
R2(config-router)#network 12.0.0.1
R2(config-router)#end
R2#
***********************************
R3(config)#router eigrp 200
R3(config-router)#network 13.0.0.2
R3(config-router)#network 14.0.0.1
R3#

***************************************

Verifying Commands
*******************************

show ip eigrp traffic
show ip protocols
 show ip route eigrp
 show ip eigrp topology
 show ip eigrp neighbors

+++++++++++++++++++++++++++++++

Basic Configuration on CISCO Routers and Switches

Setting up the Hostname of a Switch/Router
================================
Switch>enable
Switch#config t
Switch(config)#hostname S1
S1(config)#

=========================================
Removing the Hostname
=====================
Switch>enable
Switch#config t
S2(config)#no hostname

==============================================
Setting up the passwords

1. Console port Password
Switch>enable
Switch#config t
Switch(config)#line console 0
Switch(config-line)#password conpass
Switch(config-line)#login
Switch(config-line)#exec-timeout 0 60
Switch(config-line)#exit

2. Protecting the Privilege Mode (Enable secret)
Switch>enable
Switch#config t
Switch(config)#enable secret privpass
Switch(config)#exit


=========================================
Setting up an IP address to a switch
============================
Switch>enable
Switch#config t
Switch(config)#interface vlan1
Switch(config-if)#ip address 192.168.1.1 255.255.255.0
Switch(config-if)#no shutdown
===================================
Setting up telnet Lines (VTY Lines)
===============================

Switch>enable
Switch#config t
Switch(config)#line vty 0 15
Switch(config-line)#password vtypass
Switch(config-line)#login
Switch(config-line)#exec-timeout 0 60
Switch(config-line)#exit

========================================
Creating Banner Message of the day
================================
Switch>enable
Switch#config t
Switch(config)#banner motd @
Enter TEXT message.  End with the character '@'.
***********************************
CONSULT AN ADMINISTRATOR
**********************************
@


=====================================

Saving your Coniguration
========================

Switch#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Switch#

===========================================