静态路由和缺省路由的配置
- 格式:doc
- 大小:52.50 KB
- 文档页数:3
实验七、静态路由和缺省路由的配置
实验课程:计算机网络工程 实验项目:静态路由和缺省路由的配置
系:计算机系 班级:08网络工程 姓名:熊江红 学号:200810803050
一、实验目的和要求
1、掌握路由器的路由表的概念。
2、掌握路由器静态路由和缺省的概念。
3、掌握路由器静态路由和缺省路由的基本配置命令和配置方法。
二、实验设备:
硬件要求:PC机
软件配置:Cisco Packet Tracer
三、实验内容
在画图时选择RouterA的s1端口作为DCE端口。
四,实验步骤
路由器的IP配置并激活 Router(config)#hostname A
A(config)#int fa0/0
A(config-if)#ip add 172.16.1.1 255.255.255.0
A(config-if)#no shut
A(config)#int s2/0
A(config-if)#ip add 172.16.2.2 255.255.255.0
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int s2/0
Router(config-if)#ip add 172.16.2.1 255.255.255.0
Router(config-if)#no shut
Router(config)#int fa0/0
Router(config-if)#
Router(config-if)#ip add 172.16.3.1 255.255.255.0
Router(config-if)#no shut
路由器同步串行口同步配置
A(config-if)#clock rate 56000
Router(config-if)#clock rate 56000
配置静态路由(默认路由配置)
A(config)#ip route 0.0.0.0 0.0.0.0 172.16.2.1
A#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is 172.16.2.1 to network 0.0.0.0
172.16.0.0/24 is subnetted, 2 subnets
C 172.16.1.0 is directly connected, FastEthernet0/0
C 172.16.2.0 is directly connected, Serial2/0
S* 0.0.0.0/0 [1/0] via 172.16.2.1
Router(config)#ip route 0.0.0.0 0.0.0.0 172.16.2.2
172.16.0.0/24 is subnetted, 2 subnets
C 172.16.2.0 is directly connected, Serial2/0
C 172.16.3.0 is directly connected, FastEthernet0/0
S* 0.0.0.0/0 [1/0] via 172.16.2.2
实验运行结果