Router Configuration - Steps to Success

The commands listed below are to assist you in setting up your router. The commands are only examples and do not reflect the configuration of any actual network. Your actual commands, ip addresses, network addresses, passwords, etc., will depend upon your network design.

Step 1: Physical Connections Connect all of the interfaces including: • Console: Connect your PC/terminal to the console port via HyperTerminal (9600-8-N-1-no flow) • Ethernet: Connect Ethernet ports to a hub or a switch using a straight-through cable. Use a crossover cable if going directly between Ethernet ports on two routers. • Serial: If going directly between two routers, don’t forget to connect one port via the DTE cable and the other via the DCE cable. Step 2: Boot up the router You may use the setup mode (setup dialogue) but this is to help you with configuring the router using the Cisco IOS commands. The setup mode will only allow you to configure the router with the basic features and not with any advanced features. Step 3: Host Name and Passwords It is a good idea to begin your configuration with the hostname and passwords. This will remind you what router you are configuring and it is also a good idea to add the security of passwords right away. Router(config)# hostname Cabrillo Cabrillo(config)# enable secret cisco Cabrillo(config)# line vty 0 4 {If you are running EFS, you may increase the number of telnet sessions to more than 5.} Cabrillo(config-line)# login Cabrillo(config-line)# password class Cabrillo(config-line)# logging synchronous {debug and other messages will not mess up screen when inputting commands.} Cabrillo(config)# line con 0 Cabrillo(config-line)# login Cabrillo(config-line)# password class Cabrillo(config-line)# logging synchronous Cabrillo(config-line)# exec-timeout 0 0


15.1 255.0. not the subnet address of the network! Cabrillo(config)# router rip Cabrillo(config-router)# network 192.255.a.168. Only use the classful network address. Don’t forget to use the proper subnet mask! For Serial interface with the DCE cable you will need to also add the clocking with the clock rate command.0 Cabrillo(config-if)# clock rate 56000 {DCE interface only!} Cabrillo(config-if)# no shutdown Cabrillo(config-if)# description Network to Monterey OPTIONAL COMMANDS: Cabrillo(config-if)# no ip split-horizon Cabrillo(config-if)# ip rip receive version 1 2 Step 5: Adding Dynamic Routing If this router will be participating in a dynamic routing protocol like RIP or EIGRP.0.0 {NOT Subnet Address} Cabrillo(config-router)# network 10. Cabrillo(config)# interface ethernet 0 Cabrillo(config-if)# ip address 192.1.255. process-id} Cabrillo(config-router)# network network-address {NOT Subnet Address} Cabrillo(config-router)# network network-address {NOT Subnet Address} OPTIONAL COMMANDS FOR EIGRP: Cabrillo(config-router)# timers basic 90 270 280 630 (updte invalid hlddwn flush) Cabrillo(config-router)# metric weight tos k1 k2 k3 k4 k5 Unequal-cost load balancing example: Cabrillo(config)# int so Cabrillo(config-interface)# bandwidth 56 (sh interface) Cabrillo(config-interface)# no ip route-cache (sh ip interface) Cabrillo(config-interface)# int s1 Cabrillo(config-interface)# bandwidth 384 Cabrillo(config-interface)# no ip route-cache Cabrillo(config-interface)# router Eigrp 36 2 . table looks up the first packet only & stores the result in high-speed cache ( sh ip cache)) Cabrillo(config-interface)# no ip route-cache ( per-packet (process-switching)) Cabrillo(config)# router Eigrp 10 {autonoumous-system a.k. Below is an example of configuring both an Ethernet and Serial interface. up to 6) Cabrillo(config-interface)# ip route-cache (per-destination (fast forward) = on by default.(So your sessions doesn’t time out) Step 4: Adding IP Addresses Next lets add the IP addresses.default:4. as this is a basic function of configuring routers.16.168.0 Cabrillo(config-if)# description Engineering Network Cabrillo(config-if)# no shutdown Cabrillo(config)# interface serial 0 Cabrillo(config-if)# ip address 10. you will need to enable the routing protocol along with those directly connected networks that will be participating.1 255.0 {NOT Subnet Address} OPTIONAL COMMANDS FOR RIP: Cabrillo(config-router)# version 2 Cabrillo(config-router)# timers basic 30 180 180 240 (updte invalid hlddwn flush) Cabrillo(config-router)# update timer 40 Equal-cost load balancing example: Cabrillo(config-router)# maximum-paths 5 (equal-cost load balancing.255.15.255.

0 255.0. Also need a default route at the router. This may force a recursive lookup. Either one.2 (ip-address-of-next-hop-router) (in the routing table the default static route appears as: S*0.0. Caution: This will cause the debug output to go to all telnet sessions on this router. Can use for RIP. Works also with RIP} Cabrillo(config)# ip route 172.0. but does not work with EIGRP. Cabrillo# show ip route Cabrillo# show ip interface brief (Great command) Cabrillo# show controller serial0 {Shows whether or not the serial cable is DCE or DTE.0 {Adding a default route using the ip default-network command.0/0) Cabrillo(config)# router rip Cabrillo(config-router)# network 10. lowest BW speed x the variance equals the metric amount used for load balancing) Variance of 1 disables unequal-cost load balance.1. Cabrillo(config)#redistribute static (Use if the interface is not defined in a network command) Step 7: Testing and Monitoring At this point it is a good idea to start testing your network using various commands. 10.16. This is the only option with EIGRP. Step 6: Adding Default and Static Routes If your router needs a default route (normally on a boundary router) or a static route to another network (normally to a stub network which is not participating in the dynamic routing protocol of Step 5). otherwise debug output will go to the console. not both of these commands.0 Cabrillo(config-router)# default-information originate {IOS 12.0.} Be familiar with when you would use these and what they are showing you: Cabrillo# show ip protocols Cabrillo# show version Cabrillo# show flash Cabrillo# show running config Cabrillo# show startup-config Cabrillo# show protocol Cabrillo# show ip protocols Cabrillo# show interface Cabrillo# show interface s0 3 . however the AD is still 1.1.2 {Configuring a static route: network-address subnet-mask ip-address-of-next-hop-router/your exit interface} Using the ip-address-of-the-next hop-router will show an AD of 1 and a metric/cost of 0.} Cabrillo# terminal no monitor {To un-do the command above.Cabrillo(config-router)# variance 10 (enables unequal-cost load balancing. then you will need to configure these.1.} Cabrillo(config)# ip default-network 10. Cabrillo(config)# ip route 0.0.0 0. Using the exit interface will show as “directly connected”.16.} Cabrillo# ping ip-address ( Extended ping.0.0.1 and later you must use this command when configuring a default route using a “quadzero” static route. press return) Cabrillo# traceroute ip-address Cabrillo# show arp (shows the arp table) Cabrillo# erase star (erase the startup configuration) Cabrillo# clear ip route * (refresh the routing table) Cabrillo# debug ip rip {Remember to turn debug off when done. undebug all} Cabrillo# terminal monitor {If using debug from a telnet session. 10.

1{Mapping names and IP addresses.1. Cabrillo# show history 4 .1.16.) Cabrillo(config)# ip http server (turn on web access) Cabrillo(config)# ip classless ( on by default .0 Cabrillo# show run | begin rip Cabrillo# debug ip routing Cabrillo# debug ip rip Step 8: Finishing up Once everything is working you may wish to add some commands to make your work easier.30. Control-E: Moves to the end of the command line. Control-B: Move back one character.1.Cabrillo# show interface e0 Cabrillo# show controller s0 Cabrillo# show controller e0 Cabrillo# show ip interface brief Cabrillo# show cdp interface Cabrillo# show cdp neighbor Cabrillo# show cdp neighbor detail Cabrillo# show ip route Cabrillo# show version Cabrillo# show flash Cabrillo# show ip route 172.) Cabrillo(config)# ip name-server ip-address {Adding a name server. Esc-B: Moves back one word.ignore classful boundaries: stop router from dropping packets) Cabrillo# show running-config Cabrillo# copy running-config startup-config Miscellaneous Cabrillo# ? {This command can be used by itself or following at the end of any partial command line.} Cabrillo> enable Cabrillo# disable Cabrillo# configure terminal Cabrillo(config)# exit Cabrillo(config-if)# control-z Cabrillo# clock set hh:mm:ss day month year Editing Commands Control-A: Moves to the beginning of the command line.30. Control F: Moves forward one character. Esc F: Moves forward one word.} Cabrillo(config)# no ip domain-lookup {When there is no domain server.2 172. Cabrillo(config)# ip host Monterey 10. Control N or down arrow key: Recalls most recent command Tab key: completes the entry.} Cabrillo(config)# banner motd # This is the Cabrillo Router # Cabrillo(config-router)# passive-interface e1 {When you do no want to advertise routing tables out of a specific interface. Command History Commands Control P or up arrow key: Recalls last (previous command.

Cabrillo# terminal history Cabrillo# terminal editing Cabrillo# no terminal editing II. which may help you troubleshoot the router. Many of the commands might be used while you are speaking with a Tech Support Engineer.111-5 5 . LabC # show memory LabC # show stacks LabC # show buffers LabC # show arp LabC # show processes LabC # show processes cpu LabC # show tech-support More Copy commands Backing-up and restoring the router configuration: LabC # copy running-config tftp LabC # copy tftp running-config Backing-up and restoring the IOS: LabC # copy flash tftp LabC # copy tftp flash Other Commands LabC (config)# config-register 0x2102 LabC (config)# boot system flash igs-j-l. Testing and other basic commands More Testing Commands Here are some commands.111-5 LabC (config)# boot system tftp igs-j-l.