关于路由配置的题目,做完了以后发现ping不通,show ip route发现定义的动态路由在表里没有出现,跪求各路大侠帮助!!!
题目:
两个路由器相连的网络使用了子网掩码为30位的网络号192.168.1.4/30。因此该子网络只拥有4个IP,分别为192.168.1.4 192.168.1.5 .192.168.1.6 192.168.1.7,其中1.4为网络号,1.7为广播号,因此只有1.5和1.6两个IP可用。 注:在实验中,我们用Loopback口代替4台PC。R1的S0/0口设为DCE端连接到R2 的S0/1口。
我的做法:
R1(config)#int lo1
%LINK-5-CHANGED: Interface Loopback1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback1, changed state to up
R1(config-if)#ip address 10.1.1.1 255.255.255.0R1(config-if)#exitR1(config)#int lo2
%LINK-5-CHANGED: Interface Loopback2, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback2, changed state to up
R1(config-if)#ip address 2.2.2.2 255.255.255.0R1(config-if)#exitR1(config)#int lo3
%LINK-5-CHANGED: Interface Loopback3, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback3, changed state to up
R1(config-if)#ip address 10.3.3.1 255.255.255.0R1(config-if)#exitR1(config)#route ripR1(config-router)#network 10.0.0.0R1(config-router)#network 2.0.0.0R1(config-router)#network 192.168.1.0R1(config-router)#exit
R2(config)#int lo1
%LINK-5-CHANGED: Interface Loopback1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback1, changed state to up
R2(config-if)#ip address 10.2.2.4 255.255.255.0R2(config-if)#no shutdownR2(config-if)#exitR2(config)#route ripR2(config-router)#network 192.168.1.0R2(config-router)#network 10.0.0.0R2(config-router)#exit
|