From 152d17aecba91270500a798d8e9916adcc79b0d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E9=9B=85=E5=A9=B7?= <11802116+chen-yatin@user.noreply.gitee.com> Date: Wed, 8 May 2024 11:18:08 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=AC=94=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\212\250\346\200\201\350\267\257\347\224\2612.md" | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 "\351\231\210\351\233\205\345\251\267/20240508-rip\345\212\250\346\200\201\350\267\257\347\224\2612.md" diff --git "a/\351\231\210\351\233\205\345\251\267/20240508-rip\345\212\250\346\200\201\350\267\257\347\224\2612.md" "b/\351\231\210\351\233\205\345\251\267/20240508-rip\345\212\250\346\200\201\350\267\257\347\224\2612.md" new file mode 100644 index 0000000..f915a79 --- /dev/null +++ "b/\351\231\210\351\233\205\345\251\267/20240508-rip\345\212\250\346\200\201\350\267\257\347\224\2612.md" @@ -0,0 +1,12 @@ +### rip动态路由配置的注意事项 +1、配置中继器模式(trunk) +2、在三层交换器中记得要开启路由模式(IP routing) +3、在三层交换机中如果分VLAN,记得rip的时候都需要network +4、检查IP地址是否有填写,是否填错 +``` +Switch(config)#router rip +Switch(config-router)#ver 2 +Switch(config-router)#net 192.168.10.0 +Switch(config-router)#net 10.10.12.0 +Switch(config-router)#net 192.168.20.0 +``` \ No newline at end of file -- Gitee From 72918f359853b30a6c879278569b5e090a3743e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E9=9B=85=E5=A9=B7?= <11802116+chen-yatin@user.noreply.gitee.com> Date: Thu, 9 May 2024 11:06:31 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=AC=94=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...12\250\346\200\201\350\267\257\347\224\261.md" | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 "\351\231\210\351\233\205\345\251\267/20240509-ospf\345\212\250\346\200\201\350\267\257\347\224\261.md" diff --git "a/\351\231\210\351\233\205\345\251\267/20240509-ospf\345\212\250\346\200\201\350\267\257\347\224\261.md" "b/\351\231\210\351\233\205\345\251\267/20240509-ospf\345\212\250\346\200\201\350\267\257\347\224\261.md" new file mode 100644 index 0000000..d949068 --- /dev/null +++ "b/\351\231\210\351\233\205\345\251\267/20240509-ospf\345\212\250\346\200\201\350\267\257\347\224\261.md" @@ -0,0 +1,15 @@ +#### OSPF,是目前网络中应用最广泛的路由协议之一 +#### OSPF,适用于中大型网络 +#### 路由器通过路由选择协议建立了一个正确、稳定的路由表后,每当收到IP分组时,会将其沿着一条从源结点到达目的结点的最佳路径进行转发,大致过程如下: +1、目的IP地址,目的网络 +2、达目的网络的下一跳路由器的IP地址,将该IP分组 +3、当下一跳路由器接收到该IP分组后,进行类似处理并转发,IP分 +4、若目的网络是与路由器的端口直连的,则直接将IP分组转发到路 +5、若在路由表中既没有下一跳路由地址,也没有目的端口,则将IP分组 +6、若没有设置默认路由或在默认路由中仍没有该目的网络的路由信息,则直接将该IP分组丢弃。 +``` +启用OSPF协议,从属OSPF进程ID=1 +Router(config)#route ospf 1 +Router(config-router)#net 192.168.10.0 0.0.0.255 area 0 +Router(config-router)#net 20.20.11.0 0.0.0.255 area 0 +``` \ No newline at end of file -- Gitee