diff --git "a/22 \345\210\230\345\256\266\344\274\237/20260509 \351\235\231\346\200\201\350\267\257\347\224\261\347\232\204\351\205\215\347\275\256.md" "b/22 \345\210\230\345\256\266\344\274\237/20260509 \351\235\231\346\200\201\350\267\257\347\224\261\347\232\204\351\205\215\347\275\256.md" new file mode 100644 index 0000000000000000000000000000000000000000..0b89332a2f68a0d0c33495a7642f24f6f77cc1b1 --- /dev/null +++ "b/22 \345\210\230\345\256\266\344\274\237/20260509 \351\235\231\346\200\201\350\267\257\347\224\261\347\232\204\351\205\215\347\275\256.md" @@ -0,0 +1,154 @@ +# **作业** + +![image-20260509165510914](https://gitee.com/liu-jiawei070228/imgs/raw/master/pic/upgit_20260509_1778316912.png) + +Router> + +Router> + +Router> + +Router>en + +Router>enable + +Router#conf t + +Enter configuration commands, one per line. End with CNTL/Z. + +Router(config)#iip rou + +Router(config)#iip rou + +Router(config)#iip rou + +Router(config)#ip rou + +Router(config)#ip route 192.168.2.0 255.255.255.0 10.254.10.2 + +Router(config)#ip + +Router(config)#ip rou + +Router(config)#ip route 192.168.3.0 255.255.255.0 10.254.10.2 + +Router(config)# + +![image-20260509170350350](https://gitee.com/liu-jiawei070228/imgs/raw/master/pic/upgit_20260509_1778317431.png) + +Router>enable + +Router# + +Router#configure terminal + +Enter configuration commands, one per line. End with CNTL/Z. + +Router(config)#interface Serial2/0 + +Router(config-if)# + +Router(config-if)#exit + +Router(config)#interface Serial3/0 + +Router(config-if)# + +Router(config-if)#exit + +Router(config)#interface Serial2/0 + +Router(config-if)# + +Router(config-if)#exit + +Router(config)#interface Serial3/0 + +Router(config-if)#no shutdown + +Router(config-if)# + +%LINK-5-CHANGED: Interface Serial3/0, changed state to up + +ip address 20.20.10.1 255.0.0.0 + +Router(config-if)# + +%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial3/0, changed state to up + +ip address 20.20.10.1 255.0.0.0 + +Router(config-if)#ex + +Router(config)#ip rou + +Router(config)#ip rou + +Router(config)#ip rou + +Router(config)#ip route 192.168.1.0 255.255.255.0 10.254.10.1 + +Router(config)#ip route 192.168.3.0 255.255.255.0 20.20.10.2 + +Router(config)# + +Router(config)#interface Serial3/0 + +Router(config-if)# + +![image-20260509165748657](C:\Users\Administrator\AppData\Roaming\Typora\typora-user-images\image-20260509165748657.png) + +Router>en + +Router>enable + +Router#conf + +Configuring from terminal, memory, or network [terminal]? + +Enter configuration commands, one per line. End with CNTL/Z. + +Router(config)#ip r + +Router(config)#ip route 192.168.1.0 255.255.255.0 20.20.10.1 + +%Invalid next hop address (it's this router) + +Router(config)#ip route 192.168.1.0 255.255.255.0 20.20.10.1 + +%Invalid next hop address (it's this router) + +Router(config)#interface FastEthernet0/0 + +Router(config-if)# + +Router(config-if)#exit + +Router(config)#interface Serial3/0 + +Router(config-if)#ip address 20.20.10.2 255.255.255.0 + +Router(config-if)#ip rou + +Router(config-if)#ip rou + +Router(config-if)#ip rou + +Router(config-if)#ip rou + +Router(config-if)#ex + +Router(config)#ip rou + +Router(config)#ip rou + +Router(config)#ip route 192.168.1.0 255.255.255.0 20.20.10.1 + +Router(config)#ip route 192.168.2.0 255.255.255.0 20.20.10.1 + +Router(config)# + + + +![image-20260509165636195](https://gitee.com/liu-jiawei070228/imgs/raw/master/pic/upgit_20260509_1778316997.png) + diff --git "a/22 \345\210\230\345\256\266\344\274\237/20260513 RIP\345\212\250\346\200\201\350\267\257\347\224\261.md" "b/22 \345\210\230\345\256\266\344\274\237/20260513 RIP\345\212\250\346\200\201\350\267\257\347\224\261.md" new file mode 100644 index 0000000000000000000000000000000000000000..9d5e2a36b0c177b16acc4ddf8fd919fff65ec6c8 --- /dev/null +++ "b/22 \345\210\230\345\256\266\344\274\237/20260513 RIP\345\212\250\346\200\201\350\267\257\347\224\261.md" @@ -0,0 +1,171 @@ +# **作业** + +![image-20260513111307205](https://gitee.com/liu-jiawei070228/imgs/raw/master/pic/upgit_20260513_1778641988.png) + +``` +Switch(config)#h RSW +RSW(config)#ip routing +RSW(config)#int f0/1 +RSW(config-if)#no sw +RSW(config-if)#ip add 192.168.1.254 255.255.255.0 +RSW(config-if)#no shut +RSW(config-if)#exit +RSW(config)#int f0/2 +RSW(config-if)#no sw +RSW(config-if)# +RSW(config-if)#ip add 200.16.1.5 255.255.255.252 +RSW(config-if)#no shut +RSW(config-if)#exit +RSW(config)#do sh ip rout +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 not set + +C 192.168.1.0/24 is directly connected, FastEthernet0/1 + 200.16.1.0/30 is subnetted, 1 subnets +C 200.16.1.4 is directly connected, FastEthernet0/2 + +RSW(config)#route rip +RSW(config-router)#ver 2 +RSW(config-router)#net 192.168.1.0 +RSW(config-router)#net 200.16.1.4 +RSW(config-router)#EXIT +RSW(config)#do sh ip rout +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 not set + +C 192.168.1.0/24 is directly connected, FastEthernet0/1 +R 192.168.2.0/24 [120/1] via 200.16.1.6, 00:00:02, FastEthernet0/2 +R 192.168.3.0/24 [120/2] via 200.16.1.6, 00:00:02, FastEthernet0/2 + 200.16.1.0/30 is subnetted, 1 subnets +C 200.16.1.4 is directly connected, FastEthernet0/2 +R 200.16.2.0/24 [120/1] via 200.16.1.6, 00:00:02, FastEthernet0/2 +``` + +``` +Router(config)#h RA +RA(config)#int f0/0 +RA(config-if)#no shut +RA(config-if)#ip add 200.16.1.6 255.255.255.252 +RA(config-if)#int f0/1 +RA(config-if)#no shut +RA(config-if)#ip add 192.168.2.254 255.255.255.0 +RA(config-if)#no shut +RA(config-if)#exit +RA(config)#int s0/0/0 +RA(config-if)#ip add 200.16.2.5 255.255.255.252 +RA(config-if)#no shut +RA(config-if)#clock rate 64000 +RA(config-if)#no shut +RA(config-if)#exit +RA(config)#do sh ip rout +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 not set + +C 192.168.2.0/24 is directly connected, FastEthernet0/1 + 200.16.1.0/30 is subnetted, 1 subnets +C 200.16.1.4 is directly connected, FastEthernet0/0 + 200.16.2.0/30 is subnetted, 1 subnets +C 200.16.2.4 is directly connected, Serial0/0/0 + +RA(config)#route rip +RA(config-router)#ver 2 +RA(config-router)#net 192.168.2.0 +RA(config-router)#net 200.16.1.4 +RA(config-router)#net 200.16.2.4 +RA(config-router)#exit +RA(config)#do sh 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 not set + +R 192.168.1.0/24 [120/1] via 200.16.1.5, 00:00:27, FastEthernet0/0 +C 192.168.2.0/24 is directly connected, FastEthernet0/1 +R 192.168.3.0/24 [120/1] via 200.16.2.6, 00:00:12, Serial0/0/0 + 200.16.1.0/30 is subnetted, 1 subnets +C 200.16.1.4 is directly connected, FastEthernet0/0 + 200.16.2.0/30 is subnetted, 1 subnets +C 200.16.2.4 is directly connected, Serial0/0/0 +``` + +------ + +### RB + +``` +Router>ena +Router#conf +RB\(config)#H RB +RB(config)#int s0/0/1 +RB(config-if)#no shut +RB(config-if)#ip add 200.16.2.6 255.255.255.252 +RB(config-if)#no shut +RB(config-if)#exit +RB(config)#int f0/1 +RB(config-if)#no shut +RB(config-if)#ip add 192.168.3.254 255.255.255.0 +RB(config-if)#no shut +RB(config-if)#exit +RB(config)#do sh 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 not set + +C 192.168.3.0/24 is directly connected, FastEthernet0/1 + 200.16.2.0/30 is subnetted, 1 subnets +C 200.16.2.4 is directly connected, Serial0/0/1 + +RB(config)#route rip +RB(config-router)#ver 2 +RB(config-router)#net 192.168.3.0 +RB(config-router)#net 200.16.2.4 +RB(config-router)#do sh ip routedo +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 not set + +R 192.168.1.0/24 [120/2] via 200.16.2.5, 00:00:22, Serial0/0/1 +R 192.168.2.0/24 [120/1] via 200.16.2.5, 00:00:22, Serial0/0/1 +C 192.168.3.0/24 is directly connected, FastEthernet0/1 +R 200.16.1.0/24 [120/1] via 200.16.2.5, 00:00:22, Serial0/0/1 + 200.16.2.0/30 is subnetted, 1 subnets +C 200.16.2.4 is directly connected, Serial0/0/1 +``` \ No newline at end of file