Basic Router Configuration
This chapter provides procedures for configuring the basic parameters of your Cisco router, including global parameter settings, routing protocols, interfaces, and command-line access. It also describes the default configuration on startup.
Note Individual router models may not support every feature described throughout this guide. Features not supported by a particular router are indicated whenever possible.
This chapter contains the following sections:Each section includes a configuration example and verification steps, as available.For complete information on how to access global configuration mode, see the "Entering Global Configuration Mode" section in Appendix A, "Cisco IOS Basic Skills." For more information on the commands used in the following tables, see the Cisco IOS Release 12.3 documentation set.Interface Port Labels
Table 1-1 lists the interfaces supported for each router and their associated port labels on the equipment.
Viewing the Default Configuration
When you first boot up your Cisco router, some basic configuration has already been performed. All of the LAN and WAN interfaces have been created, console and VTY ports are configured, and the inside interface for Network Address Translation has been assigned. Use the show running-config command to view the initial configuration, as shown in Example 1-1.Example 1-1 Cisco 851 Default Configuration on StartupRouter# show running-config
Building configuration...Current configuration : 1090 bytes!version 12.3no service padservice timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname Router!boot-start-markerboot-end-marker!no aaa new-modelip subnet-zero!ip cefip ips po max-events 100no ftp-server write-enable!interface FastEthernet0no ip addressshutdown!interface FastEthernet1no ip addressshutdown!interface FastEthernet2no ip addressshutdown!interface FastEthernet3no ip addressshutdown!interface FastEthernet4no ip addressduplex autospeed auto!interface Dot11Radio0no ip addressshutdownspeed basic-1.0 basic-2.0 basic-5.5 6.0 9.0 basic-11.0 12.0 18.0 24.0 36.0 48.054.0rts threshold 2312station-role root!interface Vlan1no ip address!ip classless!no ip http serverno ip http secure-server!control-plane!line con 0no modem enabletransport preferred alltransport output allline aux 0transport preferred alltransport output allline vty 0 4logintransport preferred alltransport input alltransport output all!endInformation Needed for Configuration
You need to gather some or all of the following information, depending on your planned network scenario, prior to configuring your network•If you are setting up an Internet connection, gather the following information:– Point-to-Point Protocol (PPP) client name that is assigned as your login name–PPP authentication type: Challenge Handshake Authentication Protocol (CHAP) or Password Authentication Protocol (PAP)–PPP password to access your Internet service provider (ISP) account–DNS server IP address and default gateways•If you are setting up a connection to a corporate network, you and the network administrator must generate and share the following information for the WAN interfaces of the routers:–PPP authentication type: CHAP or PAP–PPP client name to access the router–PPP password to access the router•If you are setting up IP routing:–Generate the addressing scheme for your IP network.–Determine the IP routing parameter information, including IP address, and ATM permanent virtual circuits (PVCs). These PVC parameters are typically virtual path identifier (VPI), virtual circuit identifier (VCI), and traffic shaping parameters.–Determine the number of PVCs that your service provider has given you, along with their VPIs and VCIs.–For each PVC determine the type of AAL5 encapsulation supported. It can be one of the following:AAL5SNAP—This can be either routed RFC 1483 or bridged RFC 1483. For routed RFC 1483, the service provider must provide you with a static IP address. For bridged RFC 1483, you may use DHCP to obtain your IP address, or you may obtain a static IP address from your service provider.AAL5MUX PPP—With this type of encapsulation, you need to determine the PPP-related configuration items.•If you plan to connect over an ADSL or G.SHDSL line:–Order the appropriate line from your public telephone service provider.For ADSL lines—Ensure that the ADSL signaling type is DMT (also called ANSI T1.413) or DMT Issue 2.For G.SHDSL lines—Verify that the G.SHDSL line conforms to the ITU G.991.2 standard and supports Annex A (North America) or Annex B (Europe).Once you have collected the appropriate information, you can perform a full configuration on your router, beginning with the tasks in the "Configuring Basic Parameters" section.Configuring Basic Parameters
To configure the router, perform one or more of these tasks:A configuration example is presented with each task to show the network configuration following completion of that task.Configure Global Parameters
Perform these steps to configure selected global parameters for your router:For complete information on the global parameter commands, see the Cisco IOS Release 12.3 documentation set.Configure Fast Ethernet LAN Interfaces
The Fast Ethernet LAN interfaces on your router are automatically configured as part of the default VLAN and as such, they are not configured with individual addresses. Access is afforded through the VLAN. You may assign the interfaces to other VLANs if desired. For more information about creating VLANs, see Chapter 5 "Configuring a LAN with DHCP and VLANs."Configure WAN Interfaces
The Cisco 851 and Cisco 871 routers each have one Fast Ethernet interface for WAN connection. The Cisco 857, Cisco 877, and Cisco 878 routers each have one ATM interface for WAN connection.Based on the router model you have, configure the WAN interface(s) using one of the following procedures:Configure the Fast Ethernet WAN Interface
This procedure applies only to the Cisco 851 and Cisco 871 router models. Perform these steps to configure the Fast Ethernet interface, beginning in global configuration mode:Configure the ATM WAN Interface
This procedure applies only to the Cisco 857, Cisco 876, Cisco 877 and Cisco 878 models.Perform these steps to configure the ATM interface, beginning in global configuration mode:Configure the Wireless Interface
The wireless interface enables connection to the router through a wireless LAN connection. For more information about configuring a wireless connection, see Chapter 9 "Configuring a Wireless LAN Connection," and the Cisco Access Router Wireless Configuration Guide.Configuring a Loopback Interface
The loopback interface acts as a placeholder for the static IP address and provides default routing information.For complete information on the loopback commands, see the Cisco IOS Release 12.3 documentation set.Perform these steps to configure a loopback interface:Configuration Example
The loopback interface in this sample configuration is used to support Network Address Translation (NAT) on the virtual-template interface. This configuration example shows the loopback interface configured on the Fast Ethernet interface with an IP address of 10.10.10.100/24, which acts as a static IP address. The loopback interface points back to virtual-template1, which has a negotiated IP address.!interface loopback 0ip address 10.10.10.100 255.255.255.0 (static IP address)
ip nat outside!interface Virtual-Template1ip unnumbered loopback0no ip directed-broadcastip nat outside!Verifying Your Configuration
To verify that you have properly configured the loopback interface, enter the show interface loopback command. You should see verification output similar to the following example.Router# show interface loopback 0
Loopback0 is up, line protocol is upHardware is LoopbackInternet address is 10.10.10.100/24MTU 1514 bytes, BW 8000000 Kbit, DLY 5000 usec,reliability 255/255, txload 1/255, rxload 1/255Encapsulation LOOPBACK, loopback not setLast input never, output never, output hang neverLast clearing of "show interface" counters neverQueueing strategy: fifoOutput queue 0/0, 0 drops; input queue 0/75, 0 drops5 minute input rate 0 bits/sec, 0 packets/sec5 minute output rate 0 bits/sec, 0 packets/sec0 packets input, 0 bytes, 0 no bufferReceived 0 broadcasts, 0 runts, 0 giants, 0 throttles0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort0 packets output, 0 bytes, 0 underruns0 output errors, 0 collisions, 0 interface resets0 output buffer failures, 0 output buffers swapped outAnother way to verify the loopback interface is to ping it:Router# ping 10.10.10.100
Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.10.10.100, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 msConfiguring Command-Line Access to the Router
Perform these steps to configure parameters to control access to the router, beginning in global configuration mode.For complete information about the command line commands, see the Cisco IOS Release 12.3 documentation set.Configuration Example
The following configuration shows the command-line access commands.You do not need to input the commands marked "default." These commands appear automatically in the configuration file generated when you use the show running-config command.!line con 0exec-timeout 10 0password 4youreyesonlylogintransport input none (default)stopbits 1 (default)line vty 0 4password secretlogin!Configuring Static Routes
Static routes provide fixed routing paths through the network. They are manually configured on the router. If the network topology changes, the static route must be updated with a new route. Static routes are private routes unless they are redistributed by a routing protocol. Configuring static routes on the Cisco 850 and Cisco 870 series routers is optional.Perform these steps to configure static routes, beginning in global configuration mode:
Command Purpose Step 1 ip route prefix mask {ip-address | interface-type interface-number [ip-address]}Example:Router(config)# ip route 192.168.1.0 255.255.0.0 10.10.10.2
Router(config)# Specifies the static route for the IP packets.For details about this command and additional parameters that can be set, see the Cisco IOS IP Command Reference, Volume 2 of 4: Routing Protocols. Step 2 endExample:Router(config)# end
Router# Exits router configuration mode, and enters privileged EXEC mode.For complete information on the static routing commands, see the Cisco IOS Release 12.3 documentation set. For more general information on static routing, see "Concepts."Configuration Example
In the following configuration example, the static route sends out all IP packets with a destination IP address of 192.168.1.0 and a subnet mask of 255.255.255.0 on the Fast Ethernet interface to another device with an IP address of 10.10.10.2. Specifically, the packets are sent to the configured PVC.You do not need to enter the commands marked "(default)." These commands appear automatically in the configuration file generated when you use the show running-config command.!ip classless (default)
ip route 192.168.1.0 255.255.255.0 10.10.10.2!Verifying Your Configuration
To verify that you have properly configured static routing, enter the show ip route command and look for static routes signified by the "S."You should see verification output similar to the following example.Router# show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is not set10.0.0.0/24 is subnetted, 1 subnetsC 10.108.1.0 is directly connected, Loopback0S* 0.0.0.0/0 is directly connected, FastEthernet0Configuring Dynamic Routes
In dynamic routing, the network protocol adjusts the path automatically, based on network traffic or topology. Changes in dynamic routes are shared with other routers in the network.The Cisco routers can use IP routing protocols, such as Routing Information Protocol (RIP) or Enhanced Interior Gateway Routing Protocol (EIGRP), to learn routes dynamically. You can configure either of these routing protocols on your router.Configuring RIP
Perform these steps to configure the RIP routing protocol on the router, beginning in global configuration mode:For complete information on the dynamic routing commands, see the Cisco IOS Release 12.3 documentation set. For more general information on RIP, see "Concepts."Configuration Example
The following configuration example shows RIP version 2 enabled in IP network 10.0.0.0 and 192.168.1.0.Execute the show running-config command from privileged EXEC mode to see this configuration.!router ripversion 2network 10.0.0.0network 192.168.1.0no auto-summary!Verifying Your Configuration
To verify that you have properly configured RIP, enter the show ip route command and look for RIP routes signified by "R." You should see a verification output like the example shown below.Router# show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is not set10.0.0.0/24 is subnetted, 1 subnetsC 10.108.1.0 is directly connected, Loopback0R 3.0.0.0/8 [120/1] via 2.2.2.1, 00:00:02, Ethernet0/0Configuring Enhanced IGRP
Perform these steps to configure Enhanced IGRP (EIGRP), beginning in global configuration mode:For complete information on the IP EIGRP commands, see the Cisco IOS Release 12.3 documentation set. For more general information on EIGRP concepts, see "Concepts."Configuration Example
The following configuration example shows the EIGRP routing protocol enabled in IP networks 192.145.1.0 and 10.10.12.115. The EIGRP autonomous system number is 109.Execute the show running-config command from privileged EXEC mode to see this configuration.!router eigrp 109network 192.145.1.0network 10.10.12.115!Verifying Your Configuration
To verify that you have properly configured IP EIGRP, enter the show ip route command, and look for EIGRP routes indicated by "D." You should see verification output similar to the following example.Router# show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is not set10.0.0.0/24 is subnetted, 1 subnetsC 10.108.1.0 is directly connected, Loopback0D 3.0.0.0/8 [90/409600] via 2.2.2.1, 00:00:02, Ethernet0/0
Wednesday, 7 August 2013
Basic Router Configuration cisco
Subscribe to:
Post Comments (Atom)