Escolar Documentos
Profissional Documentos
Cultura Documentos
Objectives
Introduces the basic configuration modes of the router Provides opportunities to practice simple configurations.
Table of Content
1 Configuring a Router 2 Finishing a configuration
CONFIGURING A ROUTER
There are many show commands that you can use to examine the contents of files in the router and for troubleshooting. In both privileged EXEC and user EXEC modes, the command show ? provides a list of available show commands.
To configure an Ethernet interface follow these steps: Enter global configuration mode.
Enter interface configuration mode. Specify the interface address and subnet mask. Enable the interface.
Example
Enter global configuration mode Enter interface mode Specify the interface address and subnet mask Set clock rate if a DCE cable is connected. Skip this step if a DTE cable is connected. Turn on the interface
1
DTE - DCE
Example
Router(config)#interface serial 0/0 Router(config-if)#clock rate 64000 Router(config-if)#no shutdown Determine DCE interface:
show controller <interface>
nfigure terminal nfig)#interface serial 0 nfig-if)#shutdown HANGED: Interface Serial0, changed state to administratively down O-5-UPDOWN: Line protocol on Interface Serial0, changed state to down
r#configure terminal r(config)#interface serial 0 r(config-if)#no shutdown -3-UPDOWN: Interface Seria0, changed state to up PROTO-5-UPDOWN: Line Protocol on Interface Serial0, changed state to up
An interface description should be used to identify important information such as a distant router, a circuit number, or a specific network segment.
1
Router#show controller serial 0 HD unit 0, idb = 0x121C04, driver structure at 0x127078 buffer size 1524 HD unit 0, V.35 DTE cable Cable . . .
Login Banners
Host name resolution is the process that a computer system uses to associate a host name with an IP address. Host names, unlike DNS names, are significant only on the router on which they are configured.
Global configuration mode. The ip host command makes a static nameto-address entry in the router's configuration file. Example: # ip host LAB_A 192.168.2.1 192.168.10.1 # ip host 2323 Server_Unix 192.168.5.1
2
Command: ip name-server
Global configuration mode. Defines which hosts can provide the name service. Maximum of six IP addresses as name servers in a single command. Any time the OS software receives a host name it does not recognize, it refers to DNS for the IP address of that device. Example: # ip name-server 192.168.20.2 203.162.3.253
2
Command: ip name-server
Global configuration mode. Defines which hosts can provide the name service. Maximum of six IP addresses as name servers in a single command. Any time the OS software receives a host name it does not recognize, it refers to DNS for the IP address of that device. Example: # ip name-server 192.168.20.2 203.162.3.253
2
Command: no ip domain-lookup
Global configuration mode. DNS is enabled by default with a server address of 255.255.255.255, which is a local broadcast. This command turns off name-to-address translation in the router. This means that the router will not generate or forward name system broadcast packets. Example: # no ip domain-lookup
3
User mode. The show hosts command is used to display a cached listof host names and addresses. Example: # show hosts
Configuration file
Contains commands to customize router operation. The router uses this information when it starts up.
Configuration files
Summary
The router has several modes:
User EXEC mode Privileged EXEC mode Global configuration mode Other configuration modes. Configure hostname Configure password Configure interface Configure login banner Host name resolution Backup and document configuration.
Q&A