路由器的以太网接口和计算机的的IP地址已经配置完成
你需要配置路由器的广域网接口为帧中继两个子接口实现三个路由器全互联
配置RIP实现动态路由。
实验过程: 在RouterA上Router(config)#hostname Router0
Router0(config)#interface serial 0/1/0
Router0(config-if)#encapsulation frame-relay 在物理接口配置封装帧中继
Router0(config-if)#no sh 启用物理接口
%LINK-5-CHANGED: Interface Serial0/1/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1/0, changed state to up
Router0(config-if)#ex
Router0(config)#interface serial 0/1/0.1 ?
multipoint Treat as a multipoint link
point-to-point Treat as a point-to-point link
<cr>
Router0(config)#interface serial 0/1/0.1 point-to-point 配置逻辑子接口,点到点封装
%LINK-5-CHANGED: Interface Serial0/1/0.1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1/0.1, changed state to up
Router0(config-subif)#ip address 192.168.3.2 255.255.255.0 配置子接口IP地址
Router0(config-subif)#description Link Router0 DLCI 20 配置描述
Router0(config-subif)#frame-relay interface-dlci 20 数据链路连接标识符
Router0(config-subif)#ex
Router0(config)#interface serial 0/1/0.2 point-to-point
%LINK-5-CHANGED: Interface Serial0/1/0.2, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1/0.2, changed state to up
Router0(config-subif)#ip address 192.168.2.2 255.255.255.0
Router0(config-subif)#frame-relay interface-dlci 21
Router0(config-subif)#exi
Router(config)#router rip
Router(config-router)#network 192.168.2.0
Router(config-router)#network 192.168.3.0
Router(config-router)#network 172.16.0.0
(注意,192.168.0.0不能代表192.168.2.0,这里在配置的时候,误以为可以代表。作为,192.168.X.0是C类地址,和172.16.0.0不同!)