思科路由器靜態配置例項

General 更新 2024年05月13日

  小編為大家介紹,歡迎大家閱讀。

  主機1 TCP/IP配置:IP地址為10.0.0.1 /8

  主機2 TCP/IP配置:IP地址為60.0.0.1 /8

  Router 1配置資訊:

  router>enable

  router#config terminal

  routerconfig#interface f 0/0

  routerconfig-if#ip address 10.0.0.2 255.0.0.0

  routerconfig-if#no shutdown

  routerconfig-if#exit

  routerconfig#interface f 0/1

  routerconfig-if#ip address 20.0.0.1 255.0.0.0

  routerconfig-if#no shutdown

  routerconfig-if#exit

  routerconfig#interface s 1/0

  routerconfig-if#ip address 30.0.0.1 255.0.0.0

  routerconfig-if#no shutdown

  routerconfig-if#exit

  routerconfig#ip route 40.0.0.0 255.0.0.0 20.0.0.2 注:目標網段+子網掩碼+下一跳地址

  routerconfig#ip route 50.0.0.0 255.0.0.0 30.0.0.2 注:目標網段+子網掩碼+下一跳地址

  routerconfig#end

  router#write

  Router 2配置資訊:

  router>enable

  router#config terminal

  routerconfig#interface f 0/0

  routerconfig-if#ip address 20.0.0.2 255.0.0.0

  routerconfig-if#no shutdown

  routerconfig-if#exit

  routerconfig#interface f 0/1

  routerconfig-if#ip address 40.0.0.1 255.0.0.0

  routerconfig-if#no shutdown

  routerconfig-if#exit

  routerconfig#ip route 10.0.0.0 255.0.0.0 20.0.0.1

  routerconfig#ip route 60.0.0.0 255.0.0.0 40.0.0.2

  routerconfig#end

  router#write

  Router 3配置資訊:ccie認證

  router>enable

  router#config terminal

  routerconfig#interface f 0/0

  routerconfig-if#ip address 30.0.0.2 255.0.0.0

  routerconfig-if#no shutdown

  routerconfig-if#exit

  routerconfig#interface f 0/1

  routerconfig-if#ip address 50.0.0.1 255.0.0.0

  routerconfig-if#no shutdown

  routerconfig-if#exit

  routerconfig#ip route 10.0.0.0 255.0.0.0 30.0.0.1

  routerconfig#ip route 60.0.0.0 255.0.0.0 50.0.0.2

  routerconfig#end

  router#write

  Router 4配置資訊:

  router>enable

  router#config terminal

  routerconfig#interface f 0/0

  routerconfig-if#ip address 40.0.0.2 255.0.0.0

  routerconfig-if#no shutdown

  routerconfig-if#exit

  routerconfig#interface f 0/1

  routerconfig-if#ip address 50.0.0.2 255.0.0.0

  routerconfig-if#no shutdown

  routerconfig-if#exit

  routerconfig#interface s 1/0

  routerconfig-if#ip address 60.0.0.2 255.0.0.0

  routerconfig-if#no shutdown

  routerconfig-if#exit

  routerconfig#ip route 20.0.0.0 255.0.0.0 40.0.0.1

  routerconfig#ip route 30.0.0.0 255.0.0.0 50.0.0.1

  routerconfig#end

  router#write

路由器密碼破解有什麼方法
小米路由器如何設定外網
相關知識
思科路由器靜態配置例項
思科路由器靜態路由怎麼配置
思科路由器怎麼配置限速和記錄登入失敗的嘗試次數的方法
思科路由器基本配置詳細教程
磊科路由器怎麼配置無線網路
思科交換機基本配置例項講解
思科交換機映象配置例項介紹
思科路由器的網路訪問控制之靜態路由配置解析
思科路由器的網路訪問控制之靜態路由配置介紹
思科交換機路由器常規配置命令大全