Router(config-if)

advertisement
Cisco Router MODES
Chapter 3
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’.
Type exit from one of these specific configuration modes to return to global
configuration mode
Type Ctrl-Z to return to privileged EXEC mode
3/24/2016
Configure a Router
Hostname :
Router> enable
Router# configure terminal
Router(config)#
hostname Tokyo
Tokyo(config)#
3/24/2016
Chapter 3
Chapter 3
Configure a Router - Passwords
Configure Console password :
Router(config)#
line console 0
Router(config-line)#
Router(config-line)#
login
password cisco
Configure Virtual terminal :
Router(config)#
line vty 0 4
Router(config-line)#
Router(config-line)#
login
password cisco
3/24/2016
Chapter 3
Configure a Router - Passwords
Configure enable password:
Router(config)#
enable password password
Configure secret password
Router(config)#
enable secret password
NOTE: “enable secret” has preference over “enable password”
3/24/2016
Configure a Router – Show commands
Chapter 3
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
3/24/2016
Chapter 3
Configure a Router - Interfaces
In the following commands, type, refers to either, ethernet, or serial ports.
Router(config)#
OR
Router(config)#
interface type port
interface type slot/port
To bring a port down, or ‘shut it down’:
Router(config)#
Router(config-if)#
interface type port
shutdown
To bring ‘up’ an interface or ‘initialize’ it:
Router(config)#
Router(config-if)#
interface type port
no shutdown
3/24/2016
Configure a Router – Interfaces (cont.)
Chapter 3
Example:
Router(config)# interface serial 1
Router(config-if)# no shutdown
Router(config)# interface serial 1/0
Router(config-if)# no shutdown
Router(config)# interface ethernet0
Router(config-if)# no shutdown
3/24/2016
Configure a Router – Interfaces (cont.)
Chapter 3
By default, the interfaces are ‘down’
Before one does a ‘no shutdown’, all interfaces are in the state:
administrative down, line protocol down
3/24/2016
Configure a Router – Interfaces (cont.)
Chapter 3
When you are at interface mode, you need to give characteristics to the
ethernet or serial port:
Router(config)#
interface serial 0/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 rate 56000
Router(config-if)# no shutdown
3/24/2016
Chapter 3
Configure a Router - Interfaces (cont.)
When you are at interface mode, you need to give characteristics to the
ethernet or serial port:
Router(config)# interface serial 0
Router(config-if)# ip address 192.10.10.1 255.255.255.0
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 192.10.10.2 255.255.255.0
Router(config-if)#
clock rate 56000
Router(config-if)# no shutdown
3/24/2016
Configure a Router – erase configuration
Chapter 3
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
3/24/2016
Configure a Router
Chapter 3
Give a description to an interface:
Router(config)# interface e0
Router(config-if)# description CET LAN, Bldg 19
Give a message of the day (MOTD):
Router(config)# banner motd #You have entered a secure area! #
3/24/2016
Configure a Router – ip host command
Chapter 3
Give host name resolution, or a mini-DNS table, do:
Router(config)# ip host Auckland 172.16.32.1
Router(config)# ip host Beirut 192.168.53.1
Router(config)# ip host Dallas 201.10.10.2
3/24/2016
Chapter 3
Configure a Router
175.11.11.1
197.16.16.1
s0
e1
192.16.10.1
e0
s1
London
Paris
175.11.11.2
e0
e1
195.27.13.1
201.45.46.1
Router(config)# hostname London
London(config)# ip host Paris 175.11.11.2
Router(config)# hostname Paris
Paris(config)# ip host London 175.11.11.1
These ping commands would give you the same
results
These ping commands would give you the same
results
London# ping 175.11.11.2
Paris# ping 175.11.11.2
London# ping Paris
Paris# ping Paris
3/24/2016
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-config tftp
Router#copy tftp startup-config
3/24/2016
Chapter 3
Standards
Chapter 3
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
3/24/2016
Download