All CLI configuration will change the router to global configuration or global config. Config global configuration mode is most important. Global config is used in routers to execute configuration commands. The prompt shown in the global config mode:
Router # configure terminalRouter (config) # Below are a few modes that can go into global config mode:- Interface mode- Line mode- Router mode- Subinterface mode- Controller modeType exit from one of the above modes will return to global config mode. Emphasis Ctrl-Z will return to privileged EXEC mode.
Configuring a router name
A router should have a unique name. Giving a name is the first step on the router configuration.Router (config) # hostname TokyoTokyo (config) #When pressed Enter, the prompt will change from the default hostname to Tokyo.
Configuration passwordPasswords should always be configured for virtual terminal (vty) and the console terminal. Password is also useful for controlling access to privileged EXEC mode so that only certain people are just biased change the router settings.The command below is used to setup a password on the console terminal:Router (config) # line console 0Router (config-line) # loginRouter (config-line) # password
These commands show- Show interfaces - to display the statistics of all router interfaces. To display the specific interface statistics, use the show interfaces command followed by the port number / slot interface such as the command below.Router # show interfaces serial 0 / 1- Show controllers serial - Displays information specific hardware interface. This command must be set, including the port number / slot of the serial interface. Example:Router # show controllers serial 0 / 1- Show clock - displays the time on the router.- Show hosts - manmapilkan cached list of host names and addresses.- Show users - manmpilkan all users who connect to the router.- Show history - shows history of commands that have been done.- Show flash - Displays information about flash memory and what IOS files are stored there.- Show version - displays information about the software version that is now under way complete with hardware and device information.- Show arp - Displays the ARP table of the router.- Show protocols - the interface displays the status of both global and khusu of layer 3 protocols are configured.- Show startup-config - displays the contents of the configuration file stored in NVRAM- Show running-config - displays the contents of the configuration file is the path or configuration of the interface or class map information.
Configure serial interfaceThe steps to configure the serial interface is:- Go to global configuration mode- Sign in interface mode- Specifies an interface address and subnet masknya- Setting clock rate if a DCE cable connected. No need to clock rate settings if connected to the DTE cable- Turn on the interfaceEach serial interface must have an IP address and subnet mask for routing IP packets. Configuring the IP address as follows:Router (config) # interface serial 0 / 0Router (config-if) # ip address
Router (config) # interface serial 0 / 0Router (config-if) # clock rate 56000Router (config-if) # no shutdown
Perform configuration changesBefore making changes, normally previewing configuration that is the way to the show running-config command. If the variable that is displayed is not correct, to fix the following way:- Use no in front of the command- Restore the initial configuration file from NVRAM- Copy the configuration file from the TFTP server- Remove the startup configuration file with the command erase startup-config, then restart and go into setup modeTo save the configuration to the startup configuration file in NVRAM, enter the privileged EXEC mode. As the command below.Router # copy running-config startup-config
Configure ethernet interfaceEach Ethernet interface must have an IP address and subnet mask for routing IP packets.To configure the Ethernet interface in the following way:- Go to the config global- Go to the config interface- Specify the interface address and subnet mask- Enable interfaceBy default, Ethernet interfaces in the off state or disabled. To on the command no shutdown. If you want to back off with the shutdown command.
0 comments:
Post a Comment