Online Classes Available

contact for MCSA 2012,MCSE 2012,Exchange server 2010,VCP 5.5 (Free Demo)
call :+91-9654527967
Skype:neeraj_230@hotmail.com
Hangout:neerajdel@gmail.com

Thursday, May 1, 2014

Clear Cisco Router Configuration to Factory reset

Router#erase startup-config
Erasing the nvram filesystem will remove all files! Continue? [confirm]
[ OK]
Erase of nvram: complete
Router#reload
Proceed with reload? [confirm]

Auto Tuning Buffers on Cisco Router

Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#buffers tune automatic
Router(config) #end
Router#

Router# show buffers tune
Tuning happened for the pool Small
Tuning happened at 22: 43: 19
Oldvalues
permanent: 50 minfree: 20 maxfree: 150
Newvalues
permanent: 62 minfree: 15 maxfree: 78
Tuning happened for the pool Middle
Tuning happened at 22: 43: 19
Oldvalues
permanent: 25 minfree: 10 maxfree: 150
Newvalues
permanent: 36 minfree: 9 maxfree: 45
Router#

Disabling Cisco Discovery Protocol (CDP) on Cisco Router

Disable per interface:

Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config) #cdp run
Router(config) #interface FastEthernet0/0
Router(config-if) #no cdp enable
Router(config-if) #end
Router#

Disable globally:

Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config) #no cdp run
Router(config) #end
Router#

Tuesday, April 8, 2014

Defining Encapsulations for VLAN between Router and Switch for Inter-VLANs Routing


Defining Encapsulations for VLAN between Router and Switch for Inter-VLANs Routing

Step1: Configue Port on Router for Logically divided an Fast Ethernet Port into 3 VLANs ports

Router(config)#interface FastEthernet0/0  (Enter the Fast Ethernet Port of Router)
Router(config-if)# no ip address        (Remove the IP address from the Interface)
Router(config-if)#no shutdown        (Give the Interface UP)
Router(config-if)#exit            (Exit from the Port)

Router(config)#interface FastEthernet0/0.2               (sub interface for the VLAN 2)
Router(config-subif)# encapsulation dot1Q 2         (IEEE 802.1Q Encapsulation for VLAN 2)   
Router(config-if)# ip address 10.1.1.1 255.0.0.0         (IP Address for the VLAN 2)
Router(config)#exit                (Exit from the Port)

Router(config)#interface FastEthernet0/0.3        (sub interface for the VLAN 3)
Router(config-subif)# encapsulation dot1Q 3    (IEEE 802.1Q Encapsulation for VLAN 3)
Router(config-subif)# ip address 20.1.1.1 255.0.0.0     (IP Address for the VLAN 3
Router(config-subif)#exit            (Exit from the Port)

Router(config-if)#interface FastEthernet0/0.4    (sub interface for the VLAN 4)
Router(config-subif)# encapsulation dot1Q 4    (IEEE 802.1Q Encapsulation for VLAN 4)
Router(config-subif)# ip address 30.1.1.1 255.0.0.0     (IP Address for the VLAN 4)
Router(config-subif)#exit            (Exit from the Port)


Step2: Now Create VLANs on The Switch

Switch(config)#vlan 2
Switch(config)#name Sale
Switch(config)#vlan 3
Switch(config)#name Hr
Switch(config)#vlan 4
Switch(config)#name IT

OUTPUT:
Switch#show vlan

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


Step3: Configure Port for Trunk
Switch(config)#interface F0/1
Switch(config-if)#switchport mode trunk

Step4: Now connect Different PC for Acess to VLANs.

PC1:     IP address: 10.1.1.2
    Subnet Mask: 255.0.0.0
    Default Gateway:10.1.1.1

PC2:    IP address: 20.1.1.2
    Subnet Mask: 255.0.0.0
    Default Gateway:20.1.1.1

PC3:    IP address: 30.1.1.2
    Subnet Mask: 255.0.0.0
    Default Gateway:30.1.1.1

Step5: Ping Each Other

On pc1 to pc2 and pc3

ping 10.1.1.2
ping 20.1.1.2
ping 30.1.1.2

 You see Each Reply for each ping.



IPv6 Address Types and Range

 Address Type            Bits (Binary)           HEX Representation
--------------------------------------------------------------------
Unspecified                     00...0                             ::/128

Loopback                         00...1                            ::1/128

Multicast                      11111111                           FF00::/8

Link-Local Unicast           1111111010              FE80::/10

Site Local Unicast           1111111011              FEC0::/10
(Depreciated)

Global Unicast               001                            2xxx::/ or 3xxx::/4
(Currently Allocated)

Reserved (Future Use)   Everything Else

 

IPv6 Multicast Address

Address            Multicast Group
------------------------------------
 FF02::1            All Nodes
 FF02::2            All Routers
 FF02::5            OSPFv3 Routers
 FF02::6            OSPFv3 DR's
 FF02::9            RIPng Routers
 FF02::A            EIGRP Routers
 FF02::B            Mobile Agents
 FF02::C            DHCP Servers
 FF02::D            All PIM Routers

Port Security Configuration on 2950 Switch

Switch(config-if)#switchport mode access

Switch(config-if)#switchport port

Switch(config-if)#switchport port-security ?
  mac-address  Secure mac address
  maximum      Max secure addresses
  violation    Security violation mode
  <cr>

Switch(config-if)#switchport port-security mac-address ?
  H.H.H   48 bit mac address
  sticky  Configure dynamic secure addresses as sticky

Switch(config-if)#switchport port-security mac-address 00e0.f75c.6301
Port-security not enabled on interface FastEthernet0/1.

Switch(config-if)#switchport port-security

Switch(config-if)#switchport port-security mac

Switch(config-if)#switchport port-security mac-address 00e0.f75c.6301

Switch(config-if)#^Z
Switch#
%SYS-5-CONFIG_I: Configured from console by console

Switch#sh mac address-table
          Mac Address Table
-------------------------------------------

Vlan    Mac Address       Type        Ports
----    -----------       --------    -----

   1    00e0.f75c.6301    STATIC      Fa0/1
Switch#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to down

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

%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

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

Switch#
Switch#sh mac address-table
          Mac Address Table
-------------------------------------------

Vlan    Mac Address       Type        Ports
----    -----------       --------    -----

   1    00e0.f75c.6301    STATIC      Fa0/1
Switch#sh mac address-table
          Mac Address Table
-------------------------------------------

Vlan    Mac Address       Type        Ports
----    -----------       --------    -----

   1    00e0.f75c.6301    STATIC      Fa0/1
Switch#sh mac address-table
          Mac Address Table
-------------------------------------------

Vlan    Mac Address       Type        Ports
----    -----------       --------    -----

   1    00e0.f75c.6301    STATIC      Fa0/1
Switch#sh mac address-table
          Mac Address Table
-------------------------------------------

Vlan    Mac Address       Type        Ports
----    -----------       --------    -----

   1    00e0.f75c.6301    STATIC      Fa0/1
Switch#sh mac address-table
          Mac Address Table
-------------------------------------------

Vlan    Mac Address       Type        Ports
----    -----------       --------    -----

   1    00e0.f75c.6301    STATIC      Fa0/1
Switch#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to administratively down

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


Switch#
Switch#
Switch#
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.

Switch(config)#int fastEthernet 0/1

Switch(config-if)#switchport port-security maximum 2

Switch(config-if)#shutdown

%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to administratively down
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#no sh
Switch(config-if)#no shutdown

Switch(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

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

Switch(config-if)#switchport port-security violation ?
  protect   Security violation protect mode
  restrict  Security violation restrict mode
  shutdown  Security violation shutdown mode

Switch(config-if)#switchport port-security violation shutdown
Switch(config-if)#^Z
Switch#
%SYS-5-CONFIG_I: Configured from console by console

Switch#sh mac AD
Switch#sh mac ADdress-table
          Mac Address Table
-------------------------------------------

Vlan    Mac Address       Type        Ports
----    -----------       --------    -----

   1    00e0.f75c.6301    STATIC      Fa0/1
Switch#sh mac ADdress-table
          Mac Address Table
-------------------------------------------

Vlan    Mac Address       Type        Ports
----    -----------       --------    -----

   1    00e0.f75c.6301    STATIC      Fa0/1
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.

Switch(config-if)#switchport port-security mac-address 0090.217C.CE02
Switch(config-if)#^Z
Switch#
%SYS-5-CONFIG_I: Configured from console by console

Switch#
Switch#
Switch#sh mac ADdress-table
          Mac Address Table
-------------------------------------------

Vlan    Mac Address       Type        Ports
----    -----------       --------    -----

   1    0090.217c.ce02    STATIC      Fa0/1
   1    00e0.f75c.6301    STATIC      Fa0/1
Switch#