CISCO 3640 Router Configuration reference

Source: Internet
Author: User
Tags config md5 min

Router

Router Boot mode configuration

Router (config) #boot system flash [iOS filename]//boot from flash

Router (config) #boot system fttp [TFTP address] [iOS filename]//boot from TFTP

Router (config) #boot syste rom//boot from ROM

Note: If there are multiple loading paths, load in sequence at startup and attempt to load from the subsequent path if the first load fails.

User name and password

Router (config) #username tang password bang

Local login Authentication

Router (config) #line vty 0 4

Router (config) # Login//Use the Enable password for logon authentication, or you can set the password through the password statement.

Router (config-line) #login Local//using the established username and password for authentication

Interface Configuration

Router (config) #interface S0

Router (config-if) #ip address 192.168.1.1 255.255.255.0

Timeout time setting

Router (config) #line console 0

Router (config-line) #exec-timeout [min] [sec]//timeout when no action

Router (config-line) #session-timeout [min]//Session Timeout

Router (config-line) #absolute-time//Absolute Timeout

Permission settings

Router (config) #privilege exec level [0-15] [command]//[command] for commands that are allowed under the current permission, such as: Show run

Static routing

Router (config) #ip route [Destination network] [mask] [Next Hop address | export] [admin distance] [no pass delete]

Router (config) #ip route IP packets corresponding to the [destination network] [mask] [null 0|loopback 0]//destination network are discarded.

Note: You can set the null interface parameter so that the router returns to the client or does not return a "Destination unreachable" ICMP packet. The default is to return ICMP. Such as:

Router (config) #int null 0

Router (config-if) #ip unreachables//Return Destination Unreachable information to client

Router (config-if) #no IP unreachables//does not return destination unreachable information, client displays timeout.

Route-map settings

Router (config) #route-map engineers [Permit|deny] [ordinal]//define engineers marked as Route-map.

Router (config-route-map) #match IP Address [access list number]//Set matching criteria for access list definitions

Router (config-route-map) #set IP next-hop 10.15.27.1//Match set Next hop address

Router (config-if) #ip Policy ROUTE-MAP Engineers//Apply engineers on the interface.

OSPF routing

OSPF Routing basic Configuration

Router (config) #router OSPF 10

Router (config-router) #network 192.168.2.0 0.0.0.255 area 0

OSPF authentication

Area plaintext Authentication Mode command:

Router (config-router) # area Area-id Authentication

Router (config-if) # IP OSPF authentication-key key

Zone MD5 authentication Mode command:

Router (config-router) # area Area-id Authentication Message-digest

Router (config-if) # IP OSPF message-digest-key key-id MD5 Md5key

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.