Cisco系列之CCNA Lab Exercise

本文网址:http://bbs.bitscn.com/73386 复制

第一章 基础篇

实验一.路由器基本设置

Lab Exercise 1.1

目标:

熟练掌握如何进入路由器各种模式并设置主机名.

设备需求:

Cisco 2501 路由器一台.

语法:

1.从路由器用户模式进入特权模式:

Aiko>enable

2.从特权模式进入全局配置模式:

Aiko#configure terminal

3.为路由器设置主机名:

Aiko(config)#hostname {hostname}

4.退出到特权模式:

Aiko(config)#end

5.退出到用户模式:

Aiko#disable

6.退出控制台线路:

Aiko>quit

解释:

路由器的模式大致可分为:

1.用户模式:权限最低,通常只能使用少量查看性质的命令.

2.特权模式:可以使用更多查看性质的命令和一些少量修改路由器参数的命令.

3.全局配置模式:不能使用查看性质的命令,但是确实做全局性修改和设置的模式,它还可以向下分为一些

子模式,比如接口配置模式,线路配置模式,路由进程配置模式等等.

配置实例一:

Router>enable

Router#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostname Aiko

Aiko(config)#exit

Aiko#

*Mar 1 00:04:30.815: %SYS-5-CONFIG_I: Configured from console by console

Aiko#disable

Aiko>

Lab Exercise 1.2

目标:

熟练掌握如何为路由器设置时间.

设备需求:

Cisco 2501 路由器一台.

语法:

在特权模式下设置路由器时间:

Aiko#clock set {hh:mm:ss day month year}

解释:

路由器本地的时间标识.

配置实例一:

Aiko#clock set 16:16:16 25 September 2005

Aiko#show clock

16:16:24.503 UTC Sun Sep 25 2005

Aiko#

Lab Exercise 1.3

目标:

熟练掌握如何设置空闲超时时间.

设备需求:

Cisco 2501 路由器一台

语法:

1.从全局配置模式进入线路配置模式,进入控制台口线路:

Aiko(config)#line console {number}

2.启用光标跟随:

Aiko(config-line)#logging synchronous

3.设置当键盘多少时间内无动作,自动被路由器弹出到用户模式以外,即退出.如果设置为0 0 秒代表永不超时:

Aiko(config-line)#exec-timeout {minute} {second}

解释:

所谓光标跟随,是指当我们在输入命令的时候,不会被一些日志信息或debug 命令产生的调试命令所冲断.

模式该特性是没有启用的.

配置实例一:

Aiko(config)#exit

Aiko#

*Mar 1 00:20:11.231: %SYS-5-CONFIG_I: Configured from console by consoleconfigure

terminal

Enter configuration commands, one per line. End with CNTL/Z.

Aiko(config)#line console 0

Aiko(config-line)#logging synchronous

Aiko(config-line)#end

Aiko#

*Mar 1 00:20:38.123: %SYS-5-CONFIG_I: Configured from console by console

Aiko#configure terminal

Aiko(config)#

配置实例二:

Aiko#show clock

*15:32:12.747 UTC Mon Jul 28 2005

Aiko#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Aiko(config)#line console 0

Aiko(config-line)#exec-timeout 20 0

Aiko(config)#end

Aiko#exit

*Mar 1 00:24:33.643: %SYS-5-CONFIG_I: Configured from console by console

Aiko#

Aiko#show clock

*15:52:12.747 UTC Mon Jul 28 2005

Aiko#

Aiko con0 is now available

Press RETURN to get started.

Aiko>

Lab Exercise 1.4

目标:

熟练掌握如何为路由器设置标语信息和描述信息.

设备需求:

Cisco 2501 路由器一台.

语法:

1.进入全局配置模式,设置标语信息:

Aiko(config)#banner motd # {text} #

2.进入接口配置模式:

Aiko(config-if)#interface {type} {number}

3.为路由器接口设置描述信息:

Aiko(config-if)#description {text}

解释:

在设置标语信息的时候,#号做为分隔符,并按下回车键.描述语句的本地的一个标识,它只在本地可见,

Cisco IOS 执行命令的时候会跳过它.

配置实例一:

Aiko(config)#banner motd #

Enter TEXT message. End with the character '#'.

hello!

#

Aiko(config)#end

Aiko#exit

Aiko con0 is now available

Press RETURN to get started.

hello!

Aiko>

配置实例二:

Aiko(config-if)#description LAN Sales

Aiko(config-if)#end

Aiko#

*Mar 1 02:05:48.919: %SYS-5-CONFIG_I: Configured from console by console

Aiko#show running-config interface ethernet 0

Building configuration...

Current configuration : 75 bytes

!

interface Ethernet0

description LAN Sales

no ip address

shutdown

end

Aiko#

Lab Exercise 1.5

目标:

熟练掌握如何为路由器特权模式设置密码.

设备需求:

Cisco 2501 路由器一台.

语法:

进入全局配置模式,设置密码:

Aiko(config)#enable {password|secret} {password}

解释:

两种密码的区别在于,前者是一些低版本Cisco IOS 软件的认证方式,并且密码是基于明文的;后者是目前

Cisco IOS 软件最常用的认证方式,它是基于MD5 加密的.如果同时设置了这两种认证方式,他们的口令必

须不一样.但是,我们推荐使用后者进行认证,并且如果同时设置了两种认证方式,只有后者生效.密码区分大小写.

配置实例一:

Aiko(config)#enable password Aiko

Aiko(config)#enable secret Aiko

The enable secret you have chosen is the same as your enable password.

This is not recommended. Re-enter the enable secret.

Aiko(config)#enable secret Asuqa

Aiko(config)#exit

Aiko#

*Mar 1 02:16:48.067: %SYS-5-CONFIG_I: Configured from console by console

Aiko#exit

Aiko con0 is now available

Press RETURN to get started.

Aiko>enable

Password:Asuqa

Aiko#show running-config

Building configuration...

Current configuration : 609 bytes

!

version 12.2

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname Aiko

!

logging queue-limit 100

enable secret 5 $1$NTU5$EEYi0qfB1pGENzuPxDCyz.

enable password Aiko

!

--More—

Lab Exercise 1.6

目标:

熟练掌握如何为路由器各个配置模式设置密码.

设备需求:

Cisco 2501 路由器一台.

语法:

1.从全局配置模式进入线路配置模式,进入控制台口线路:

Aiko(config)#line {console|aux|vty} {start-number} [end-number]

2.设置密码:

Aiko(config-line)#password {password}

3.启用登陆:

Aiko(config-line)#login

解释:

当设置密码之后,如果不启用登陆命令,退出之后,路由器是不会提示输入密码的.控制台线路密码为控制台

线路所用;辅助接口(AUX)线路密码为辅助接口线路所用;虚拟终端线路(VTY)是为telnet 会话所用,路由

器根据Cisco IOS 软件版本不同,支持多条VTY 会话数目也不同.所有密码是以明文方式保存在

DRAM(running-config)文件里的.

配置实例一:

Aiko(config)#line console 0

Aiko(config-line)#password Aiko

Aiko(config-line)#login

Aiko(config-line)#line aux 0

Aiko(config-line)#password Aiko

Aiko(config-line)#login

Aiko(config-line)#exit

Aiko(config)#line vty 0 4

Aiko(config-line)#password Aiko

Aiko(config-line)#login

Aiko(config-line)#end

*Mar 1 03:04:43.491: %SYS-5-CONFIG_I: Configured from console by console

Aiko#exit

Aiko con0 is now available

Press RETURN to get started.

User Access Verification

Password:Aiko

Aiko>

Lab Exercise 1.7

目标:

熟练掌握如何为路由器关闭DNS 查询功能.

设备需求:

Cisco 2501 路由器一台.

语法:

全局配置模式下,关闭DNS 查询功能:

Aiko(config)#no ip domain lookup

解释:

默认情况下,路由器的DNS 查询是启用的,即当你错误的输入一条Cisco IOS 软件无法识别的命令的时候,

路由器会把这个命令当成主机名,然后向DNS服务器进行查询.一般实验性的环境中,如果我们没有DNS

务器,因为输入错误的命令而造成无用的查询,是非常耗时的.因此我们可以关闭这一功能.

配置实例一:

Aiko#Aiko

Translating "Aiko"...domain server (255.255.255.255)

Translating "Aiko"...domain server (255.255.255.255)

Translating "Aiko"...domain server (255.255.255.255)

% Unknown command or computer name, or unable to find computer address

Aiko#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Aiko(config)#no ip domain lookup

Aiko(config)#end

Aiko#

*Mar 1 03:13:12.371: %SYS-5-CONFIG_I: Configured from console by console

Aiko#Aiko

Translating "Aiko"

% Unknown command or computer name, or unable to find computer address

Aiko#

实验二.路由器连通性设置

Lab Exercise 2.1

目标:

熟练掌握如何连通路由器并进行相互间ping telnet 的测试.

设备需求:

Cisco 2501 路由器两台.

语法:

1.进入接口配置模式:

Aiko(config)#interface {type} {number}

2.为接口设置IP 地址信息:

Aiko(config-if)#ip address {ip-address} {mask}

3.根据需要,如果接口为串行接口,要为DCE 端设置时钟频率:

Aiko(config-if)#clock rate {speed}

4.开启接口:

Aiko(config-if)#no shutdown

解释:

默认所有接口都是处于关闭状态的,对于一般的以太网接口,设置了IP 地址信息之后,只需要开启该接口即

;对于串行接口,还要注意在DCE端设置时钟频率,以便为DTE端提供时钟频率进行同步.当然这一般用于

实验室背对背环境中,真正现实环境中,DCE是由CSU/DSU来提供,无须用户设置.另外要注意的是,端到端

(end-to-end)的连接,直连的接口必须处于同一子网.

配置实例一:

                    

路由器Aiko 配置如下:

Aiko#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Aiko(config)#interface serial 0

Aiko(config-if)#ip address 10.0.0.1 255.255.255.252

Aiko(config-if)#no shutdown

*Mar 1 00:13:45.839: %LINK-3-UPDOWN: Interface Serial0, changed state to down

Aiko(config-if)#end

Aiko#

*Mar 1 00:14:24.511: %LINK-3-UPDOWN: Interface Serial0, changed state to up

Aiko#

*Mar 1 00:14:25.515: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0,

changed state to up

Aiko#

路由器Asuqa 配置如下:

Asuqa#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Asuqa(config)#interface serial 0

Asuqa(config-if)#ip address 10.0.0.2 255.255.255.252

Asuqa(config-if)#clock rate 56000

Asuqa(config-if)#no shutdown

Asuqa(config-if)#end

Asuqa#

Sep 25 16:24:25.347: %SYS-5-CONFIG_I: Configured from console by console

Asuqa#

Sep 25 16:24:25.787: %LINK-3-UPDOWN: Interface Serial0, changed state to up

Asuqa#

Sep 25 16:24:26.791: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0,

changed state to up

Asuqa#

测试一:

Aiko#ping 10.0.0.2

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 10.0.0.2, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 36/36/40 ms

Aiko#

Asuqa#ping 10.0.0.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 36/36/40 ms

Asuqa#

测试二:

Aiko#telnet 10.0.0.2

Trying 10.0.0.2 ... Open

Password required, but none set

[Connection to 10.0.0.2 closed by foreign host]

Aiko#

解释:

telnet 到远端路由器的时候,如果对方的VTY 线路没有设置密码和启用登陆,将拒绝本地路由器telnet.

解决方案:

是在远端路由器设置VTY 线路的密码和启用登陆.路由器Asuqa 配置如下:

Asuqa#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Asuqa(config)#line vty 0 4

Asuqa(config-line)#password Aiko

Asuqa(config-line)#login

Asuqa(config-line)#end

Asuqa#

测试三:

Aiko#telnet 10.0.0.2

Trying 10.0.0.2 ... Open

User Access Verification

Password:Aiko

Asuqa>exit

[Connection to 10.0.0.2 closed by foreign host]

Aiko#

Lab Exercise 2.2

目标:

熟练掌握如何创建主机列表,并使用ping telnet 测试.

设备需求:

Cisco 2501 路由器两台.

准备工作:

确保两台路由器已经预先的端到端的连通.

语法:

全局配置模式下创建静态的IP 地址到主机名的映射:

Aiko(config)#ip host {hostname} {ip-address}

配置实例一:

                    

路由器Aiko 配置如下:

Aiko(config)#ip host Asuqa 10.0.0.2

Aiko(config)#end

Aiko#

测试一:

Aiko#Asuqa

Trying Asuqa (10.0.0.2)... Open

User Access Verification

Password:Aiko

Asuqa>exit

[Connection to Asuqa closed by foreign host]

Aiko#

测试二:

Aiko#ping Asuqa

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 10.0.0.2, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 36/40/48 ms

Aiko#

实验三 - 路由器恢复性设置

Lab Exercise 3.1

目标:

熟练掌握如何快速和恢复路由器到出厂设置.

设备需求:

Cisco 2501 路由器一台.

准备工作:

确保路由器之间有所配置.

语法:

1.进入全局配置模式,快速恢复路由器的接口配置到出厂配置:

Aiko(config)#default interface {type} {number}

2.特权模式下删除启动配置文件,路由器下次启动将全局恢复到出厂设置:

Aiko#erase startup-config

配置实例一:

Aiko#show running-config interface serial 0

Building configuration...

Current configuration : 62 bytes

!

interface Serial0

ip address 10.0.0.1 255.255.255.252

end

Aiko#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Aiko(config)#default interface serial 0

Building configuration...

Interface Serial0 set to default configuration

Aiko(config)#end

Aiko#show running-config interface serial 0

Building configuration...

Current configuration : 40 bytes

!

interface Serial0

no ip address

end

Aiko#

Lab Exercise 3.2

目标:

熟练掌握如何重启路由器和计划性的重启路由器.

设备需求:

Cisco 2501 路由器一台.

语法:

在特权模式下,重启或计划性的重启路由器:

Aiko#reload [at {hh:mm day year}|in {minutes}] [text]

解释:

可以定义路由器,立即重启或在多少分钟之后,或在具体的时间里重启,还可以指定重启原因.如果在重启之

,路由器配置文件被修改过,系统会提醒你是否保存修改.

配置实例一:

Aiko#reload in 1 the Administrator's mad

System configuration has been modified. Save? [yes/no]: n

Reload scheduled in 56 seconds

Reload reason: the Administrator's mad

Proceed with reload? [confirm]

Aiko#

*Mar 1 00:50:49.787: %SYS-5-SCHEDULED_RELOAD: Reload requested for 00:51:42

UTC Mon Mar 1 1993 at 00:50:42 UTC Mon Mar 1 1993 by console. Reload Reason: the

Administrator's mad.

Aiko#

测试:

Aiko#show reload

Reload scheduled in 47 seconds by console

Reload reason: the Administrator's mad

Aiko#

***

*** --- SHUTDOWN NOW ---

***

第二章 路由篇

实验一.静态路由基本配置

Lab Exercise 1.1

目标:

熟练掌握如何配置静态路由.

设备需求:

Cisco 2501 路由器两台.

准备工作:

确保路由器之间接口IP 地址信息已经设置好,能够端到端的ping .

语法:

进入全局配置模式,定义目标网络号,目标网络的子网掩码和下一跳地址或接口:

Aiko(config)#ip route {network} {mask} {next-hop-address|exit-interface} [distance]

解释:

选用下一跳地址和选择下一跳路由器的接口做为到达目标网络的出口的区别在于管理距离.选择前者,管理

距离为1;选择后者,管理距离为0 还可以在定义静态路由的时候指定管理距离.

配置实例一:

                     

路由器Asuqa 配置如下:

Asuqa#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Asuqa(config)#ip route 221.101.1.0 255.255.255.0 10.0.0.2

Asuqa(config)#end

Asuqa#

路由器Aiko 配置如下:

Aiko#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Aiko(config)#ip route 202.10.20.0 255.255.255.0 serial 0

Aiko(config)#end

测试:

Asuqa#show ip route static

S 221.101.1.0/24 [1/0] via 10.0.0.2

Asuqa#ping 221.101.1.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 221.101.1.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 32/35/36 ms

Asuqa#

Aiko#show ip route static

S 202.10.20.0/24 is directly connected, Serial0

Aiko#ping 202.10.20.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 202.10.20.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 36/36/36 ms

Aiko#

Lab Exercise 1.2

目标:

熟练掌握如何配置默认路由.

设备需求:

Cisco 2501 路由器两台.

准备工作:

确保路由器之间接口IP 地址信息已经设置好,能够端到端的ping .

语法:

进入全局配置模式,定义目标网络号,目标网络的子网掩码分别为0.0.0.0,并定义下一跳地址或接口:

Aiko(config)#ip route 0.0.0.0 0.0.0.0 {next-hop-address|exit-interface} [distance]

解释:

0.0.0.0 0.0.0.0 代表所有网络.选用下一跳地址和选择下一跳路由器的接口做为到达目标网络的出口的区别在于管理距离.选择前者,管理距离为1;选择后者,管理距离为0 还可以在定义静态路由的时候指定管理距离.

配置实例一:

                  

路由器Aiko 配置如下:

Aiko#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Aiko(config)#ip route 0.0.0.0 0.0.0.0 10.0.0.1

Aiko(config)#end

Aiko#

测试:

Aiko#show ip route static

S* 0.0.0.0/0 [1/0] via 10.0.0.1

Aiko#

实验二.距离矢量路由协议基本配置

Lab Exercise 2.1

目标:

熟练掌握如何配置RIP.

设备需求:

Cisco 2501 路由器两台.

准备工作:

确保路由器之间接口IP 地址信息已经设置好,能够端到端的ping .

语法:

1.进入全局配置模式,启用RIP:

Aiko(config)#router rip

2.定义要宣告的直连主类网络号:

Aiko(config-router)#network {network-number}

解释:

启用了RIP 路由协议之后,只需要宣告主类直连网络号,即可完成RIP 的配置.

配置实例一:

                  

路由器Asuqa 配置如下:

Asuqa#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Asuqa(config)#router rip

Asuqa(config-router)#network 202.10.20.0

Asuqa(config-router)#network 10.0.0.0

Asuqa(config-router)#end

Asuqa#

路由器Aiko 配置如下:

Aiko#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Aiko(config)#router rip

Aiko(config-router)#network 221.101.1.0

Aiko(config-router)#network 10.0.0.0

Aiko(config-router)#end

Aiko#

测试:

Asuqa#show ip route rip

R 221.101.1.0/24 [120/1] via 10.0.0.2, 00:00:21, Serial0

Asuqa#ping 221.101.1.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 221.101.1.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 32/35/36 ms

Asuqa#

Aiko#show ip route rip

R 202.10.20.0/24 [120/1] via 10.0.0.1, 00:00:02, Serial0

Aiko#ping 202.10.20.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 202.10.20.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 32/35/36 ms

Aiko#

Lab Exercise 2.2

目标:

熟练掌握如何配置RIPv2.

设备需求:

Cisco 2501 路由器两台.

准备工作:

确保路由器之间接口IP 地址信息已经设置好,能够端到端的ping .

语法:

1.进入全局配置模式,启用RIP:

Aiko(config)#router rip

2.启用RIP 版本2(RIPv2):

Aiko(config-router)#version 2

3.定义要宣告的直连主类网络号:

Aiko(config-router)#network {network-number}

解释:

启用了RIPv2 路由协议之后,只需要宣告主类直连网络号,即可完成RIPv2 的配置.

配置实例一:

                  

路由器Asuqa 配置如下:

Asuqa#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Asuqa(config)#router rip

Asuqa(config-router)#version 2

Asuqa(config-router)#network 202.10.20.0

Asuqa(config-router)#network 10.0.0.0

Asuqa(config-router)#end

Asuqa#

路由器Aiko 配置如下:

Aiko#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Aiko(config)#router rip

Aiko(config-router)#version 2

Aiko(config-router)#network 221.101.1.0

Aiko(config-router)#network 10.0.0.0

Aiko(config-router)#end

Aiko#

测试:

Asuqa#show ip route rip

R 221.101.1.0/24 [120/1] via 10.0.0.2, 00:00:21, Serial0

Asuqa#ping 221.101.1.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 221.101.1.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 32/35/36 ms

Asuqa#

Aiko#show ip route rip

R 202.10.20.0/24 [120/1] via 10.0.0.1, 00:00:02, Serial0

Aiko#ping 202.10.20.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 202.10.20.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 32/35/36 ms

Aiko#

实验三.路状态路由协议基本配置

Lab Exercise 3.1

目标:

熟练掌握如何配置单区域的OSPF.

设备需求:

Cisco 2501 路由器两台.

准备工作:

确保路由器之间接口IP 地址信息已经设置好,能够端到端的ping .

语法:

1.启用OSPF 进程:

Aiko(config)#router ospf {process-id}

2.定义参与OSPF 进程的接口和网络:

Aiko(config-router)#network {ip-address} {wildcard-mask} area {area-id}

解释:

OSPF 进程ID 可以使用1 65535 中任何一个整数,ID 只是本地的一个标识,即一个OSPF 网络,每台

OSPF 路由器的进程ID 是否一样,OSPF 网络能否正常运行无关.在定义OSPF 路由器要宣告的区域的时

,反掩码用来控制要宣告的范围,0 表示精确匹配,255 表示任意匹配.OSPF 网络中骨干区域为区域0,

此必须要有区域0.

配置实例一:

               

路由器Asuqa 配置如下:

Asuqa#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Asuqa(config)#router ospf 1

Asuqa(config-router)#network 10.0.0.1 0.0.0.0 area 0

Asuqa(config-router)#network 202.10.20.0 0.0.0.255 area 0

Asuqa(config-router)#end

Asuqa#

路由器Aiko 配置如下:

Aiko#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Aiko(config)#router ospf 65535

Aiko(config-router)#network 10.0.0.0 0.0.0.3 area 0

Aiko(config-router)#network 221.101.1.1 0.0.0.0 area 0

Aiko(config-router)#end

Aiko#

测试:

Asuqa#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface

221.101.1.1 1 FULL/ - 00:00:31 10.0.0.2 Serial0

Asuqa#show ip route ospf

O 221.101.1.0/24 [110/74] via 10.0.0.2