時(shí)間:2015-06-28 00:00:00 來源:IT貓撲網(wǎng) 作者:網(wǎng)管聯(lián)盟 我要評(píng)論(1)
??? //實(shí)現(xiàn):通過配置動(dòng)態(tài)路由協(xié)議OSPF學(xué)習(xí)產(chǎn)生路由。
??? //環(huán)境:
??? CISCO 3560
??? Router01
??? Router02
??? VLAN2-PC01
??? PC02
??? //拓?fù)洌喝鐖D(110422-路由器OSPF動(dòng)態(tài)路由配置)
???? ?
??? //配置CISCO 3560
??? CISCO 3560>enable
??? CISCO 3560#configure terminal
??? CISCO 3560(config)#vlan 2
??? CISCO 3560(config-vlan)#exit
??? CISCO 3560(config)#vlan 3
??? CISCO 3560(config-vlan)#exit
??? CISCO 3560(config)#interface fastEthernet 0/1
??? CISCO 3560(config-if)#switchport access vlan 2
??? CISCO 3560(config-if)#exit
??? CISCO 3560(config)#inter fastEthernet 0/24
??? CISCO 3560(config-if)#switchport access vlan 3
??? CISCO 3560(config-if)#exit
??? CISCO 3560(config)#interface vlan 2
??? CISCO 3560(config-if)#ip address 192.168.1.1 255.255.255.0
??? CISCO 3560(config-if)#no shutdown
??? CISCO 3560(config-if)#exit
??? CISCO 3560(config)#interface vlan 3
??? CISCO 3560(config-if)#ip address 192.168.3.1 255.255.255.0
??? CISCO 3560(config-if)#no shutdown
??? CISCO 3560(config-if)#exit
??? CISCO 3560(config)#router ospf 1???? //進(jìn)入OSPf視圖
??? CISCO 3560(config-router)#network 192.168.1.0 0.0.0.255 area 0??? //發(fā)布直連路由
??? CISCO 3560(config-router)#network 192.168.3.0 0.0.0.255 area 0
??? CISCO 3560(config-router)#end
??? CISCO 3560#write
??? CISCO 3560#show vlan
??? CISCO 3560#show ip router[nextpage]
??? //配置Router01
??? Router01>enable
??? Router01#configure terminal
??? Router01(config)#interface fastEthernet 1/0
??? Router01(config-if)#no shutdown
??? Router01(config-if)#ip address 192.168.3.2 255.255.255.0
??? Router01(config-if)#exit
??? Router01(config)#interface serial 2/0
??? Router01(config-if)#ip address 192.168.4.1 255.255.255.0
??? Router01(config-if)#clock rate 64000
??? Router01(config-if)#no shutdown
??? Router01(config-if)#exit
??? Router01(config)#router ospf 1
??? Router01(config-router)#network 192.168.3.0 0.0.0.255 area 0
??? Router01(config-router)#network 192.168.4.0 0.0.0.255 area 0
??? Router01(config-router)#end
??? 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.4.2 255.255.255.0
??? Router02(config-if)#no shutdown
??? Router02(config-if)#exit
??? Router02(config)#router ospf 1
??? Router02(config-router)#network 192.168.2.0 0.0.0.255 area 0
??? Router02(config-router)#network 192.168.4.0 0.0.0.255 area 0
??? Router02(config-router)#end
??? Router02#write
??? Router02#show ip router
??? //測(cè)試:(終端計(jì)算機(jī))
??? VLAN2-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=23ms TTL=125
??? Reply from 192.168.2.101: bytes=32 time=16ms TTL=125
??? Ping statistics for 192.168.2.101:
??? Packets: Sent = 2, Received = 2, Lost = 0 (0% loss),
??? Approximate round trip times in milli-seconds:
??? Minimum = 16ms, Maximum = 23ms, Average = 19ms
??? Control-C
關(guān)鍵詞標(biāo)簽:路由器,OSPF
相關(guān)閱讀
熱門文章 路由器地址大全-各品牌路由設(shè)置地址 各品牌的ADSL與路由器出廠默認(rèn)IP、帳號(hào)、密碼 Nslookup命令詳解-域名DNS診斷 站長(zhǎng)裝備:十大網(wǎng)站管理員服務(wù)器工具軟件
人氣排行 各品牌的ADSL與路由器出廠默認(rèn)IP、帳號(hào)、密碼 路由器地址大全-各品牌路由設(shè)置地址 騰達(dá)路由器怎么設(shè)置?騰達(dá)路由器設(shè)置教程 ADSL雙線負(fù)載均衡設(shè)置詳細(xì)圖文教程 路由表說明(詳解route print) Nslookup命令詳解-域名DNS診斷 網(wǎng)管員實(shí)際工作的一天 網(wǎng)管必會(huì)!了解交換機(jī)控制端口流量