卷一 RIP练习题

3 Configure the four routers in Figure 6-22 to run RIP. RTC is running IOS 10.3 and for corporate policy reasons cannot be upgraded, therefore can only run RIPv1.
4 Configure RTB and RTD in Figure 6-22 to authenticate the RIP updates being exchanged over the serial link.
6 Configure RTA and RTB in Figure 6-22 to run RIPng. The following IPv6 prefixes are to be assigned to interfaces:
RTA:
2001:DB8:0:1::/64
2001:DB8:0:2::/64
RTB:
2001:DB8:0:3::/64
2001:DB8:0:2::/64
6 Configure RTA and RTB in Figure 6-22 to run RIPng. The following IPv6 prefixes are to be assigned to interfaces:
RTA:
2001:DB8:0:1::/64
2001:DB8:0:2::/64
RTB:
2001:DB8:0:3::/64
2001:DB8:0:2::/64
解答
3,RTA
conf t
int f0/0
ip ad 192.168.2.65 255.255.255.240
ip rip send v 1 2
ip rip receive v 1 2
no shut
int l 0
ip ad 192.168.1.112 255.255.255.224
router rip
ver 2
no auto
net 192.168.1.0
net 192.168.2.0
end
conf t
int f0/0
ip ad 192.168.2.65 255.255.255.240
ip rip send v 1 2
ip rip receive v 1 2
no shut
int l 0
ip ad 192.168.1.112 255.255.255.224
router rip
ver 2
no auto
net 192.168.1.0
net 192.168.2.0
end
RTB
conf t
int f0/0
ip ad 192.168.2.66 255.255.255.240
no shut
ip rip send ver 1 2
ip rip receive ver 1 2
int l 0
ip ad 192.168.1.189 255.255.255.240
int s2/0
ip ad 192.168.1.153 255.255.255.248
encap f
no arp f
no frame inver
frame map ip 192.168.1.154 204 b
router rip
ver 2
no au
net 192.168.1.0
net 192.168.2.0
end
conf t
int f0/0
ip ad 192.168.2.66 255.255.255.240
no shut
ip rip send ver 1 2
ip rip receive ver 1 2
int l 0
ip ad 192.168.1.189 255.255.255.240
int s2/0
ip ad 192.168.1.153 255.255.255.248
encap f
no arp f
no frame inver
frame map ip 192.168.1.154 204 b
router rip
ver 2
no au
net 192.168.1.0
net 192.168.2.0
end
RTC
conf t
int f 0/0
ip ad 192.168.2.67 255.255.255.240
no shut
int s2/1
ip ad 192.168.2.129 255.255.255.240
encap f
no arp f
no frame inver
frame map ip 192.168.2.130 314 b
no shut
int l 0
ip ad 192.168.2.97 255.255.255.240
router rip
net 192.168.2.0
end
conf t
int f 0/0
ip ad 192.168.2.67 255.255.255.240
no shut
int s2/1
ip ad 192.168.2.129 255.255.255.240
encap f
no arp f
no frame inver
frame map ip 192.168.2.130 314 b
no shut
int l 0
ip ad 192.168.2.97 255.255.255.240
router rip
net 192.168.2.0
end
RTD
conf t
int l 0
ip ad 192.168.1.93 255.255.255.240
int s 2/0
ip ad 192.168.1.154 255.255.255.248
encap f
no arp f
no frame inver
frame map ip 192.168.1.153 402 b
no shut
int s2/1
ip ad 192.168.2.130 255.255.255.240
encap f
no arp f
no frame inver
frame map ip 192.168.2.129 413 b
ip rip send v 1
ip rip receive v 1
no shut
router rip
ver 2
no au
net 192.168.1.0
net 192.168.2.0
end
conf t
int l 0
ip ad 192.168.1.93 255.255.255.240
int s 2/0
ip ad 192.168.1.154 255.255.255.248
encap f
no arp f
no frame inver
frame map ip 192.168.1.153 402 b
no shut
int s2/1
ip ad 192.168.2.130 255.255.255.240
encap f
no arp f
no frame inver
frame map ip 192.168.2.129 413 b
ip rip send v 1
ip rip receive v 1
no shut
router rip
ver 2
no au
net 192.168.1.0
net 192.168.2.0
end
4,
RTB
conf t
key chain FR
key 1
key-string R2_R4
int s2/0
ip rip authentication key-chain FR
ip rip authentication mode md5
end
RTD
conf t
key-chain FR
key 1
key-string R2_R4
int s2/0
ip rip authentication key-chain FR
ip rip authentication mode md5
end
6,
RTA
conf t
ipv6 unicast-routing
ipv6 router rip cisco
int l 0
ipv ad 2001:db8:0:1::1/64
ipv rip cisco enable
int f0/0
ipv ad 2001:db8:0:2::1/64
ipv rip cisco enable
end
RTB
conf t
ipv6 unicast-routing
ipv6 router rip cisco
int l 0
ipv ad 2001:db8:0:3::2/64
ipv rip cisco enable
int f 0/0
ipv ad 2001:db8:0:2::2/64
ipv rip cisco enable
end
校验结果
R1#sh ip route rip
192.168.1.0/24 is variably subnetted, 4 subnets, 3 masks
R 192.168.1.80/28 [120/2] via 192.168.2.66, 00:00:25, FastEthernet0/0
R 192.168.1.176/28 [120/1] via 192.168.2.66, 00:00:25, FastEthernet0/0
R 192.168.1.152/29 [120/1] via 192.168.2.66, 00:00:25, FastEthernet0/0
192.168.2.0/28 is subnetted, 3 subnets
R 192.168.2.96 [120/1] via 192.168.2.67, 00:00:14, FastEthernet0/0
R 192.168.2.128 [120/1] via 192.168.2.67, 00:00:14, FastEthernet0/0
R1#sh ipv6 route
IPv6 Routing Table - 7 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
U - Per-user Static route
I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
C 2001:DB8:0:1::/64 [0/0]
via ::, Loopback0
L 2001:DB8:0:1::1/128 [0/0]
via ::, Loopback0
C 2001:DB8:0:2::/64 [0/0]
via ::, FastEthernet0/0
L 2001:DB8:0:2::1/128 [0/0]
via ::, FastEthernet0/0
R 2001:DB8:0:3::/64 [120/2]
via FE80::C800:8FF:FE14:0, FastEthernet0/0
L FE80::/10 [0/0]
via ::, Null0
L FF00::/8 [0/0]
via ::, Null0
192.168.1.0/24 is variably subnetted, 4 subnets, 3 masks
R 192.168.1.80/28 [120/2] via 192.168.2.66, 00:00:25, FastEthernet0/0
R 192.168.1.176/28 [120/1] via 192.168.2.66, 00:00:25, FastEthernet0/0
R 192.168.1.152/29 [120/1] via 192.168.2.66, 00:00:25, FastEthernet0/0
192.168.2.0/28 is subnetted, 3 subnets
R 192.168.2.96 [120/1] via 192.168.2.67, 00:00:14, FastEthernet0/0
R 192.168.2.128 [120/1] via 192.168.2.67, 00:00:14, FastEthernet0/0
R1#sh ipv6 route
IPv6 Routing Table - 7 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
U - Per-user Static route
I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
C 2001:DB8:0:1::/64 [0/0]
via ::, Loopback0
L 2001:DB8:0:1::1/128 [0/0]
via ::, Loopback0
C 2001:DB8:0:2::/64 [0/0]
via ::, FastEthernet0/0
L 2001:DB8:0:2::1/128 [0/0]
via ::, FastEthernet0/0
R 2001:DB8:0:3::/64 [120/2]
via FE80::C800:8FF:FE14:0, FastEthernet0/0
L FE80::/10 [0/0]
via ::, Null0
L FF00::/8 [0/0]
via ::, Null0
R2#sh ip route rip
192.168.1.0/24 is variably subnetted, 4 subnets, 3 masks
R 192.168.1.96/27 [120/1] via 192.168.2.65, 00:00:11, FastEthernet0/0
R 192.168.1.80/28 [120/1] via 192.168.1.154, 00:00:25, Serial2/0
192.168.2.0/28 is subnetted, 3 subnets
R 192.168.2.96 [120/1] via 192.168.2.67, 00:00:23, FastEthernet0/0
R 192.168.2.128 [120/1] via 192.168.2.67, 00:00:23, FastEthernet0/0
[120/1] via 192.168.1.154, 00:00:25, Serial2/0
R2#sh ipv6 route
IPv6 Routing Table - 7 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
U - Per-user Static route
I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
R 2001:DB8:0:1::/64 [120/2]
via FE80::C800:DFF:FE68:0, FastEthernet0/0
C 2001:DB8:0:2::/64 [0/0]
via ::, FastEthernet0/0
L 2001:DB8:0:2::2/128 [0/0]
via ::, FastEthernet0/0
C 2001:DB8:0:3::/64 [0/0]
via ::, Loopback0
L 2001:DB8:0:3::2/128 [0/0]
via ::, Loopback0
L FE80::/10 [0/0]
via ::, Null0
L FF00::/8 [0/0]
via ::, Null0
192.168.1.0/24 is variably subnetted, 4 subnets, 3 masks
R 192.168.1.96/27 [120/1] via 192.168.2.65, 00:00:11, FastEthernet0/0
R 192.168.1.80/28 [120/1] via 192.168.1.154, 00:00:25, Serial2/0
192.168.2.0/28 is subnetted, 3 subnets
R 192.168.2.96 [120/1] via 192.168.2.67, 00:00:23, FastEthernet0/0
R 192.168.2.128 [120/1] via 192.168.2.67, 00:00:23, FastEthernet0/0
[120/1] via 192.168.1.154, 00:00:25, Serial2/0
R2#sh ipv6 route
IPv6 Routing Table - 7 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
U - Per-user Static route
I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
R 2001:DB8:0:1::/64 [120/2]
via FE80::C800:DFF:FE68:0, FastEthernet0/0
C 2001:DB8:0:2::/64 [0/0]
via ::, FastEthernet0/0
L 2001:DB8:0:2::2/128 [0/0]
via ::, FastEthernet0/0
C 2001:DB8:0:3::/64 [0/0]
via ::, Loopback0
L 2001:DB8:0:3::2/128 [0/0]
via ::, Loopback0
L FE80::/10 [0/0]
via ::, Null0
L FF00::/8 [0/0]
via ::, Null0
R3#sh ip rout rip
192.168.1.0/24 is variably subnetted, 5 subnets, 4 masks
R 192.168.1.96/27 [120/1] via 192.168.2.65, 00:00:11, FastEthernet0/0
R 192.168.1.80/28 [120/1] via 192.168.2.130, 00:00:05, Serial2/1
R 192.168.1.0/24 [120/1] via 192.168.2.66, 00:00:08, FastEthernet0/0
[120/1] via 192.168.2.65, 00:00:11, FastEthernet0/0
[120/1] via 192.168.2.130, 00:00:05, Serial2/1
R 192.168.1.176/28 [120/1] via 192.168.2.66, 00:00:08, FastEthernet0/0
R 192.168.1.152/29 [120/1] via 192.168.2.66, 00:00:08, FastEthernet0/0
[120/1] via 192.168.2.130, 00:00:05, Serial2/1
192.168.1.0/24 is variably subnetted, 5 subnets, 4 masks
R 192.168.1.96/27 [120/1] via 192.168.2.65, 00:00:11, FastEthernet0/0
R 192.168.1.80/28 [120/1] via 192.168.2.130, 00:00:05, Serial2/1
R 192.168.1.0/24 [120/1] via 192.168.2.66, 00:00:08, FastEthernet0/0
[120/1] via 192.168.2.65, 00:00:11, FastEthernet0/0
[120/1] via 192.168.2.130, 00:00:05, Serial2/1
R 192.168.1.176/28 [120/1] via 192.168.2.66, 00:00:08, FastEthernet0/0
R 192.168.1.152/29 [120/1] via 192.168.2.66, 00:00:08, FastEthernet0/0
[120/1] via 192.168.2.130, 00:00:05, Serial2/1
R4#sh ip route rip
192.168.1.0/24 is variably subnetted, 4 subnets, 3 masks
R 192.168.1.96/27 [120/2] via 192.168.1.153, 00:00:12, Serial2/0
R 192.168.1.176/28 [120/1] via 192.168.1.153, 00:00:12, Serial2/0
192.168.2.0/28 is subnetted, 3 subnets
R 192.168.2.96 [120/1] via 192.168.2.129, 00:00:15, Serial2/1
R 192.168.2.64 [120/1] via 192.168.1.153, 00:00:12, Serial2/0
[120/1] via 192.168.2.129, 00:00:15, Serial2/1
192.168.1.0/24 is variably subnetted, 4 subnets, 3 masks
R 192.168.1.96/27 [120/2] via 192.168.1.153, 00:00:12, Serial2/0
R 192.168.1.176/28 [120/1] via 192.168.1.153, 00:00:12, Serial2/0
192.168.2.0/28 is subnetted, 3 subnets
R 192.168.2.96 [120/1] via 192.168.2.129, 00:00:15, Serial2/1
R 192.168.2.64 [120/1] via 192.168.1.153, 00:00:12, Serial2/0
[120/1] via 192.168.2.129, 00:00:15, Serial2/1
转载于:https://blog.51cto.com/matthewyin/23537