千家论坛_智能建筑与智能家居技术交流社区

标题: CDP命令操作 [打印本页]

作者: richcaofajin    时间: 2009-10-7 11:43
标题: CDP命令操作
 

实验要求:

1.       路由器名:CCNA1 CCNA2 CCNA3

2.       设置password为cisco1,secret为cisco2,vty为cisco3,并要求所有密码都加密。

3.       配置各路由器

实验过程:

      配置路由器1

en

conf t

host ccna1                                                   设置路由器名

enable password cisco1                                        设置password

enable secret cisco2                                           设置secret

line vty 0 4                                                                                                               

login

pass cisco3                                                  设置vty密码

exit

service password-en                                           对密码加密

int s0

ip add 202.119.249.1 255.255.255.0                               设置s0

clock rate 56000

no shut

exit

exit


配置路由器2

En

Conf t

host ccna2                                                   设置路由器名

enable password cisco1                                        设置password

enable secret cisco2                                           设置secret

line vty 0 4                                                                                                                

login

pass cisco3                                                  设置vty密码

exit

service password-en                                           对密码加密

int s0                                                          设置s0

ip add 202.119.248.1 255.255.255.0                              

clock rate 56000

no shut

exit

int s1                                                          设置s1

ip add 202.119.248.2 255.255.255.0

no shut

exit

exit


配置路由器3

en

conf t

host ccna3                                                  设置路由器名

enable password cisco1                                        设置password

enable secret cisco2                                           设置secret

line vty 0 4                                                                                                                

login

pass cisco3                                                  设置vty密码

exit

service password-en                                           对密码加密

int s1                                                          设置s1

ip add 202.119.248.2 255.255.255.0

no shut

exit

exit


在路由器2上操作:

show cdp neighbors                                           显示相连的网络器件

show cdp                                                   显示CDP信息

show cdp traffic                                              显示CDP所用的数据包的信息

show cdp entry *                                             显示所有相邻路由器的所有信息

show cdp entry WORD(路由器名)                               显示该路由器的所有信息

un all                                                       关闭所有DEBUG信息

(config)#cdp run                                              启动CDP协议

disconnect (端口号)                                           放弃该端口的连接

show cdp interface  (端口)                                    显示该端口的CDP信息

clear cdp counter                                             清除CDP计数器

debug cdp packet                                             启动CDP数据包调试模式



作者: httq1982    时间: 2009-10-8 18:02

不错

 


作者: oldsteed    时间: 2009-10-28 17:15
相当的不错!帮顶了!
作者: NXGYLSH    时间: 2010-7-24 16:42

很不错的资料,支持一下!


作者: 吴浩钦    时间: 2010-11-21 20:23

不错,顶下


作者: hfsky7    时间: 2010-11-22 12:20

前面那么多没用的配置。。。






欢迎光临 千家论坛_智能建筑与智能家居技术交流社区 (http://bbs.qianjia.com:8020/) Powered by Discuz! X3.2