锐捷路由器配置命令

天若有情天亦老,人学物理数学金融生物死得早

  #ExIT 返回上一级操作模式
  #write memory 或copy running-config startup-config 保存配置
  #Configure terminal 进入全局配置模式
  (config)# hostname routerA 配置设备名称为routerA
  (config)#banner motd & 配置每日提示信息 &为终止符
  (config)# enable secret star 或者:enable password star
  设置路由器的特权模式密码为star;secret 指密码以非明文显示,password指密码以明文显示
  查看信息
  #show running-config 查看当前生效的配置信息
  #show interface fastethernet 0/3 查看F0/3端口信息
  #show interface serial 1/2 查看S1/2端口信息
  #show ip interface brief 查看端口信息
  #show version 查看版本信息
  #show running-config 查看当前生效的配置信息
  #show controllers serial 1/2 查看该端口信息 , 用于R2501
  #show ip route 查看路由表信息
  #show access-lists 1 查看标准访问控制列表1的配置信息

  远程登陆(telnet)
  (config)# line vty 0 4 进入线路0~4的配置模式,4为连续线路最后一位的编号,线路为0~4
  (conifg-line)#login
  (config-line)#password star 配置远程登陆密码为star
  (config-line)#end 返回上层

  端口的基本配置
  (config)#Interface fastethernet 0/3 进入F0/3的端口配置模式
  (config)#interface range fa 0/1-2 进入F01至F0/2的端口配置模式
  (config-if)#speed 10 配置端口速率为10M,可选10,100,auto
  (config-if)#duplex full 配置端口为全双工模式,可选full(全双工),half(半双式),auto(自适应)
  (config-if)#no shutdown 开启该端口

  (config)# interface serial 1/2 进入端口S1/2的配置模式
  (config-if)# ip address 1.1.1.1 255.255.255.0 配置端口IP及掩码
  (config-if)# clock rate 64000 配置时钟频率(单位为K , 仅用于DCE端)
  (config-if)# bandwidth 512 配置端口带宽速率为512KB(单位为KB)
  (config-if)# no shutdown 开启该端口
  (config-if)#encapsulation PPP 定义封装类型为PPP,可选项:
  Frame-relay 帧中继
  Hdlc 高级数据链路控制协议
  lapb X.25的二层协议
  PPP PPP点到点协议
  X25 X.25协议

  路由协议
  (config)# ip route 172.16.1.0 255.255.255.0 172.16.2.1 配置静态路由
  注:172.16.1.0 255.255.255.0 为目标网络的网络号及子网掩码
  172.16.2.1 为下一跳的地址,也可用接口表示,如ip route 172.16.1.0 255.255.255.0 serial 1/2(172.16.2.0所接的端口)
  (config)# router rip 开启RIP协议进程
  (config-router)# network 172.16.1.0 申明本设备的直连网段信息
  (config-router)# version 2 开启RIP V2,可选为version 1(RIPV1)

你可能喜欢

  • 思科配置命令大全
  • 企业网搭建技能大赛
  • 网络平台
  • 题库答案
  • Excel使用技巧大全(超

锐捷路由器配置命令相关文档

最新文档

返回顶部