问题 问答题

某大学城局域网的拓扑结构如图12-4所示,图中路由器R1、R2、R3均运行基于距离矢量算法的RIP路由协议,并且图中给出了路由器R1、R2、R3各端口的IP地址信息


结合图12-4所示的网络拓扑结构图,将以下路由器R1的配置信息中空缺处(1)~(9)处的内容填写完整。
Router>en(进入特权模式)
Router#config terminal(进入配置模式)
Router(config)# ______
R1(config)# no logging console
R1(config)#interface fastethernet 0/1
R1(config-if)# ip address 192.168.100.1 255.255.255.0
R1(config-if)# ______
______
R1(config)# interface serial 0(进入端口S0配置子模式)
R1(config-if)# ______ (设置当前端口IP地址)
R1(config-if)#no shutdown
R1(config)# ______
R1(config-if)# ip address 192.168.65.2 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)# exit(退出当前端口配置子模式)
R1(config)# ______
R1(config-router)# ______
R1(config-router)# ______
R1(config-router)#network 192.168.65.0
R1(config-router)# 192.168.67.0
R1(config-router)#end(退出回到特权模式)
R1# ______ (将配置信息保存到非易失性RAM中)

答案

参考答案:hostname R1;
no shutdown;
R1(config-if)# exit;
192.168.67.1 255.255.255.0;
interface serial 1;
ip routing;
router rip;
network 192.168.100.0;
copy run start

解析:从图12-4的拓扑结构中,得到路由器R1的完整配置信息
Router>en (进入特权模式)
Router#config terminal (进入配置模式)
Router(config)# hostname R1 (主机名为hostname)
R1(config)# no logging console
R1(config)#interface fastethernet 0/1
R1(config-if)# ip address 192.168.100.1 255.255.255.0
R1(config-if)# no shutdown (启动端口fastethernet 0/1)
R1(config-if)# exit
R1(config)# interface serial 0 (进入端口S0配置子模式)
R1(config-if)# 192.168.67.1 255.255.255.0 (设置当前端口IP地址)
R1(config-if)#no shutdown
R1(config)# interface serial 1
R1(config-if)# ip address 192.168.65.2 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)# exit (退出当前端口配置子模式)
R1(config)# ip routing (启动三层路由功能)
R1(config-router)# router rip (配置路由协议RIP)
R1(config-router)# network 192.168.100.0 (设备直接连接到网络192.168.100.0)
R1(config-router)#network 192.168.65.0
R1(config-router)# 192.168.67.0
R1(config-router)#end (退出回到特权模式)
R1# copy run start (将配置信息保存到非易失性RAM中)

填空题
填空题