From 1f7185ad63f8aad7cc0530dff80705186b4a7adf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=9F=E6=99=BA=E9=91=AB?= <3615595621@qq.com> Date: Sat, 9 May 2026 17:21:36 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E7=90=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...31\346\200\201\350\267\257\347\224\261.md" | 175 ++++++++++++++++++ 1 file changed, 175 insertions(+) create mode 100644 "25 \346\261\237\346\231\272\351\221\253/20260509 \351\235\231\346\200\201\350\267\257\347\224\261.md" diff --git "a/25 \346\261\237\346\231\272\351\221\253/20260509 \351\235\231\346\200\201\350\267\257\347\224\261.md" "b/25 \346\261\237\346\231\272\351\221\253/20260509 \351\235\231\346\200\201\350\267\257\347\224\261.md" new file mode 100644 index 00000000..81c75943 --- /dev/null +++ "b/25 \346\261\237\346\231\272\351\221\253/20260509 \351\235\231\346\200\201\350\267\257\347\224\261.md" @@ -0,0 +1,175 @@ +练习, + +![image-20260509165133480](https://gitee.com/jiang-zhixin39/gods-picture/raw/master/pic/upgit_20260509_1778316693.png) + +![image-20260509165209458](https://gitee.com/jiang-zhixin39/gods-picture/raw/master/pic/upgit_20260509_1778316729.png) + + + + + +作业, + +![image-20260509171309751](https://gitee.com/jiang-zhixin39/gods-picture/raw/master/pic/upgit_20260509_1778317989.png) + + + +笔记 + + + +第一个路由器代码 + +``` +Router>en +Router#conf t +Enter configuration commands, one per line. End with CNTL/Z. +Router(config)#int f0/0 +Router(config-if)#no shu\ + ^ +% Invalid input detected at '^' marker. + +Router(config-if)#no shu + +Router(config-if)# +%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up + +%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up + +Router(config-if)#ip ad +Router(config-if)#ip address +Router(config-if)#ip address 192.168.1.254 255.255.255.0 +Router(config-if)#ex +Router(config)#int s2/0 +Router(config-if)#no shu + +%LINK-5-CHANGED: Interface Serial2/0, changed state to down +Router(config-if)#clo +Router(config-if)#clock r +Router(config-if)#clock rate 64000 +This command applies only to DCE interfaces +Router(config-if)# +%LINK-5-CHANGED: Interface Serial2/0, changed state to up + +%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up + +Router(config-if)#ip ad +Router(config-if)#ip address 10.254.10.1 255.255.255.0 +Router(config-if)#end +Router# +%SYS-5-CONFIG_I: Configured from console by console + +Router#conf t +Enter configuration commands, one per line. End with CNTL/Z. +Router(config)#ip +Router(config)#ip ra +Router(config)#iprou +Router(config)#ip rou +Router(config)#ip route 192.168.2.0 255.255.255.0 10.254.10.2 +Router(config)#ip route 20.20.10.2 255.255.255.0 10.254.10.2 +%Inconsistent address and mask +Router(config)#ip route 192.168.3.0 255.255.255.0 20.20.10.2 +Router(config)# +``` + +第二个路由器代码 + +``` +Router>en +Router#conf t +Enter configuration commands, one per line. End with CNTL/Z. +Router(config)#int s2/0 +Router(config-if)#no shu + +Router(config-if)# +%LINK-5-CHANGED: Interface Serial2/0, changed state to up + +Router(config-if)# +%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up + +Router(config-if)#clo +Router(config-if)#clock +Router(config-if)#clock rate 64000 +Router(config-if)#ip ad +Router(config-if)#ip address 10.254.10.2 255.255.255.0 +Router(config-if)#int f0/0 +Router(config-if)#no shu + +Router(config-if)# +%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up + +%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up + +Router(config-if)#ip ad +Router(config-if)#ip address 192.168.2.254 255.255.255.0 +Router(config-if)#int s3/0 +Router(config-if)#no shu + +%LINK-5-CHANGED: Interface Serial3/0, changed state to down +Router(config-if)#clo +Router(config-if)#clock +Router(config-if)#clock rate 64000 +Router(config-if)#ip ad +Router(config-if)#ip address 20.20.10.1 255.255.255.0 +Router(config-if)# +%LINK-5-CHANGED: Interface Serial3/0, changed state to up + +%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial3/0, changed state to up + +Router(config-if)#end +Router# +%SYS-5-CONFIG_I: Configured from console by console + +Router#conf t +Enter configuration commands, one per line. End with CNTL/Z. +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>en +Router#conf t +Enter configuration commands, one per line. End with CNTL/Z. +Router(config)#int s2/0 +Router(config-if)#no shu + +Router(config-if)# +%LINK-5-CHANGED: Interface Serial2/0, changed state to up + +Router(config-if)# +%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up + +Router(config-if)#int f0/0 +Router(config-if)#no shu + +Router(config-if)# +%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up + +%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up + +Router(config-if)#ip ad +Router(config-if)#ip address 192.168.3.254 +% Incomplete command. +Router(config-if)#ip address 192.168.3.254 255.255.255.0 +Router(config-if)#end +Router# +%SYS-5-CONFIG_I: Configured from console by console + +Router#conf t +Enter configuration commands, one per line. End with CNTL/Z. +Router(config)#ip rou +Router(config)#ip route +% Incomplete command. +Router(config)#ip route 192.168.1.0 255.255.255.0 10.254.10.1 +Router(config)#ip route 192.168.2.0 255.255.255.0 20.20.10.1 +Router(config)# +``` + + + +交换器 + +只需要把连着路由器的线设置成 trunk 就够了 \ No newline at end of file -- Gitee From 8bb685dc9151243a84c55c02231158eb47a60711 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=9F=E6=99=BA=E9=91=AB?= <3615595621@qq.com> Date: Tue, 12 May 2026 17:50:36 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E7=90=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...261\347\232\204\351\205\215\347\275\256.md" | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 "25 \346\261\237\346\231\272\351\221\253/20260512 \350\267\257\347\224\261\345\231\250RIP\345\212\250\346\200\201\350\267\257\347\224\261\347\232\204\351\205\215\347\275\256.md" diff --git "a/25 \346\261\237\346\231\272\351\221\253/20260512 \350\267\257\347\224\261\345\231\250RIP\345\212\250\346\200\201\350\267\257\347\224\261\347\232\204\351\205\215\347\275\256.md" "b/25 \346\261\237\346\231\272\351\221\253/20260512 \350\267\257\347\224\261\345\231\250RIP\345\212\250\346\200\201\350\267\257\347\224\261\347\232\204\351\205\215\347\275\256.md" new file mode 100644 index 00000000..d804384c --- /dev/null +++ "b/25 \346\261\237\346\231\272\351\221\253/20260512 \350\267\257\347\224\261\345\231\250RIP\345\212\250\346\200\201\350\267\257\347\224\261\347\232\204\351\205\215\347\275\256.md" @@ -0,0 +1,18 @@ +小一点的作业:代码被挤到上面了,没有了 + +![image-20260512165508226](https://gitee.com/jiang-zhixin39/gods-picture/raw/master/pic/upgit_20260512_1778576108.png) + +![image-20260512165428504](https://gitee.com/jiang-zhixin39/gods-picture/raw/master/pic/upgit_20260512_1778576068.png) + +![image-20260512165453962](https://gitee.com/jiang-zhixin39/gods-picture/raw/master/pic/upgit_20260512_1778576094.png) + + + + + +视频中的作业 + + + + + -- Gitee From 03f7cd6b8cc15d41d5923c7ab76ab549fa6e62fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=9F=E6=99=BA=E9=91=AB?= <3615595621@qq.com> Date: Thu, 14 May 2026 13:51:37 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E7=90=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...46\200\201\350\267\257\347\224\261ospf.md" | 159 ++++++++++++++++++ 1 file changed, 159 insertions(+) create mode 100644 "25 \346\261\237\346\231\272\351\221\253/20260513 \345\212\250\346\200\201\350\267\257\347\224\261ospf.md" diff --git "a/25 \346\261\237\346\231\272\351\221\253/20260513 \345\212\250\346\200\201\350\267\257\347\224\261ospf.md" "b/25 \346\261\237\346\231\272\351\221\253/20260513 \345\212\250\346\200\201\350\267\257\347\224\261ospf.md" new file mode 100644 index 00000000..44a936ef --- /dev/null +++ "b/25 \346\261\237\346\231\272\351\221\253/20260513 \345\212\250\346\200\201\350\267\257\347\224\261ospf.md" @@ -0,0 +1,159 @@ +## 作业: + +##### 交换机1: + +``` +Switch>EN +Switch#conf t +Enter configuration commands, one per line. End with CNTL/Z. +Switch(config)#vlan 40 +Switch(config-vlan)#vlan 50 +Switch(config-vlan)#ex +Switch(config)#int f0/2 +Switch(config-if)#sw mod +Switch(config-if)#sw mode acc +Switch(config-if)#sw mode access +Switch(config-if)#sw sccess vlan 40 + ^ +% Invalid input detected at '^' marker. + +Switch(config-if)#sw access vlan 40 +Switch(config-if)#ex +Switch(config)#int f0/1 +Switch(config-if)#sw mode access +Switch(config-if)#sw access vlan 50 +Switch(config-if)#end +Switch# +%SYS-5-CONFIG_I: Configured from console by console + +Switch#conf t +Enter configuration commands, one per line. End with CNTL/Z. +Switch(config)#int f0/3 +Switch(config-if)#sw mode trunk +Switch(config-if)#end +``` + +##### 交换机2: + +``` +Switch> +Switch>en +Switch#conf t +Enter configuration commands, one per line. End with CNTL/Z. +Switch(config)#vlan 60 +Switch(config-vlan)#vlan 70 +Switch(config-vlan)#ex +Switch(config)#int f0/1 +Switch(config-if)#sw mode access +Switch(config-if)#sw access vlan 60 +Switch(config-if)#ex +Switch(config)#int f0/2 +Switch(config-if)#sw mode access +Switch(config-if)#sw access vlan 70 +Switch(config-if)#ex +Switch(config)#int f0/3 +Switch(config-if)#sw mode trunk + +Switch(config-if)# +%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down + +%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up +``` + +RT1: + +``` +Router>en +Router#conf t +Enter configuration commands, one per line. End with CNTL/Z. +Router(config)#int g0/2 +Router(config-if)#ip add +Router(config-if)#no shu +Router(config-if)#no shutdown + +Router(config-if)# +%LINK-5-CHANGED: Interface GigabitEthernet0/2, changed state to up + +%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/2, changed state to up + +Router(config-if)#ex +Router(config)#int g0/2.1 +Router(config-subif)# +%LINK-5-CHANGED: Interface GigabitEthernet0/2.1, changed state to up + +%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/2.1, changed state to up + +Router(config-subif)#en +Router(config-subif)#encapsulation do +Router(config-subif)#encapsulation dot1Q 40 +Router(config-subif)#ip add +Router(config-subif)#ip address 192.168.40.254 255.255.255.0 +Router(config-subif)#ex +Router(config)#int g0/2.2 +Router(config-subif)# +%LINK-5-CHANGED: Interface GigabitEthernet0/2.2, changed state to up + +%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/2.2, changed state to up +en +Router(config-subif)#encapsulation d +Router(config-subif)#encapsulation dot1Q 50 +Router(config-subif)#ip address 192.168.50.254 255.255.255.0 +Router(config-subif)#end + +Router#conf t +Enter configuration commands, one per line. End with CNTL/Z. +Router(config)#int g0/1 +Router(config-if)#ip ad +Router(config-if)#ip address +Router(config-if)#ip address 192.168.10.1 255.255.255.0 +Router(config-if)#no shut +Router(config-if)#no shutdown + +Router(config-if)# +%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up + +%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to up +``` + +SW1: + +``` + +``` + + + +##### RT2: + +``` +Router>en +Router#conf t +Enter configuration commands, one per line. End with CNTL/Z. +Router(config)#int g0/0 +Router(config-if)#ip add +Router(config-if)#ip address 192.168.30.254 255.255.255.0 +Router(config-if)#no shut +Router(config-if)#no shutdown + +Router(config-if)# +%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up + +%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up + +Router(config-if)#ex +Router(config)#int g0/1 +Router(config-if)#ip add +Router(config-if)#ip address 192.168.20.2 255.255.255.0 +Router(config-if)#clock rate 64000 + ^ +% Invalid input detected at '^' marker. + +Router(config-if)#no shut +Router(config-if)#no shutdown + +Router(config-if)# +%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up + +%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to up +``` + -- Gitee