diff --git "a/\351\273\204\346\265\201\346\266\233/20240428 \350\267\257\347\224\261\351\207\215\345\217\221\345\270\203.md" "b/\351\273\204\346\265\201\346\266\233/20240428 \350\267\257\347\224\261\351\207\215\345\217\221\345\270\203.md" new file mode 100644 index 0000000000000000000000000000000000000000..99bf46b4d4e3f7748db29e5d1c92a842b66ce795 --- /dev/null +++ "b/\351\273\204\346\265\201\346\266\233/20240428 \350\267\257\347\224\261\351\207\215\345\217\221\345\270\203.md" @@ -0,0 +1,39 @@ +# 笔记 + +路由重发布 + +ospf连接rip + +~~~js +(config)#route ospf 1 +(config-route)# redistribute rip subnets +~~~ + +rip连接ospf + +~~~ js +(config)#route rip +(config-route)#redistribute ospf 1 metric 10 //metric是跳数 +~~~ + +rip连接静态路由 + +~~~ js +(config)#route rip +(config-route)#redistribute static metric 10 //metric是跳数 +~~~ + +静态路由连接ospf + +~~~ js +(config)#route ospf 1 +(config-route)#redistribute static subnets +~~~ + +缺省路由 + +~~~js +0.0.0.0 0.0.0.0 下一跳 +0.0.0.0 可以是任意的网络 +0.0.0.0 可以是任意的子网掩码 +~~~