??? //實現(xiàn):通過靜態(tài)路由實現(xiàn)網絡的連通性。
??? //環(huán)境:
??? Router01
??? Router02
??? CISCO 2960-01
??? CISCO 2960-02
??? PC01
??? PC02
??? //拓撲:如圖(110422-路由器靜態(tài)路由配置)
???? ?
??? //配置Router01
??? Router01>enable
??? Router01#configure terminal
??? Router01(config)#interface fastEthernet 1/0
??? Router01(config-if)#no shutdown
??? Router01(config-if)#ip address 192.168.1.1 255.255.255.0
??? Router01(config-if)#exit
??? Router01(config)#interface serial 2/0
??? Router01(config-if)#ip address 192.168.3.1 255.255.255.0
??? Router01(config-if)#clock rate 64000 //配置時鐘頻率
??? Router01(config-if)#no shutdown
??? Router01#configure terminal
??? Router01(config)#ip route 192.168.2.0 255.255.255.0 192.168.3.2??? //靜態(tài)路由配置(目標網段,下一跳地址)
??? Router01#show ip route?? //查看路由表
??? Router01#write
??? //配置Router02
??? Router02>enable
??? Router02#configure terminal
??? Router02(config)#interface fastEthernet 1/0
??? Router02(config-if)#no shutdown
??? Router02(config-if)#ip address 192.168.2.1 255.255.255.0
??? Router02(config-if)#exit
??? Router02(config)#interface serial 2/0
??? Router02(config-if)#ip address 192.168.3.1 255.255.255.0
??? Router02(config-if)#no shutdown
??? Router02#configure terminal
??? Router02(config)#ip route 192.168.1.0 255.255.255.0 192.168.3.1
??? Router02#write
??? //測試:(終端計算機)
??? PC01>ping 192.168.1.1
??? Pinging 192.168.1.1 with 32 bytes of data:
??? Reply from 192.168.1.1: bytes=32 time=7ms TTL=255
??? Ping statistics for 192.168.1.1:
??? Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
??? Approximate round trip times in milli-seconds:
??? Minimum = 7ms, Maximum = 7ms, Average = 7ms
??? Control-C
??? PC01>ping 192.168.3.1
??? Pinging 192.168.3.1 with 32 bytes of data:
??? Reply from 192.168.3.1: bytes=32 time=13ms TTL=255
??? Ping statistics for 192.168.3.1:
??? Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
??? Approximate round trip times in milli-seconds:
??? Minimum = 13ms, Maximum = 13ms, Average = 13ms
??? Control-C
??? PC01>ping 192.168.3.2
??? Pinging 192.168.3.2 with 32 bytes of data:
??? Reply from 192.168.3.2: bytes=32 time=21ms TTL=254
??? Ping statistics for 192.168.3.2:
??? Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
??? Approximate round trip times in milli-seconds:
??? Minimum = 21ms, Maximum = 21ms, Average = 21ms
??? Control-C
??? PC01>ping 192.168.2.1
??? Pinging 192.168.2.1 with 32 bytes of data:
??? Reply from 192.168.2.1: bytes=32 time=19ms TTL=254
??? Ping statistics for 192.168.2.1:
??? Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
??? Approximate round trip times in milli-seconds:
??? Minimum = 19ms, Maximum = 19ms, Average = 19ms
??? Control-C
??? PC01>ping 192.168.2.101
??? Pinging 192.168.2.101 with 32 bytes of data:
??? Reply from 192.168.2.101: bytes=32 time=35ms TTL=126
??? Ping statistics for 192.168.2.101:
??? Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
??? Approximate round trip times in milli-seconds:
??? Minimum = 35ms, Maximum = 35ms, Average = 35ms
??? Control-C
關鍵詞標簽:路由器,靜態(tài)路由配置
相關閱讀
熱門文章 路由器地址大全-各品牌路由設置地址 各品牌的ADSL與路由器出廠默認IP、帳號、密碼 Nslookup命令詳解-域名DNS診斷 站長裝備:十大網站管理員服務器工具軟件
人氣排行 各品牌的ADSL與路由器出廠默認IP、帳號、密碼 路由器地址大全-各品牌路由設置地址 騰達路由器怎么設置?騰達路由器設置教程 ADSL雙線負載均衡設置詳細圖文教程 路由表說明(詳解route print) Nslookup命令詳解-域名DNS診斷 網管員實際工作的一天 網管必會!了解交換機控制端口流量