亩态
CCNA培训之Router基本配置
发布时间:2014-05-08 浏览次数:5720
Router基本配置
实验目的:
学会cisco路由器命令行帮助
配置路由器基本参数 
实验步骤:
1. 新路由器,无启动文件的路由器,配置寄存器值设置为0x2142的路由器启动时,会进入到系统初始化配置 界面
--- System Configuration Dialog ---
% Please answer 'yes' or 'no'.
Would you like to enter the initial configuration dialog? [yes/no]:no
2. 输入 “no”,并回车进入路由器CLI界面
Router>?      
Exec commands:
  access-enable    Create a temporary Access-List entry
  access-profile   Apply user-profile to interface
  clear            Reset functions
  connect          Open a terminal connection
  crypto           Encryption related commands.
  disable          Turn off privileged commands
  disconnect       Disconnect an existing network connection
  emm              Run a configured Menu System
  enable           Turn on privileged commands
  ethernet         Ethernet parameters
  exit             Exit from the EXEC
  help             Description of the interactive help system
  lock             Lock the terminal
  login            Log in as a particular user
  logout           Exit from the EXEC
  mrinfo           Request neighbor and version information from a multicast
                   router
  mstat            Show statistics after multiple multicast traceroutes
  mtrace           Trace reverse multicast path from destination to source
  name-connection  Name an existing network connection
  pad              Open a X.29 PAD connection
  ping             Send echo messages
  ppp              Start IETF Point-to-Point Protocol (PPP)
  radius           radius exec commands
  release          Release a resource
  renew            Renew a resource
  resume           Resume an active network connection
  rlogin           Open an rlogin connection
set              Set system parameter (not config)
  show             Show running system information
  slip             Start Serial-line IP (SLIP)
  ssh              Open a secure shell client connection
  systat           Display information about terminal lines
  tclquit          Quit Tool Command Language shell
  tdm              TDM
  telnet           Open a telnet connection
  terminal         Set terminal line parameters
  traceroute       Trace route to destination
  tunnel           Open a tunnel connection
  udptn            Open an udptn connection
  webvpn           WebVPN exec command
  where            List active connections
  x28              Become an X.28 PAD
  x3               Set X.3 parameters on PAD

Router>
Router>enable 
Router#? 
Exec commands:
  access-enable    Create a temporary Access-List entry
  access-profile   Apply user-profile to interface
  access-template  Create a temporary Access-List entry
  archive          manage archive files
  audio-prompt     load ivr prompt
  auto             Exec level Automation
  beep             Blocks Extensible Exchange Protocol commands
  bfe              For manual emergency modes setting
  calendar         Manage the hardware calendar
  call             Voice call
  cd               Change current directory
  clear            Reset functions
  clock            Manage the system clock
  cns              CNS agents
  configure        Enter configuration mode
  connect          Open a terminal connection
  copy             Copy from one file to another
  crypto           Encryption related commands.
  debug            Debugging functions (see also 'undebug')
  delete           Delete a file
  dir              List files on a filesystem
Router#config terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)# 
Router(config)#?
Configure commands:
  aaa                         Authentication, Authorization and Accounting.
  aal2-profile                Configure AAL2 profile
  access-list                 Add an access list entry
  alias                       Create command alias
  appfw                       Configure the Application Firewall policy
  application                 Define application
  archive                     Archive the configuration
  arp                         Set a static ARP entry
  ase                         Configure ASE 
  async-bootp                 Modify system bootp parameters
  backhaul-session-manager    Configure Backhaul Session Manager
  banner                      Define a login banner
  bba-group                   Configure BBA Group
  beep                        Configure BEEP (Blocks Extensible Exchange
                              Protocol)
  bfd                         BFD configuration commands
  boot                        Modify system boot parameters
  bridge                      Bridge Group.
  buffers                     Adjust system buffer pool parameters
  busy-message                Display message when connection to host fails
  call                        Configure Call parameters
注:不同的命令需要在不同的模式下输入,请注意.
3.路由器的帮助命令使用
Router#cl 
% Ambiguous command :  "cl"
Router#
Router#cl? 
clear  clock  

Router#clock ?   
  read-calendar    Read the hardware calendar into the clock
  set               Set the time and date 
  update-calendar  Update the hardware calendar from the clock
Router#clock set ?
  hh:mm:ss  Current Time

Router#clock set 17:28:50 ?
  <1-31>  Day of the month
  MONTH   Month of the year

Router#clock set 17:28:50 14 apr ?   
  <1993-2035>  Year

Router#clock set 17:28:50 14 apr 2009 ?
  <cr>

Router#clock set 17:28:50 14 apr 2009

Router#show clock 
17:28:55.427 UTC Tue Apr 14 2009

4. 路由器的基本配置
Router#config terminal
Router(config)#hostname cipon   
cipon (config)#                      
cipon(config)#banner motd # welcome to cipon # 
cipon(config)#interface ethernet 0    
cipon(config-if)#description Link to RD Department 
cipon(config-if)#exit              
cipon(config)#exit                  
cipon#

cipon(config-if)#end 
cipon#exit 

cipon con0 is now available 
Press RETURN to get started. 
↙↙
welcome to cipon 
cipon>
cipon>
cipon>enable
cipon#sh int eth0
Ethernet0 is administratively down , line protocol is down 
  Hardware is DEC21140, address is ca00.17ac.0000  (bia ca00.17ac.0000)
  Description: Link to RD Department
  MTU 1500 bytes , BW 10000 Kbit/sec , DLY  100 usec, 
     reliability 255/255 , txload 1/255 , rxload 1/255 
―――――――――― 部分输出省略 ――――――――――
5.可以给路由器的特权模式配置登录密码,当操作员要从用户模式进入到特权模式时则必须输入我们设定的密码。
Cisco提供了两种密码模型:普通密码与MD5加密密码.
6. 配置命令别名(Aliases),以较简洁的命令来代替一个真实的命令
7. 备份和恢复Router的配置文件
8. 清除启动文件
9. 基本管理安全配置
思朋简介
联系我们
官方微博
思朋特色
服务宗旨
企业服务
商务合作
企业运维

Copyright 2023 江苏思朋信息科技有限公司 版权所有 技术支持:星度网络 苏ICP备2021003433号-2

地址:苏州市吴中区石湖西路188号万达广场西楼(苏州大学国家大学科技园吴中分园)19楼1902室(吴中万达1号门附近) 咨询热线:0512-80682876