迈普路由配置命令集合

迈普配置命令集合

视图模式介绍:

普通视图 router>

特权视图 router# /在普通模式下输入enable

全局视图 router(config)# /在特权模式下输入config t

接口视图 router(config-if)# /在全局模式下输入int 接口名称 例如int s0或int e0

路由协议视图 router (config-route )# /在全局模式下输入router 动态路由协议名称

1、基本配置:

router>enable /进入特权模式

router#conf t /进入全局配置模式

router(config)# hostname xxx /设置设备名称就好像给我们的计算机起个名字

router(config)#enable password /设置特权口令

router(config)#no ip domain lookup /不允许路由器缺省使用DNS 解析命令

router(config)# Service password-encrypt /对所有在路由器上输入的口令进行暗文加密 router(config)#line vty 0 4 /进入设置telnet 服务模式

router(config-line)#password xxx /设置telnet 的密码

router(config-line)#login /使能可以登陆

router(config)#line con 0 /进入控制口的服务模式

router(config-line)#password xxx /要设置console 的密码

router(config-line)#login /使能可以登陆

2、接口配置:

router(config)#int s0 /进入接口配置模式 serial 0 端口配置(如果是模块化的路由器前面加上槽位编号,例如serial0/0 代表这个路由器的0槽位上的第一个接口)

router(config-if)#ip add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx /添加ip 地址和掩码

router(config-if)#enca hdlc/ppp 捆绑链路协议 hdlc 或者 ppp 思科缺省串口封装的链路层协议是HDLC 所以在show run配置的时候接口上的配置没有,如果要封装为别的链路层协议例如PPP/FR/X25就是看到接口下的enca ppp或者enca fr

router(config)#int loopback /建立环回口(逻辑接口) 模拟不同的本机网段

router(config-if)#ip add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx /添加ip 地址和掩码给环回口

在物理接口上配置了ip 地址后用no shut 启用这个物理接口反之可以用shutdown 管理性的关闭接口

3、路由配置:

(1)静态路由

router(config)#ip route xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx 下一条或自己的接口

router(config)#ip route 0.0.0.0 0.0.0.0 s 0 添加缺省路由

(2)动态路由

rip 协议

router(config)#router rip /启动rip 协议

router(config-router)#network xxx.xxx.xxx.xxx /宣告自己的网段

router(config-router)#version 2 转换为rip 2版本

router(config-router)#no auto-summary /关闭自动汇总功能,rip V2才有作用

router(config-router)# passive-int 接口名 /启动本路由器的那个接口为被动接口

router(config-router)# nei xxx.xxx.xxx.xxx /广播转单播报文,指定邻居的接ip,

igrp 协议-----内部网关路由协议(IGRP :Interior Gateway Routing Protocol)

router(config)#router igrp xxx /启动igrp 协议

router(config-router)#network xxx.xxx.xxx.xxx /宣告自己的网段

router(config-router)#variance xxx /调整倍数因子,使用不等价的负载均衡

eigrp---Enhanced Interior Gateway Routing Protocol(增强网关内部路由线路协议)

router(config)#router eigrp xxx /启动协议

router(config-router)#network xxx.xxx.xxx.xxx /宣告自己的网段

router(config-router)#variance xxx /调整倍数因子,使用不等价的负载均衡

router(config-router)#no auto-summary /关闭自动汇总功能

ospf 协议----开放最短路径协议(OSPF)协议

router(config)#router ospf xxx /启动协议启动一个OSPF 协议进程

router(config-router)#network xxx.xxx.xxx.xxx area xxx /宣告自己的接口或网段在ospf 的区域中, 可以把不同接口宣告在不同区域中

router(config-router)#router-id xxx.xxx.xxx.xxx /配置路由的id

router(config-router)#area xxx stub /配置xxx 区域为末梢区域, 加入这个区域的路由器全部要配置这个条命令

router(config-router)#area xxx stub no-summary /配置xxx 区域为完全末梢区域, 只在ABR 上配置

router(config-router)#area xxx nssa /配置xxx 区域为非纯末梢区域, 加入这个区域的路由器全部要配置这个条命令

router(config-router)#area xxx nssa no-summary /配置xxx 区域为完全非纯末梢区域, 只在ABR 上配置, 并发布缺省路由信息进入这个区域内的路由器

4、保存当前修改/运行的配置:

router#write /将RAM 中的当前配置存储到NVRAM 中,下次路由器启动就是执行保存的配置

router#Copy running-config startup-config /命令与write 效果一样

5、一般的常用命令

router(config-if)#exit

router(config)#

router(config-router)#exit

router(config)#

router(config-line)#exit

router(config)#

router(config)#exit

router#

exit 命令 /从接口、协议、line 等视图模式下退回到全局配置模式,或从全局配置模式退回到特权模式

router(config-if)#end

router(config-router)#end

router(config-line)#end

router#

end 命令 /从任何视图直接回到特权模式

router#Logout /退出当前路由器登陆模式相对与windows 的注销

router#reload /重新启动路由器(热启动)冷启动就是关闭路由器再打开电源开关 特权模式下:

router#show ip route /查看当前的路由表

router#clear ip route * /清楚当前的路由表

router#show ip protocol /查看当前路由器运行的动态路由协议情况

router#show ip int brief /查看当前的路由器的接口ip 地址启用情况

router#show running-config /查看当前运行配置

router#show startup-config /查看启动配置

router#debug ip pack /打开ip 报文的调试

router#terminal monitor /输出到终端上显示调试信息

router#show ip eigrp neighbors /查看eigrp 协议的邻居表

router#show ip eigrp top //查看eigrp 协议的拓朴表

router#show ip eigrp interface /查看当前路由器运行eigrp 协议的接口情况

router#show ip ospf neighbor /查看当前路由器的ospf 协议的邻居表

router#show ip ospf interface /查看当前路由器运行ospf 协议的接口情况

router#clear ip ospf process /清楚当前路由器ospf 协议的进程

router#Show interfaces /显示设置在路由器和访问服务器上所有接口的统计信息. 显示路由器上配置的所有接口的状态

router#Show interfaces serial /显示关于一个串口的信息

router#Show ip interface /列出一个接口的IP 信息和状态的小结, 列出接口的状态和全局参数

迈普配置命令集合

视图模式介绍:

普通视图 router>

特权视图 router# /在普通模式下输入enable

全局视图 router(config)# /在特权模式下输入config t

接口视图 router(config-if)# /在全局模式下输入int 接口名称 例如int s0或int e0

路由协议视图 router (config-route )# /在全局模式下输入router 动态路由协议名称

1、基本配置:

router>enable /进入特权模式

router#conf t /进入全局配置模式

router(config)# hostname xxx /设置设备名称就好像给我们的计算机起个名字

router(config)#enable password /设置特权口令

router(config)#no ip domain lookup /不允许路由器缺省使用DNS 解析命令

router(config)# Service password-encrypt /对所有在路由器上输入的口令进行暗文加密 router(config)#line vty 0 4 /进入设置telnet 服务模式

router(config-line)#password xxx /设置telnet 的密码

router(config-line)#login /使能可以登陆

router(config)#line con 0 /进入控制口的服务模式

router(config-line)#password xxx /要设置console 的密码

router(config-line)#login /使能可以登陆

2、接口配置:

router(config)#int s0 /进入接口配置模式 serial 0 端口配置(如果是模块化的路由器前面加上槽位编号,例如serial0/0 代表这个路由器的0槽位上的第一个接口)

router(config-if)#ip add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx /添加ip 地址和掩码

router(config-if)#enca hdlc/ppp 捆绑链路协议 hdlc 或者 ppp 思科缺省串口封装的链路层协议是HDLC 所以在show run配置的时候接口上的配置没有,如果要封装为别的链路层协议例如PPP/FR/X25就是看到接口下的enca ppp或者enca fr

router(config)#int loopback /建立环回口(逻辑接口) 模拟不同的本机网段

router(config-if)#ip add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx /添加ip 地址和掩码给环回口

在物理接口上配置了ip 地址后用no shut 启用这个物理接口反之可以用shutdown 管理性的关闭接口

3、路由配置:

(1)静态路由

router(config)#ip route xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx 下一条或自己的接口

router(config)#ip route 0.0.0.0 0.0.0.0 s 0 添加缺省路由

(2)动态路由

rip 协议

router(config)#router rip /启动rip 协议

router(config-router)#network xxx.xxx.xxx.xxx /宣告自己的网段

router(config-router)#version 2 转换为rip 2版本

router(config-router)#no auto-summary /关闭自动汇总功能,rip V2才有作用

router(config-router)# passive-int 接口名 /启动本路由器的那个接口为被动接口

router(config-router)# nei xxx.xxx.xxx.xxx /广播转单播报文,指定邻居的接ip,

igrp 协议-----内部网关路由协议(IGRP :Interior Gateway Routing Protocol)

router(config)#router igrp xxx /启动igrp 协议

router(config-router)#network xxx.xxx.xxx.xxx /宣告自己的网段

router(config-router)#variance xxx /调整倍数因子,使用不等价的负载均衡

eigrp---Enhanced Interior Gateway Routing Protocol(增强网关内部路由线路协议)

router(config)#router eigrp xxx /启动协议

router(config-router)#network xxx.xxx.xxx.xxx /宣告自己的网段

router(config-router)#variance xxx /调整倍数因子,使用不等价的负载均衡

router(config-router)#no auto-summary /关闭自动汇总功能

ospf 协议----开放最短路径协议(OSPF)协议

router(config)#router ospf xxx /启动协议启动一个OSPF 协议进程

router(config-router)#network xxx.xxx.xxx.xxx area xxx /宣告自己的接口或网段在ospf 的区域中, 可以把不同接口宣告在不同区域中

router(config-router)#router-id xxx.xxx.xxx.xxx /配置路由的id

router(config-router)#area xxx stub /配置xxx 区域为末梢区域, 加入这个区域的路由器全部要配置这个条命令

router(config-router)#area xxx stub no-summary /配置xxx 区域为完全末梢区域, 只在ABR 上配置

router(config-router)#area xxx nssa /配置xxx 区域为非纯末梢区域, 加入这个区域的路由器全部要配置这个条命令

router(config-router)#area xxx nssa no-summary /配置xxx 区域为完全非纯末梢区域, 只在ABR 上配置, 并发布缺省路由信息进入这个区域内的路由器

4、保存当前修改/运行的配置:

router#write /将RAM 中的当前配置存储到NVRAM 中,下次路由器启动就是执行保存的配置

router#Copy running-config startup-config /命令与write 效果一样

5、一般的常用命令

router(config-if)#exit

router(config)#

router(config-router)#exit

router(config)#

router(config-line)#exit

router(config)#

router(config)#exit

router#

exit 命令 /从接口、协议、line 等视图模式下退回到全局配置模式,或从全局配置模式退回到特权模式

router(config-if)#end

router(config-router)#end

router(config-line)#end

router#

end 命令 /从任何视图直接回到特权模式

router#Logout /退出当前路由器登陆模式相对与windows 的注销

router#reload /重新启动路由器(热启动)冷启动就是关闭路由器再打开电源开关 特权模式下:

router#show ip route /查看当前的路由表

router#clear ip route * /清楚当前的路由表

router#show ip protocol /查看当前路由器运行的动态路由协议情况

router#show ip int brief /查看当前的路由器的接口ip 地址启用情况

router#show running-config /查看当前运行配置

router#show startup-config /查看启动配置

router#debug ip pack /打开ip 报文的调试

router#terminal monitor /输出到终端上显示调试信息

router#show ip eigrp neighbors /查看eigrp 协议的邻居表

router#show ip eigrp top //查看eigrp 协议的拓朴表

router#show ip eigrp interface /查看当前路由器运行eigrp 协议的接口情况

router#show ip ospf neighbor /查看当前路由器的ospf 协议的邻居表

router#show ip ospf interface /查看当前路由器运行ospf 协议的接口情况

router#clear ip ospf process /清楚当前路由器ospf 协议的进程

router#Show interfaces /显示设置在路由器和访问服务器上所有接口的统计信息. 显示路由器上配置的所有接口的状态

router#Show interfaces serial /显示关于一个串口的信息

router#Show ip interface /列出一个接口的IP 信息和状态的小结, 列出接口的状态和全局参数


相关内容

  • 迈普交换配置详细说明
  • 一.如何从console 进入交换机 带外管理即通过Console 进行管理,通常情况下,在首次配置交换机或者无法进行带内管理时,用户会使用带外管理方式.例如:用户希望通过远程Telnet 来访问交换机时,必须首先通过Console 给交换机配置一个IP 地址. 用户用Console 管理的步骤如下 ...

  • 迈普路由器常用show命令
  • 1. 查看配置命令:sh run 作用:查看路由器的配置 2. 查看路由表ship route 作用查看路由器的路由表,如下 WANGHUA_DANDONGLU#ship route Codes: C - connected, S - static, R - RIP, O - OSPF, OE-OS ...

  • 迈普路由器2700简单配置
  • 假设用f0作外网口ip为32.174.8.248/24,网关为32.174.8.1,内网接口使用交换口,使用DHCP,配置步骤如下: 2700>enable 2700#conf t 2700(config)#ip access-list standard 1 2700(config-nacl- ...

  • 3100迈普交换机配置
  • 黎平政府视频会议系统网管交换机配置 hostname GaoTunZheng 修改系统名称 vlan 25 创建VLAN ID ! Interface Ethernet1/1 进入接口(上行接口) switchport mode trunk 配置端口模式 switchport trunk allow ...

  • 实验一:对等网络的构建
  • 实验一:对等网络的构建 [实验目的] ⏹ 掌握TCP/IP协议的配置: ⏹ 掌握常见网络命令的使用: ⏹ 掌握组建windows 对等网络并配置文件共享. [实验内容] ⏹ 以Microsofe Winodws 系统为例,对TCP/IP协议进行安装和配置: ⏹ 学习使用常见的网络命令,并了解相关的参 ...

  • 科技成果鉴定意见
  • 20xx年6月1日,由四川省科技厅组织、四川省信息产业厅主持在成都召开了迈普“MP7500高端路由器”科技成果鉴定会。鉴定委员会听取了该项目的研制总结报告、技术总结报告,查新报告、测试报告、用户报告,经讨论,鉴定意见如下: 1、MP7500是一款基于国际标准化组织PICMG定义的高级电信计算架构AT ...

  • 2011技术支持笔试题
  • 技术支持笔试题试卷 (考试时间:60分钟) 答题须知: 1. 请勿在此试卷上作答,答案一律写在答题纸上: 2. 答卷应字迹清楚.语义确切. 一.填空题(每空2分,共20分) 1.按网络的覆盖范围划分,网络可分为 广域网 . 城域网 和 局域网 . 2.在Windows操作系统中,采用 tracert ...

  • cisco案例配置
  • 您正在看的网络管理员教程是:基础入门:Cisco 配置手记. 现有设备:CISCO 路由器2620XM (4台)和2621XM (5台),3750三层交换机,PIX-515E 防火墙,CISCO2950二层交换机(9台) 重点命令:有安全,控制,监控,监测和检测功能的命令集合和命令组合 一.两层交换 ...

  • 数据通信与网络技术实验指导书20150925
  • <数据通信与网络技术> 实验指导书 信息与通信学院 实验要求 1.每位学生必须按规定完成实验,因故不能参加实验者,应课前向指导教师请假(必须经有关领导批准).对所缺实验要在期末考试规定时间内补齐,缺实验者不得参加期末考试. 2.每次实验课前,必须作到预习,弄清实验题目.目的.内容.步骤和 ...