Vous êtes sur la page 1sur 7

Liberties College Initial Router Configuration for use with 5 Router Lab Simulator

This configuration is complete for LAB_A and NEEDS TO BE MODIFIED WHERE APPROPRIATE for the particular router you are working on (different IPs for LAB_B, C, D, E; some of the routers dont use all the interfaceerfaces, etc.). Although you dont need to exit and perform a copy run start after every group of commands, it seems easier to understand (and remember!) in sections. These are global configurations Router>enable Router#configure terminal Routrer(config)# hostname LAB_A LAB_A(config)# enable secret class LAB_A(config)# enable password cisco LAB_A(config) #exit LAB_A# copy run start LAB_A# exit Configure each individual router interfaceerface; start with Ethernet 0 LAB_A>enable Password: class LAB_A#configure terminal LAB_A(config)# interface ethernet 0 LAB_A(config-if)# ip address 192.5.5.1 255.255.255.0 LAB_A(config-if)# no shutdown LAB_A(config-if)# exit LAB_A(config)# exit LAB_A# copy run start Next configure interfaceerface Ethernet 1 LAB_A# configure terminal LAB_A(config)# interface ethernet 1 LAB_A(config-if) ip address 205.7.5.1 255.255.255.0 LAB_A(config-if)# no shutdown LAB_A(config-if)# exit LAB_A(config)# exit LAB_A# copy run start Then configure interfaceerface serial 0 where the DCE cable is attached dont forget to set the clock rate! LAB_A# configure terminal LAB_A(config)# interface serial 0 LAB_A(config-if)# ip address 201.100.11.1 255.255.255.0 LAB_A(comfig-if)# no shutdown LAB_A(config-if)# clock rate 56000 LAB_A(config-if)# exit LAB_A(config)# exit LAB_A# copy run start

Next configure interfaceerface serial 1 where we attach the DTE cable LAB_A# configure terminal LAB_A(config)# interface serial 1 LAB_A(config-if)# no shutdown LAB_A(config)# exit LAB_A# copy run start Configure the routing protocol RIP only designate the network(s) that our router directly touches. LAB_A# configure terminal LAB_A(config)# router rip LAB_A(config-router)# network 192.5.5.0 LAB_A(config-router)# network 205.7.5.0 LAB_A(config-router)# network 201.100.11.0 LAB_A(config-router)# exit LAB_A# copy run start This is a convenience a name service of sorts that maps the host name to each of its interfaceerface IP addresses. LAB_A# configure terminal LAB_A(config)# ip host LAB_A 201.100.11.1 192.5.5.1 205.7.5.1 LAB_A(config)# ip host LAB_B 201.100.11.2 219.17.100.1 199.6.13.1 LAB_A(config)# ip host LAB_C 204.204.7.1 223.8.151.1 199.6.13.2 LAB_A(config)# ip host LAB_D 204.204.7.2 210.93.105.1 LAB_A(config)# ip host LAB_E 210.93.105.2 LAB_A(config)# exit LAB_A# copy run start Here we are directly configuring the lines through which a person enters the router the first is the direct console line, the second is the virtual, or telnet, the line(s), 0 4 LAB_A# configure terminal LAB_A(config)# line console 0 LAB_A(config-line)# login LAB_A(config-line)# password cisco LAB_A(config-line)# exit LAB_A(config)# exit LAB_A# configure terminal LAB_A(config-line)# line vty 0 4 LAB_A(config-line)# login LAB_A(config-line)# password cisco LAB_A(config-line)# exit LAB_A(config)# exit LAB_A# copy run start Now ping all interfaceerfaces; issue the command show ip route to see all your networks!

Cisco Router Configuration Tutorial


Cisco Interfaceer-network Operating System: Cisco IOS Modes of Operation
The Cisco IOS software provides access to several different command modes. Each command mode provides a different group of related commands. For security purposes, the Cisco IOS software provides two levels of access to commands: user and privileged. The unprivileged user mode is called user EXEC mode. The privileged mode is called privileged EXEC mode and requires a password. The commands available in user EXEC mode are a subset of the commands available in privileged EXEC mode. The following table describes some of the most commonly used modes, how to enter the modes, and the resulting prompts. The prompt helps you identify which mode you are in and, therefore, which commands are available to you Mode of Usage How to Enter the Prompt Operation Mode User EXEC Change terminal settings First level accessed. Router> on a temporary basis, perform basic tests, and list system information. Privileged EXEC Global Config System administration, set operating parameters. Modify configuration that affect the system as a whole. Modify the operation of an interfaceerface. Create the initial configuration. From user EXEC mode, enter enable password command From privileged EXEC, enter configure terminal. From global mode, enter interfaceerface type number. From privileged EXEC mode, enter command setup. Router# Router(config )# Router(config -if)# Prompted dialog

Interfaceerfac e Config Setup

User EXEC Mode: When you are connected to the router, you are started in user EXEC mode. The user EXEC commands are a subset of the privileged EXEC commands. Privileged EXEC Mode: Privileged commands include the following: 1 Configure Changes the software configuration. 2 Debug Display process and hardware event messages. 3 Setup Enter configuration information at the prompts.

Enter the command disable to exit from the privileged EXEC mode and return to user EXEC mode. Configuration Mode Configuration mode has a set of submodes that you use for modifying interfaceerface settings, routing protocol settings, line settings, and so forth. Use caution with configuration mode because all changes you enter take effect immediately. To enter configuration mode, enter the command configure terminal and exit by pressing Ctrl-Z. Note: Almost every configuration command also has a no form. In general, use the no form to disable a feature or function. Use the command without the keyword no to re-enable a disabled feature or to enable a feature that is disabled by default. For example, IP routing is enabled by default. To disable IP routing, enter the no ip routing command and enter ip routing to re-enable it.

Getting Help

In any command mode, you can get a list of available commands by entering a question mark (?). Router>? To obtain a list of commands that begin with a particular character sequence, type in those characters followed immediately by the question mark (?). Router#co? configure connect copy To list keywords or arguments, enter a question mark in place of a keyword or argument. Include a space before the question mark. Router#configure ? memory Configure from NV memory network Configure from a TFTP network host terminal Configure from the terminal You can also abbreviate commands and keywords by entering just enough characters to make the command unique from other commands. For example, you can abbreviate the show command to sh.

Configuration Files

Any time you make changes to the router configuration, you must save the changes to memory because if you do not they will be lost if there is a system reload or power outage. There are two types of configuration files: the running (current operating) configuration and the startup configuration. Use the following privileged mode commands to work with configuration files.

1 2 3 4 5 6 7

configure terminal modify the running configuration manually from the terminal. show running-config display the running configuration. show startup-config display the startup configuration. copy running-config startup-config copy the running configuration to the startup configuration. copy startup-config running-config copy the startup configuration to the running configuration. erase startup-config erase the startup-configuration in NVRAM. copy tftp running-config load a configuration file stored on a Trivial File Transfer Protocol (TFTP) server interfaceo the running configuration. copy running-configure terminalftp store the running configuration on a TFTP server.

IP Address Configuration
Take the following steps to configure the IP address of an interfaceerface. Step 1: Enter privileged EXEC mode: Router>enable password Step 2: Enter the configure terminal command to enter global configuration mode. Router#configure terminalerminal Step 3: Enter the interfaceerface type slot/port (for Cisco 7000 series) or interfaceerface type port (for Cisco 2500 series) to enter the interfaceerface configuration mode. Example: Router (config)#interfaceerface ethernet 0/1 Step 4: Enter the IP address and subnet mask of the interfaceerface using the ip address ipaddress subnetmask command. Example, Router (config-if)#ip address 192.168.10.1 255.255.255.0 Step 5: Exit the configuration mode by pressing Ctrl-Z Router(config-if)#[Ctrl-Z]

Routing Protocol Configuration Routing Information Protocol (RIP)


Step 1: Enter privileged EXEC mode: Router>enable password

Step 2: Enter the configure terminal command to enter global configuration mode. Router#configure terminalerminal Step 3: Enter the router rip command Router(config)#router rip Step 4: Add the network number to use RIP and repeat this step for all the numbers. Router(config-router)#network network-number Example: Router(config-router)#network 192.168.10.0 Note: To turn off RIP, use the no router rip command. Router(config)#no router rip Other useful commands 1 Specify a RIP Version By default, the software receives RIP version 1 and version 2 packets, but sends only version 1 packets. To control which RIP version an interfaceerface sends, use one of the following commands in interfaceerface configuration mode: Command Purpose ip rip send Configure an interfaceerface to send only version 1 RIP version 1 packets. ip rip send Configure an interfaceerface to send only version 2 RIP version 2 packets. ip rip send Configure an interfaceerface to send only version 1 2 RIP version 1 and version 2 packets. To control how packets received from an interfaceerface are processed, use one of the following commands: Command ip rip receive version 1 ip rip receive version 2 ip rip receive version 1 2 1 Purpose Configure an interfaceerface to accept only RIP version 1 packets. Configure an interfaceerface to accept only RIP version 2 packets Configure an interfaceerface to accept only RIP version 1 or 2 packets.

Enable or Disable Split Horizon

Use one of the following commands in interfaceerface configuration mode: Command ip split-horizon Purpose Enable split horizon.

no ip splithorizon

Disable split horizon.

Interfaceerior Gateway Routing Protocol (IGRP)


1 Create the IGRP Routing Process To create the IGRP routing process, use the following required commands starting in global configuration mode. Ste p 1 2 1 Command router igrp autonomoussystem network networknumber Purpose Enable an IGRP routing process, which place you in router configuration mode. Associate networks with an IGRP routing process.

Disable Holddown

The holddown mechanism is used to help avoid routing loop in the network, but has the effect of increasing the topology convergence time. To disable holddowns with IGRP, use the following command in router configuration mode. All devices in an IGRP autonomous system must be consistent in their use of holddowns. Command Purpose No metric Disable the IGRP holddown holddown period. 1 Enforce a Maximum Network Diameter

Define a maximum diameter to the IGRP network. Routes whose hop counts exceed this diameter are not advertised. The default maximum diameter is 100 hops. The maximum diameter is 255 hops. Use the following command in router configuration mode. Command Purpose metric maximum-hops Configure the maximum network hops diameter. 1 To turn off IGRP, use the following command. Router(config)#no router igrp autonomous-system

Vous aimerez peut-être aussi