1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > 迈普路由器访问控制列表配置命令_迈普路由器配置命令集合

迈普路由器访问控制列表配置命令_迈普路由器配置命令集合

时间:2024-05-02 01:10:12

相关推荐

迈普路由器访问控制列表配置命令_迈普路由器配置命令集合

迈普路由器配置命令集合

视图模式介绍:

普通视图

router>

特权视图

router#

/

在普通模式下输入

enable

全局视图

router(config)#/

在特权模式下输入

configt

接口视图

router(config-if)#/

在全局模式下输入

int

接口名称

例如

ints0

inte0

路由协议视图

router

(

config-route

)

#

/

在全局模式下输入

router

动态路由协议名称

1

、基本配置

router>enable/

进入特权模式

router#conft/

进入全局配置模式

router(config)#

hostname

xxx

/

router(config)#enablepassword

/

设置特权口令

router(config)#noipdomainlookup/

不允许路由器缺省使用

DNS

解析命令

router(config)#

Service

password-encrypt

/

对所有在路由器上输入的口令进行暗文加密

router(config)#linevty04/

进入设置

telnet

服务模式

router(config-line)#passwordxxx/

设置

telnet

的密码

router(config-line)#login/

使能可以登陆

router(config)#linecon0/

进入控制口的服务模式

router(config-line)#passwordxxx/

要设置

console

的密码

router(config-line)#login/

使能可以登陆

2

、接口配置

router(config)#ints0/

进入接口配置模式

serial0

端口配置

(如果是模块化的路由器前面加上

槽位编号,例如

serial0/0

代表这个路由器的

0

槽位上的第一个接口)

router(config-if)#ip

add

xxx.xxx.xxx.xxx

xxx.xxx.xxx.xxx

/

ip

router(config-if)#encahdlc/ppp

捆绑链路协议

hdlc

或者

ppp

思科缺省串口封装的链路层协

议是

HDLC

,所以在

show

run

配置的时候,接口上的配置没有,如果要封装为别的链路层

协议,例如

PPP/FR/X25

就是看到接口下的

encappp

或者

encafr

router(config)#intloopback/

建立环回口

(

逻辑接口

)

模拟不同的本机网段

router(config-if)#ipaddxxx.xxx.xxx.xxxxxx.xxx.xxx.xxx

/

添加

ip

地址和掩码给环回口

在物理接口上配置了

ip

地址后用

no

shut

启用这个物理接口反之可以用

shutdown

管理性的

关闭接口

3

、路由配置

(1)

静态路由

router(config)#ip

route

xxx.xxx.xxx.xxx

xxx.xxx.xxx.xxx

router(config)#iproute0.0.0.00.0.0.0s0

添加缺省路由

(2)

动态路由

rip

协议

router(config)#routerrip/

启动

rip

协议

router(config-router)#networkxxx.xxx.xxx.xxx/

宣告自己的网段

router(config-router)#version2

转换为

rip2

版本

router(config-router)#noauto-summary

/

关闭自动汇总功能,

ripV2

才有作用

.

router(config-router)#passive-int

接口名

/

启动本路由器的那个接口为被动接口

router(config-router)#neixxx.xxx.xxx.xxx

/

广播转单播报文,指定邻居的接

ip

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。