From cf2a1208dcc4bc9683b1e7a72cc0032aca97df5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?09=E8=83=A1=E4=BD=B3=E6=AC=A3?= <1397845022@qq.com> Date: Sat, 11 May 2024 12:05:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=89=E5=B1=82=E4=BA=A4=E6=8D=A2=E6=9C=BA+O?= =?UTF-8?q?SPF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...211\345\261\202\344\272\244\346\215\242\346\234\272+OSPF.md" | 2 ++ 1 file changed, 2 insertions(+) diff --git "a/09\350\203\241\344\275\263\346\254\243/20240510-\347\254\224\350\256\26019 \344\270\211\345\261\202\344\272\244\346\215\242\346\234\272+OSPF.md" "b/09\350\203\241\344\275\263\346\254\243/20240510-\347\254\224\350\256\26019 \344\270\211\345\261\202\344\272\244\346\215\242\346\234\272+OSPF.md" index b310672..7046561 100644 --- "a/09\350\203\241\344\275\263\346\254\243/20240510-\347\254\224\350\256\26019 \344\270\211\345\261\202\344\272\244\346\215\242\346\234\272+OSPF.md" +++ "b/09\350\203\241\344\275\263\346\254\243/20240510-\347\254\224\350\256\26019 \344\270\211\345\261\202\344\272\244\346\215\242\346\234\272+OSPF.md" @@ -32,6 +32,7 @@ Switch(config-if)#switchport mode trunk Switch(config-router)#int f 0/24 Switch(config-if)#no sw Switch(config-if)#ip add 192.168.50.1 255.255.255.0 +Switch(config-if)#ip routing Switch(config-if)#router ospf 1 Switch(config-router)#net 192.168.10.0 0.0.0.255 area 0 Switch(config-router)#net 192.168.20.0 0.0.0.255 area 0 @@ -57,6 +58,7 @@ Switch(config-if)#switchport mode trunk Switch(config-router)#int f 0/24 Switch(config-if)#no sw Switch(config-if)#ip add 192.168.50.2 255.255.255.0 +Switch(config-if)#ip routing Switch(config-if)#router ospf 1 Switch(config-router)#net 192.168.30.0 0.0.0.255 area 0 Switch(config-router)#net 192.168.50.0 0.0.0.255 area 0 -- Gitee