From 2432d04852aacf454f468a478288d41980fa0649 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=9F=E6=96=87=E6=B7=AF?= <14131014+jiang-wenyu0212@user.noreply.gitee.com> Date: Wed, 23 Apr 2025 23:35:23 +0800 Subject: [PATCH] 0422 --- .../20250422 \347\254\224\350\256\260.md" | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 "41 \346\261\237\346\226\207\346\267\257/20250422 \347\254\224\350\256\260.md" diff --git "a/41 \346\261\237\346\226\207\346\267\257/20250422 \347\254\224\350\256\260.md" "b/41 \346\261\237\346\226\207\346\267\257/20250422 \347\254\224\350\256\260.md" new file mode 100644 index 0000000..aefe918 --- /dev/null +++ "b/41 \346\261\237\346\226\207\346\267\257/20250422 \347\254\224\350\256\260.md" @@ -0,0 +1,41 @@ +1. ``` + #OSPF关键步骤 + Router(config)#router ospf 1 + Router(config-router)#network 1.1.1.0 0.0.0.255 area 0 + Router(config-router)#network 2.2.2.0 0.0.0.255 area 0 + Router(config-router)#end + Router#show ip route + + #RIP关键步骤 + Router(config)#router rip + Router(config-router)#version 2 + Router(config-router)#network 3.3.3.0 + Router(config-router)#ex + Router(config)#router ospf 1 + Router(config-router)#network 2.2.2.0 0.0.0.255 area 0 + Router(config-router)#ex + Router(config)#router ospf 1 + Router(config-router)#redistribute rip subnets // 获取来自RIP子网络的路由进行分发 + Router#show ip route + ``` + +2. OSPF转静态 + + ``` + #OSPF关键配置 + ! + router ospf 1 + log-adjacency-changes + redistribute static subnets + network 10.10.10.0 0.0.0.255 area 0 + network 20.20.20.0 0.0.0.255 area 0 + ! + ip classless + ip route 0.0.0.0 0.0.0.0 20.20.20.2 + ! + #静态关键配置 + ! + ip classless + ip route 10.10.10.0 255.255.255.0 20.20.20.1 + ! + ``` \ No newline at end of file -- Gitee