CONFIGURING  A ROUTER       TS, PHẠM VĂN TÍNH PART8
Objective Name a router  Set passwords  Examine show commands  Configure a serial interface  Configure an Ethernet interface  Execute changes to a router  Save changes to a router  Configure an interface description  Configure a message-of-the-day banner  Configure host tables  Understand the importance of backups and documentation
Global Configuration Mode  All command-line interface (CLI) configuration changes to a Cisco router are made from the global configuration mode. For Examples: Interface mode  Line mode  Router mode  Subinterface mode  Controller mode  Router# configure terminal Router(config)#   exit  : Returns the router to global configuration mode from one of these specific configuration modes  Ctrl-Z  : Returns the router to privileged EXEC mode
Overview of Router Modes
Configuring a router name Router(config)# hostname  Tokyo Tokyo(config)#
Configuring router passwords   enable secret  <password>
Examining the show commands   show interfaces  – Displays all the statistics for all the interfaces on the router. For example: Router#show interfaces serial 0/1 show controllers serial  – Displays information-specific to the interface hardware  show version  – Displays information about the router and the IOS that is running in RAM  show protocol  – Displays the global and interface specific status of any configured Layer 3 protocols  show startup-config  – Displays the saved configuration located in NVRAM  show running-config  – Displays the configuration currently running in RAM
Examining the show commands   show clock  – Shows the time set in the router  show hosts  – Displays a cached list of host names and addresses  show users  – Displays all users who are connected to the router  show history  – Displays a history of commands that have been entered  show flash  – Displays information about flash memory and what IOS files are stored there  show ARP  – Displays the ARP table of the router
Configuring a serial interface   Enter global configuration mode  Enter interface mode  Specify the interface address and subnet mask  Set clock rate if a DCE cable is connected. Skip this step if a DTE cable is connected.  Turn on the interface  Router(config)# interface  serial 0/0 Router(config-if)# ip address   < ip address > < netmask >  Router(config-if)# clock rate  < clock rates > The available clock rates in bits per second are: 1200, 2400, 9600, 19200, 38400, 56000, 64000, 72000, 125000, 148000, 500000, 800000, 1000000, 1300000, 2000000, or 4000000.
Interface Configuration Commands
Serial Interface Configuration Example Router# configure  terminal Router(config)# interface  serial 0/0 Router(config-if)# ip address  192.168.1.1  255.255.255.0 Router(config-if)# clock rate  56000 Router(config-if)# no shutdown Router(config-if)# exit
Executing adds, moves, and changes
Configuring an Ethernet interface   Enter global configuration mode  Enter interface configuration mode  Specify the interface address and subnet mask  Enable the interface  Router# configure  terminal Router(config)# interface  e0 Router(config-if)# ip address  192.168.1.1    255.255.255.0 Router(config-if)# no shutdown Router(config-if)# exit
Configuring interface description   Enter global configuration mode by entering the command  configure  terminal .  Enter specific interface mode (for example interface Ethernet 0)  interface  ethernet 0 .  Enter the command  description  followed by the information that is to be displayed. For example,  XYZ Network, Building 18 .  Exit interface mode back to privileged EXEC mode by using the command  ctrl-Z .  Save the configuration changes to NVRAM by using the command  copy   running-config startup-config .
Configuring interface description
Configuring message-of-the-day (MOTD)   Enter global configuration mode by using the command  configure   terminal .  Enter the command  banner   motd #   The message of the day goes here   # .  Save changes by issuing the command  copy   running-config startup-config .
Configuring message-of-the-day (MOTD)
Host name resolution   to associate a host name with an IP address.  A list of host names and their associated IP addresses is called a host table.  Host names, unlike DNS names, are significant only on the router on which they are configured.
Configuring host tables   Enter global configuration mode in the router.  Enter the command ip host followed by the name of the router and all IP addresses associated with the interfaces on each router.  Continue entering until all routers in the network are entered.  Save the configuration to NVRAM.
Copying, editing, and pasting configurations   A current copy of the configuration can be stored on a TFTP server. The copy running-config tftp command: Step 1 : Enter the  copy   running-config   tftp  command. Step 2 : Enter the  IP address  of the host where the configuration file will be stored. Step 3 : Enter the  name  to assign to the configuration file. Step 4 : Confirm the choices by answering yes each time.
Store Configuration on a TFTP
Restore Configuration from a TFTP
Working with release 11.x
Working with pre-Release 11.0
Summary   The router has several modes:   User EXEC mode  Privileged EXEC mode  Global configuration mode  Other configuration modes  The command-line interface may be used to make changes to the configuration:   Setting the hostname  Setting passwords  Configuring interfaces  Modifying configurations  Showing configurations  Setting the Interface descriptions  Setting the Login banners and messages-of-the-day

Chapter 04 - Router Conf

  • 1.
    CONFIGURING AROUTER TS, PHẠM VĂN TÍNH PART8
  • 2.
    Objective Name arouter Set passwords Examine show commands Configure a serial interface Configure an Ethernet interface Execute changes to a router Save changes to a router Configure an interface description Configure a message-of-the-day banner Configure host tables Understand the importance of backups and documentation
  • 3.
    Global Configuration Mode All command-line interface (CLI) configuration changes to a Cisco router are made from the global configuration mode. For Examples: Interface mode Line mode Router mode Subinterface mode Controller mode Router# configure terminal Router(config)# exit : Returns the router to global configuration mode from one of these specific configuration modes Ctrl-Z : Returns the router to privileged EXEC mode
  • 4.
  • 5.
    Configuring a routername Router(config)# hostname Tokyo Tokyo(config)#
  • 6.
    Configuring router passwords enable secret <password>
  • 7.
    Examining the showcommands show interfaces – Displays all the statistics for all the interfaces on the router. For example: Router#show interfaces serial 0/1 show controllers serial – Displays information-specific to the interface hardware show version – Displays information about the router and the IOS that is running in RAM show protocol – Displays the global and interface specific status of any configured Layer 3 protocols show startup-config – Displays the saved configuration located in NVRAM show running-config – Displays the configuration currently running in RAM
  • 8.
    Examining the showcommands show clock – Shows the time set in the router show hosts – Displays a cached list of host names and addresses show users – Displays all users who are connected to the router show history – Displays a history of commands that have been entered show flash – Displays information about flash memory and what IOS files are stored there show ARP – Displays the ARP table of the router
  • 9.
    Configuring a serialinterface Enter global configuration mode Enter interface mode Specify the interface address and subnet mask Set clock rate if a DCE cable is connected. Skip this step if a DTE cable is connected. Turn on the interface Router(config)# interface serial 0/0 Router(config-if)# ip address < ip address > < netmask > Router(config-if)# clock rate < clock rates > The available clock rates in bits per second are: 1200, 2400, 9600, 19200, 38400, 56000, 64000, 72000, 125000, 148000, 500000, 800000, 1000000, 1300000, 2000000, or 4000000.
  • 10.
  • 11.
    Serial Interface ConfigurationExample Router# configure terminal Router(config)# interface serial 0/0 Router(config-if)# ip address 192.168.1.1 255.255.255.0 Router(config-if)# clock rate 56000 Router(config-if)# no shutdown Router(config-if)# exit
  • 12.
  • 13.
    Configuring an Ethernetinterface Enter global configuration mode Enter interface configuration mode Specify the interface address and subnet mask Enable the interface Router# configure terminal Router(config)# interface e0 Router(config-if)# ip address 192.168.1.1 255.255.255.0 Router(config-if)# no shutdown Router(config-if)# exit
  • 14.
    Configuring interface description Enter global configuration mode by entering the command configure terminal . Enter specific interface mode (for example interface Ethernet 0) interface ethernet 0 . Enter the command description followed by the information that is to be displayed. For example, XYZ Network, Building 18 . Exit interface mode back to privileged EXEC mode by using the command ctrl-Z . Save the configuration changes to NVRAM by using the command copy running-config startup-config .
  • 15.
  • 16.
    Configuring message-of-the-day (MOTD) Enter global configuration mode by using the command configure terminal . Enter the command banner motd # The message of the day goes here # . Save changes by issuing the command copy running-config startup-config .
  • 17.
  • 18.
    Host name resolution to associate a host name with an IP address. A list of host names and their associated IP addresses is called a host table. Host names, unlike DNS names, are significant only on the router on which they are configured.
  • 19.
    Configuring host tables Enter global configuration mode in the router. Enter the command ip host followed by the name of the router and all IP addresses associated with the interfaces on each router. Continue entering until all routers in the network are entered. Save the configuration to NVRAM.
  • 20.
    Copying, editing, andpasting configurations A current copy of the configuration can be stored on a TFTP server. The copy running-config tftp command: Step 1 : Enter the copy running-config tftp command. Step 2 : Enter the IP address of the host where the configuration file will be stored. Step 3 : Enter the name to assign to the configuration file. Step 4 : Confirm the choices by answering yes each time.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
    Summary The router has several modes: User EXEC mode Privileged EXEC mode Global configuration mode Other configuration modes The command-line interface may be used to make changes to the configuration: Setting the hostname Setting passwords Configuring interfaces Modifying configurations Showing configurations Setting the Interface descriptions Setting the Login banners and messages-of-the-day