170 likes | 447 Views
Cisco Router MODES. Configuration Prompt Interface Router(config-if)# Line Router(config-line)# Router Router(config-router)# Route-map Router(config-route-map)# All of these commands are done in the ‘Global Configuration Mode’.
E N D
Cisco Router MODES ConfigurationPrompt Interface Router(config-if)# Line Router(config-line)# Router Router(config-router)# Route-map Router(config-route-map)# All of these commands are done in the ‘Global Configuration Mode’. Type exit from one of these specific configuration modes to return to global configuration mode Type Ctrl-Z to return to privileged EXEC mode
Configure a Router Hostname : Router> enable Router# configure terminal Router(config)# hostnameTokyo Tokyo(config)#
Configure a Router - Passwords Configure Console password : Router(config)# line console 0 Router(config-line)# login Router(config-line)# passwordcisco Configure Virtual terminal : Router(config)# line vty 0 4 Router(config-line)# login Router(config-line)# passwordcisco
Configure a Router - Passwords Configure enable password: Router(config)# enable passwordpassword Configure secret password Router(config)# enable secretpassword NOTE: “enable secret” has preference over “enable password”
Configure a Router – Show commands • We may compile a list of “show” commands to help debug the router. Some of these commands are: • show interface • show interface serial port • show version • show protocol • show startup-configuration • show running-configuration
Configure a Router - Interfaces In the following commands,type,refers to either,ethernet, orserialports. Router(config)# interfacetype port OR Router(config)# interfacetype slot/port To bring a port down, or ‘shut it down’: Router(config)# interface type port Router(config-if)# shutdown To bring ‘up’ an interface or ‘initialize’ it: Router(config)# interface type port Router(config-if)# no shutdown
Configure a Router – Interfaces (cont.) Example: Router(config)# interfaceserial 1 Router(config-if)# no shutdown Router(config)# interfaceserial 1/0 Router(config-if)# no shutdown Router(config)# interfaceethernet0 Router(config-if)# no shutdown
Configure a Router – Interfaces (cont.) • By default, the interfaces are ‘down’ • Before one does a ‘no shutdown’, all interfaces are in the state: • administrative down, line protocol down
Configure a Router – Interfaces (cont.) When you are at interface mode, you need to give characteristics to the ethernet or serial port: Router(config)# interfaceserial0/0 Router(config-if)# ip address<ip address> <netmask> If the serial port is the DCE, then the clock rate must be applied: Router(config)# interface serial 0/0 Router(config-if)# ip address<ip address> <netmask> Router(config-if)# clock rate56000 Router(config-if)# no shutdown
Configure a Router - Interfaces (cont.) When you are at interface mode, you need to give characteristics to the ethernet or serial port: Router(config)# interfaceserial 0 Router(config-if)# ip address192.10.10.1 255.255.255.0 If the serial port is the DCE, then the clock rate must be applied: Router(config)# interfaceserial 0/0 Router(config-if)# ip address192.10.10.2 255.255.255.0 Router(config-if)# clock rate56000 Router(config-if)# no shutdown
Configure a Router – erase configuration To erase the configuration of a router: Router# erase startup-config Router# reload To load the running configuration of a router into NVRAM, do: Router# copy running-config startup-config • There are some ‘bad’ results with ‘start’ if you misspell ‘start’. So use • wr memory
Configure a Router Give a description to an interface: Router(config)# interface e0 Router(config-if)# descriptionCET LAN, Bldg 19 Give a message of the day (MOTD): Router(config)# banner motd#You have entered a secure area! #
Configure a Router – ip host command Give host name resolution, or a mini-DNS table, do: Router(config)# ip hostAuckland 172.16.32.1 Router(config)# ip hostBeirut 192.168.53.1 Router(config)# ip hostDallas 201.10.10.2
Configure a Router 175.11.11.1 197.16.16.1 s0 e0 e1 s1 London Paris 192.16.10.1 175.11.11.2 e0 e1 195.27.13.1 201.45.46.1 Router(config)# hostnameLondon London(config)# ip hostParis 175.11.11.2 Router(config)# hostnameParis Paris(config)# ip hostLondon 175.11.11.1 These ping commands would give you the same results London# ping 175.11.11.2 London# ping Paris These ping commands would give you the same results Paris# ping 175.11.11.2 Paris# ping Paris
Configure a Router • To copy information from one place to another: • Router# copy <from file> <to file> Router#copy running-config startup-config Router#copy running-configtftp Router#copy tftpstartup-config
Standards • It’s important to create a standard for networking consistency to alleviate router configuration by: • reducing complexity • limiting unplanned downtime • limiting events that may impact network performance