Friday, 27 September 2013

Cisco Router Configuration Commands

RequirementCisco Command
Set a console password to ciscoRouter(config)#line con 0
Router(config-line)#login
Router(config-line)#password cisco
Set a telnet passwordRouter(config)#line vty 0 4
Router(config-line)#login
Router(config-line)#password cisco
Stop console timing outRouter(config)#line con 0
Router(config-line)#exec-timeout 0 0
Set the enable password to ciscoRouter(config)#enable password cisco
Set the enable secret password to peter.This password overrides the enable password
and is encypted within the config file
Router(config)#enable secret peter
Enable an interfaceRouter(config-if)#no shutdown
To disable an interfaceRouter(config-if)#shutdown
Set the clock rate for a router with a DCE cable to 64KRouter(config-if)clock rate 64000
Set a logical bandwidth assignment of 64K to the serial interfaceRouter(config-if)bandwidth 64
Note that the zeroes are not missing
To add an IP address to a interfaceRouter(config-if)#ip addr 10.1.1.1 255.255.255.0
To enable RIP on all 172.16.x.y interfacesRouter(config)#router rip
Router(config-router)#network 172.16.0.0
Disable RIPRouter(config)#no router rip
To enable IRGP with a AS of 200, to all interfacesRouter(config)#router igrp 200
Router(config-router)#network 172.16.0.0
Disable IGRPRouter(config)#no router igrp 200
Static route the remote network is 172.16.1.0, with a mask of 255.255.255.0, the next hop is 172.16.2.1, at a cost of 5 hopsRouter(config)#ip route 172.16.1.0 255.255.255.0 172.16.2.1 5
Disable CDP for the whole routerRouter(config)#no cdp run
Enable CDP for he whole routerRouter(config)#cdp run
Disable CDP on an interfaceRouter(config-if)#no cdp enable


Cisco Router Show Commands

RequirementCisco Command
View version informationshow version
View current configuration (DRAM)show running-config
View startup configuration (NVRAM)show startup-config
Show IOS file and flash spaceshow flash
Shows all logs that the router has in its memoryshow log
View the interface status of interface e0show interface e0
Overview all interfaces on the routershow ip interfaces brief
View type of serial cable on s0show controllers 0 (note the space between the 's' and the '0')
Display a summary of connected cdp devicesshow cdp neighbor
Display detailed information on all devicesshow cdp entry *
Display current routing protocolsshow ip protocols
Display IP routing tableshow ip route
Display access lists, this includes the number of displayed matchesshow access-lists
Check the router can see the ISDN switchshow isdn status
Check a Frame Relay PVC connectionsshow frame-relay pvc
show lmi traffic statsshow frame-relay lmi
Display the frame inverse ARP tableshow frame-relay map

Cisco Router Basic Operations

RequirementCisco Command
EnableEnter privileged mode
Return to user mode from privilegeddisable
Exit RouterLogout or exit or quit
Recall last commandup arrow or <Ctrl-P>
Recall next commanddown arrow or <Ctrl-N>
Suspend or abort<Shift> and  <Ctrl> and 6 then x
Refresh screen output<Ctrl-R>
Compleat CommandTAB

Cisco Router Copy Commands

RequirementCisco Command
Save the current configuration from DRAM to NVRAMcopy running-config startup-config
Merge NVRAM configuration to DRAMcopy startup-config running-config
Copy DRAM configuration to a TFTP servercopy runing-config tftp
Merge TFTP configuration with current router configuration held in DRAMcopy tftp runing-config
Backup the IOS onto a TFTP servercopy flash tftp
Upgrade the router IOS from a TFTP servercopy tftp flash

Cisco Router Debug Commands

RequirementCisco Command
Enable debug for RIPdebug ip rip
Enable summary IGRP debug informationdebug ip igrp events
Enable detailed IGRP debug informationdebug ip igrp transactions
Debug IPX RIPdebug ipx routing activity
Debug IPX SAPdebug IPX SAP
Enable debug for CHAP or PAPdebug ppp authentication
Switch all debugging offno debug all
undebug all

Back up and Restore Configuration Files for Cisco Devices

Introduction

Routers often get upgraded or swapped out for a number of reasons. This document provides the user with some basic steps to migrate the configuration from an existing router to a new router.

Prerequisites

Requirements

Before you use the information in this document, make sure that you meet these requirements:
  • Access to a Trivial File Transfer Protocol (TFTP) or File Transfer Protocol (FTP) server.
  • Connectivity - Routers must be able to access the FTP or TFTP server. Use theping command to verify connectivity.

Components Used

This document is not restricted to specific software and hardware versions.
The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, make sure that you understand the potential impact of any command.

Conventions

Refer to Cisco Technical Tips Conventions for more information on document conventions.

Make a Backup of the Configuration

There are several methods to choose from in order to back up and restore a configuration:

Use a TFTP Server to Backup and Restore a Configuration

This is a step-by-step approach to copy a configuration from a router to a TFTP server, and back to another router. Before you proceed with this method, make sure you have a TFTP server on the network to which you have IP connectivity.
  1. At the Router> prompt, issue the enable command, and provide the required password when prompted.
    The prompt changes to Router#, which indicates that the router is now in privileged mode.
  2. Copy the running configuration file to the TFTP server:
    CE_2#copy running-config tftp:
    Address or name of remote host []? 64.104.207.171
    Destination filename [ce_2-confg]? backup_cfg_for_my_router
    !!
    1030 bytes copied in 2.489 secs (395 bytes/sec)
    CE_2#
  3. Open the configuration file with a text editor. Search for and remove any line that starts with "AAA".
    Note: This step is to remove any security commands that can lock you out of the router.
  4. Copy the configuration file from the TFTP server to a new router in privileged (enable) mode which has a basic configuration.
    Router#copy tftp: running-config
    Address or name of remote host []? 64.104.207.171
    Source filename []? backup_cfg_for_my_router
    Destination filename [running-config]?
    Accessing tftp://10.66.64.10/backup_cfg_for_my_router...
    Loading backup_cfg_for_router from 64.104.207.171 (via FastEthernet0/0): !
    [OK - 1030 bytes]
    
    1030 bytes copied in 9.612 secs (107 bytes/sec)
    CE_2#

Use an FTP Server to Backup and Restore a Configuration

In this procedure, an FTP server can be used in place of a TFTP server.
  1. At the Router> prompt, issue the enable command, and provide the required password when prompted.
    The prompt changes to Router#, which indicates that the router is now in privileged mode.
  2. Configure the FTP username and password.
    CE_2#config terminal
    CE_2(config)#ip ftp username cisco
    CE_2(config)#ip ftp password cisco123
    CE_2(config)#end
    CE_2#
  3. Copy the configuration to the FTP server.
    CE_2#copy running-config ftp:
    Address or name of remote host []? 10.66.64.10
    Destination filename [ce_2-confg]? backup_cfg_for_router
    Writing backup_cfg_for_router !
    1030 bytes copied in 3.341 secs (308 bytes/sec)
    CE_2#
  4. Open the configuration file with a text editor. Search for and remove any line that starts with "AAA".
    Note: This step is to remove any security commands that can lock you out of the router.
  5. Copy the configuration file from the FTP server to a router in privileged (enable) mode which has a basic configuration.
    Router#copy ftp: running-config
    Address or name of remote host [10.66.64.10]? 
    Source filename [backup_cfg_for_router]? 
    Destination filename [running-config]? 
    Accessing ftp://10.66.64.10/backup_cfg_for_router...
    Loading backup_cfg_for_router !
    [OK - 1030/4096 bytes]
    1030 bytes copied in 13.213 secs (78 bytes/sec)
    CE_2#

Use a Terminal Emulation Program to Backup and Restore a Configuration

A terminal emualation program can be used to back up and restore a configuration. This is a description of the procedure using Microsoft Hyperterminal Terminal Emulation software:
  1. If the configuration needs to be copied from another router, connect to that router through the console or Telnet.
  2. At the Router> prompt, issue the enable command, and provide the required password when prompted.
    The prompt changes to Router#, which indicates that the router is now in privileged mode.
  3. Issue the terminal length 0 command in order to force the router to return the entire response at once, rather than one screen at a time.
    This allows you to capture the configuration without extraneous --more-- prompts generated when the router responds one screen at a time.
  4. On the HyperTerminal menu, choose Transfer > Capture Text.
    The Capture Text window appears.
  5. Name this file "config.txt."
  6. Click Start in order to dismiss the Capture Text window and begin the capture.
  7. Issue the show running-config command, and allow time for the router to complete its response. You will see:
    Building configuration...
    followed by the configuration.
  8. On the HyperTerminal menu, choose Transfer > Capture Text > Stop in order to end the screen capture.
  9. Open the config.txt file you created in any text editor, such as Notepad or Wordpad.
  10. Search for and remove any line that starts with "AAA".
    Note: This step is to remove any security commands that could lock you out of the router.
  11. Save the file.
  12. Connect to the router that needs the configuration.
  13. Open the config.txt file.
  14. Highlight the entire contents of the config.txt file.
    You can do this by dragging the cursor from before the first character to after the last character in the file while holding down the left mouse button. Alternatively, if you use Notepad, you can choose Edit > Select All from the menu.
  15. Copy the selected text to the Windows clipboard.
    You can either choose Edit > Copy from the text editor menu, or hold down the CTRL key and simultaneously press the C key in order to perform the copy.
  16. Switch to the HyperTerminal window, and issue the configure terminal command at the Router# prompt. Then press Enter.
  17. Paste the configuration file into the router by selecting Edit > Paste to Host on the HyperTerminal menu.
  18. After the configuration has finished pasting and the router brings you back to the configuration prompt, issue the copy running-config startup-config command in order to write the configuration into memory.
  19. Issue the exit command in order to return to the Router# prompt.

Automatic Backup of Configuration using the Kron Method

In order to get a router to copy the running-config to startup-config, for example every Sunday at 23:00, complete these steps:
  1. Create a kron policy list—This is the script that lists what commands the router should run at the scheduled time.
    Router(config)#kron policy-list SaveConfig
    
            Router(config-kron-policy)#cli write
            Router(config-kron-policy)#exit
    
    • cli—Specifies EXEC CLI commands within a Command Scheduler policy list.
    • Policy-list—Specifies the policy list associated with a Command Scheduler occurrence.
    Note: The reason why write was used rather than copy running-config startup-config is because kron does not support interactive prompts and the copy running-config startup-config command requires interaction. It is important to remember this when you create commands. Also, note that kron does not support configuration commands.
  2. Create a kron occurrence—This informs the router when and how often the policy should run.
    Router(config)#kron occurrence SaveConfigSchedule
     at 23:00 Sun recurring
            Router(config-kron-occurrence)#policy-list SaveConfig
    
    
    • SaveConfigSchedule—This is the name of occurrence. Length of occurrence-name is from 1 to 31 characters. If the occurrence-name is new, an occurrence structure will be created. If the occurrence-name is not new, the existing occurrence will be edited.
    • at—Identifies that the occurrence is to run at a specified calendar date and time.
    • recurring—Identifies that the occurrence is to run on a recurring basis.
  3. Verify the kron configuration by using the show command.
    Router#sh kron schedule
             Kron Occurrence Schedule
             SaveConfigSchedule inactive, will run again in 1 days 12:37:47 at 23:00 on Sun
    • inactive—Means that kron is not running the command(s) at present.
    • Active—Means that kron is running the current command(s).
    Router#show running-configuration 
              kron occurrence SaveConfigSchedule at 23:00 Sun recurring
                policy-list SaveConfig 
                kron policy-list SaveConfig
                cli write

Backup Configuration to a TFTP Server

This example is to save the running config to a TFTP server (10.1.1.1) every Sunday at 23:00:
Router(config)#kron policy-list Backup

         Router(config-kron-policy)#cli show run | redirect 
  tftp://10.1.1.1/test.cfg
         Router(config-kron-policy)#exit
         !
         Router(config)#kron occurrence Backup at 23:00 Sun recurring
         Router(config-kron-occurrence)#policy-list Backup

Verify

Use the show running-config command to confirm that the configuration file has been copied to the destination router.

How to Set Up a Wireless Router as an Access Point on a Network?


These instructions explain how to set up a NET GEAR wireless router as an access point on a network with another router (the main router).
To set up the second router as an access point:
STEP 1. Connect a computer to one of the LAN (not WAN) Ethernet ports at the back of the router.
STEP 2. Access the router menu by opening a browser and typing in the address bar www.routerlogin.com orwww.routerlogin.net.
STEP 3.  Type in the user name admin and the password (the default is password in lower-case letters).
STEP 4. Click the Advanced tab and then select Setup > LAN.
STEP 5.  In the IP Address field, change the LAN IP address of the router to 192.168.1.100 (same IP segment of the main router, 192.168.1.1) and clear the DHCP server check box. Then click Apply.
STEP 6.  Select Wireless Setup, and specify the wireless settings that you require (SSID, Channel, Security).
STEP 7. Connect the router that you just set up as an access point to one of the available Ethernet ports of the other router in the network (the main router). Power cycle both of the routers. The second router now is set up and connected to function as an access point.





Thursday, 26 September 2013

You receive a "The User Profile Service failed the logon” error message

Occasionally, Windows might not read your user profile correctly, such as if your antivirus software is scanning your computer while you try to log on. Before you follow the methods here, try restarting your computer and logging on with your user account again to resolve the issue. If you restart your computer and it does not resolve this issue, use the following methods to resolve this issue. 

Note You must be able to log on to an administrator account to fix your user profile or copy your data to a new account. Before you resolve the issue, log on to Windows by using another account that has administrative permissions, or restart in safe mode to log on with the built-in administrator account. For more information about how to start in safe mode, visit the following Microsoft website:

Method 1: Fix the user account profile

To fix the user account profile, follow these steps:

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows How to back up and restore the registry in Windows
  1. Click Start, type regedit in the Search box, and then press ENTER.
  2. In Registry Editor, locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
  3. In the navigation pane, locate the folder that begins with S-1-5 (SID key) followed by a long number.
  4. Click each S-1-5 folder, locate the ProfileImagePath entry in the details pane, and then double-click to make sure that this is the user account profile that has the error.
    2705065

    • If you have two folders starting with S-1-5 followed by some long numbers and one of them ended with .bak, you have to rename the .bak folder. To do this, follow these steps:
      1. Right-click the folder without .bak, and then click Rename. Type .ba, and then press ENTER.
        2493038
      2. Right-click the folder that is named .bak, and then click Rename. Remove .bak at the end of the folder name, and then press ENTER.
        2493039
      3. Right-click the folder that is named .ba, and then click Rename. Change the .ba to .bak at the end of the folder name, and then press ENTER.
        2493040
    • If you have only one folder starting with S-1-5 that is followed by long numbers and ends with .bak. Right-click the folder, and then click Rename. Remove .bak at the end of the folder name, and then press ENTER.
    • If you have two folders starting with S-1-5 followed by some long numbers and one of them ended with .bak, you have to rename the .bak folder. To do this, follow these steps:
      1. Right-click the folder without .bak, and then click Rename. Type .ba, and then press ENTER.
        2493038
      2. Right-click the folder that is named .bak, and then click Rename. Remove .bak at the end of the folder name, and then press ENTER.
        2493039
      3. Right-click the folder that is named .ba, and then click Rename. Change the .ba to .bak at the end of the folder name, and then press ENTER.
        2493040
    • If you have only one folder starting with S-1-5 that is followed by long numbers and ends with .bak. Right-click the folder, and then click Rename. Remove .bak at the end of the folder name, and then press ENTER.
  5. Double-click the folder without .bak in the details pane, double-click RefCount, type 0, and then click OK.
    2493045
  6. Click the folder without .bak, in the details pane, double-click State, type 0, and then click OK.
    2493046
  7. Close Registry Editor.
  8. Restart the computer.
  9. Log on again with your account.

Method 2: Log on to Windows and copy your data to a new account

Create a new account and copy the data from the old account to the new account. 

Wednesday, 25 September 2013

Accessing a Shared Mailbox Using Outlook 2007

 If you would like to keep your personal email account data completely separate from a shared mailbox, you may prefer to create an Outlook profile for the shared mailbox. When you open Outlook 2007, you will be prompted to select a profile to use. It is recommended that you create a separate profile for the shared mailbox if you plan to use the Mail Merge feature in Microsoft Word to send email.
  1. In Outlook 2007, select the Tools menu and Account Settings...
  2. Highlight your Exchange account and click Change....
  3. Outook 2007 - Change account settings window
     
  4. Click More Settings....
  5. Outlook 2007 - Change Account - More Settings.. window
     
  6. Select the Advanced tab and click Add....
  7. Outlook 2007 - Add Shared Mailbox window
     
  8. Type in the name of the shared mailbox and click OK. In this example, we are wanting to access a shared mailbox named itac@txstate.edu. You will enter the name of the mailbox that you want to access. Click OKagain to close the Exchange server window.
  9. Outlook 2007 - Enter mailbox address window
     
  10. You will be returned to the More Settings window, click OK.

    Outlook 2007 - Shared Mailbox selected window
     
  11. Click Next and then Finish.
  12. Outlook 2007 - Change Account window - Next
     
  13. Click Finish.

    Outlook 2007 - Change Account window - Finish
     
  14. Click Close to close the Account Settings window.

    Outlook 2007 - Account settings window - Close
     
  15. After a short period of time the shared mailbox will appear in the mail folder list on the left side.
  16. Outlook 2007 - Shared mailbox folder in Navigation pane window
     
  17. If the shared mailbox does not show up properly, quit Outlook 2007 and restart your computer (or log out of Windows and log back in).
     

Sending a mail message

You will be able to send and receive mail messages using the shared mailbox as you would your own mail messages. However, when creating a brand new message, be sure to specify the shared mailbox account as the sender on theFrom: line:
  1. Click the New toolbar button to create a new message.
  2. Select the Options tab and select Show From.
  3. In the From: field of the new message, type in the name of shared mailbox and press tab.
  4. Proceed as normal.

Removing a shared mailbox from view

If you have previously connected to a shared mailbox and no longer want to see it or no longer have proper access to it:
  1. In Outlook 2007, select the Tools menu then Email Accounts...
  2. Select your Exchange account in the list and click Change....
  3. Click More Settings....
  4. Select the Advanced tab.
  5. Select the shared mailbox in the list.
  6. Click Remove and click OK.
  7. Outlook 2007 - Remove shared mailbox window

Tuesday, 24 September 2013

SharePoint 2013 - Creating and Configuring MySite

SharePoint 2013 has many new social media features where people can interact, discuss, search etc etc etc with each other. Creating MySite is not just creating a web application and site collection within it. It has more steps and more concepts revolve around it. In this post I will explain how to create and configure the MySite in SharePoint 2013.

Create Web Application

  1. It is always recommended to have a separate Web Application for MySite. Go to Central Administration and selectManage web Applications.
  2. 2013-01-28-2013CreateConfigMySite-01.png
  3. Select New and create a new web application.
  4. 2013-01-28-2013CreateConfigMySite-02.png
  5. I have created web application http://goazrapp19:2000/.
  6. 2013-01-28-2013CreateConfigMySite-03.png

Create Site Collection

  1. Now create a new site collection under the new Web Application by selecting experience version as 2013 andtemplate as My Site Host.
  2. 2013-01-28-2013CreateConfigMySite-04.png

Configure Web Application that will host MySite

  1. Select the Manage Path button for the MySite's hosting web application
  2. 2013-01-28-2013CreateConfigMySite-05.png
  3. Add new managed path with wild card inclusion and my as path.
  4. 2013-01-28-2013CreateConfigMySite-06.png
  5. Select the Service Connections button
  6. 2013-01-28-2013CreateConfigMySite-07.png
  7. Make sure User Profile Service ApplicationManaged Metadata Service, and Search Service Application are running.
  8. 2013-01-28-2013CreateConfigMySite-08.png
  9. Select the Self Service Site Creation button for the web application
  10. 2013-01-28-2013CreateConfigMySite-08a.png
  11. Select On for Site Collections and Prompt users to create a team site under: for Start a Site. Also provide the managed path created earlier.
  12. 2013-01-28-2013CreateConfigMySite-10.png
  13. Select the Permission Policy button for the web application that will host MySite to grant permissions to the users to create their own MySite
  14. 2013-01-28-2013CreateConfigMySite-11.png
  15.  Select Add Permission Policy Level
  16. 2013-01-28-2013CreateConfigMySite-12.png
  17. Provide the name MySite Creation and under Site Permissions select Create Subsites
  18. 2013-01-28-2013CreateConfigMySite-13.png
    2013-01-28-2013CreateConfigMySite-14.png
  19. Now add users to the newly created policy by selecting the User Policy button for the web application.
  20. 2013-01-28-2013CreateConfigMySite-15.png
  21. Select Add Users
  22. 2013-01-28-2013CreateConfigMySite-16.png
    2013-01-28-2013CreateConfigMySite-17.png
    2013-01-28-2013CreateConfigMySite-18.png
    2013-01-28-2013CreateConfigMySite-19.png

Setup MySites for the Search Center

  1. From Central Admin select Application Management ->  Manage Service Applications (under Service Applications) -> User Profile Service Application
  2. 2013-01-28-2013CreateConfigMySite-20.png
  3. Then select Setup My Sites
  4. 2013-01-28-2013CreateConfigMySite-21.png
  5. Here you specify the Search Center. If you don't have the search center then you can skip this step. I am setting up MySites on a single server farm and am not using Search Center.

Enable the User Profile Service Application - Activity Feed Job

  1. Go to Central Administration -> Monitoring -> Timer Job -> Review job definitions
  2. 2013-01-28-2013CreateConfigMySite-22.png
  3. Look for User Profile Service Application.
    Note: If the Service list does not display User Profile Service, in Service drop down (on right top), click No selection, then click Change Service. On the Select Service Webpage Dialog, use the arrows in the upper-right corner to locateUser Profile Service, and then click it.
  4. 2013-01-28-2013CreateConfigMySite-23.png
    2013-01-28-2013CreateConfigMySite-24.png
  5. Select the interval according to your requirement and click Run Now. I will leave it as Minutes.
  6.  2013-01-28-2013CreateConfigMySite-25.png