⑴ ospf 配置
你好,
1樓答案中,若把埠類型設置為Point-To-Point模式,是否需要在OSPF設置中手工指定OSPF的鄰居關系?
沒有硬體設備,只是用Cisco Packet Tracer5.3做了下實驗,因為是模擬器,所以難免在真實環境中有疏忽之處。
R1配置如下:
R1#show run
Building configuration...
Current configuration : 956 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R1 //路由器命名
!
!
username R4 password 0 123 //此用戶名及密碼用於路由器PPP鏈路上的PAP認證(R4和R1通過PPP鏈路相連)
!
!
interface FastEthernet0/0
no ip address
plex auto
speed auto
shutdown
!
interface FastEthernet0/1 //此介面對應拓撲圖中的e0
ip address 192.168.1.1 255.255.255.0
plex auto
speed auto
!
interface Serial0/0 //此介面對應拓撲圖中的s0,用於幀中繼連接
ip address 10.0.1.1 255.255.255.0
encapsulation frame-relay
frame-relay map ip 10.0.1.2 102 broadcast //幀中繼是在二層根據DLCI號定址,這裏手工指定DLCI對應的IP地址
frame-relay map ip 10.0.1.3 103 broadcast
frame-relay lmi-type ansi
no frame-relay inverse-arp //關閉介面的ARP逆向解析,即禁止本地DLCI向幀中繼交換機發出反向地址解析,例如DLCI「102」對應的IP地址為「10.0.1.2」,該介面有兩個DLCI號,動態解析在多鏈路環境下容易出錯,所以建議關閉,而是手工指定。
ip ospf network broadcast //幀中繼介面默認是NBMA(非廣播多點接入類型),而OSPF的鄰居關系是通過廣播hello包協商的,所以此處將指定該介面在OSPF協議中的類型為廣播多點接入類型。此外,如果設置為Point-To-Point類型,則需要在OSPF配置中手工指定OSPF鄰居。
!
interface Serial0/1 //此介面對應拓撲圖中的s1
ip address 10.0.2.1 255.255.255.0
encapsulation ppp //封裝類型為PPP
ppp authentication pap //R1作為主驗證方,認證協議為pap (R4為被驗證方,在其埠設置中,應配置正確的用戶名及密碼,即「R4/123」)
clock rate 64000
!
router ospf 100 //OSPF配置
log-adjacency-changes
network 10.0.1.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 0
network 10.0.2.0 0.0.0.255 area 1
!
ip classless
!
!
line con 0
line vty 0 4
login
!
end
以上,供參考
⑵ 求在幀中繼網路起OSPF的配置
你說的虛鏈路是OSPF里的虛鏈路是吧?那就應該不只有3台路由了啊,不然R1R2或者R1R3之間的虛鏈路上其他支幹區域上的路由哪裡去了?
⑶ 在配置幀中繼中,如果兩邊的路由配置ospf協議,如果網路類型不改, 為什麼不通。
這個與ospf的操作屬性有關,在CCNP的ospf那個章節中有個表格有具體的介紹。還有就是ospf的DRother路由器只會將自己的信息通告給DR,而不會將其從DR收到的信息再發送出去。所以在幀中繼網路中,若兩邊的路由器是DR,則兩邊的路由器無法發現對方,所以有兩種解決方式:1、更改ospf的網路類型,使其能夠自動發現鄰居。2、強制中間的那個路由器作為DR,DR就能夠將兩邊的信息進行交換。
⑷ ipv6 配置ospfv3協議 路由器id怎麼樣設置區域怎麼劃分才能保證網路沒有問題
路由器ID不能一樣,區域必須是非骨幹區域和骨幹區域相連。
⑸ 幀中繼和OSPF虛鏈路問題
1、先把幀中繼配置如下:
R1:
int s3/0
encapsulation frame-relay ===>封裝幀中繼介面
no frame-relay inverse-arp ==>關掉反相ARP解析
frame-relay map ip 123.0.0.2 102 broadcast
frame-relay map ip 123.0.0.3 103 broadcast
R2:
int s3/0
encapsulation frame-relay
no frame-relay inverse-arp
frame-relay map ip 123.0.0.1 201 broadcast
frame-relay map ip 123.0.0.3 203 broadcast
R3:
int s3/0
encapsulation frame-relay
no frame-relay inverse-arp
frame-relay map ip 123.0.0.1 301 broadcast
frame-relay map ip 123.0.0.2 302 broadcast
end
2、按要求運行OSPF 路由協議
R1:
R1(config)#router ospf 10
R1(config-router)#router-id 1.1.1.1
R1(config-router)#network 123.0.0.0 0.0.0.255 area 123
R1(config-router)#network 15.0.0.0 0.0.0.255 area 0
interface Serial3/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial3/3
no ip address
shutdown
serial restart-delay 0
!
router eigrp 90
network 3.3.3.0 0.0.0.255
no auto-summary
no eigrp log-neighbor-changes
!
router ospf 10
router-id 3.3.3.3
log-adjacency-changes
area 123 virtual-link 1.1.1.1
redistribute eigrp 90 metric 2 subnets
network 34.0.0.0 0.0.0.255 area 34
network 123.0.0.0 0.0.0.255 area 123
!
ip classless
no ip http server
no ip http secure-server
!
!
line con 0
exec-timeout 0 0
logging synchronous
stopbits 1
line aux 0
stopbits 1
line vty 5 15
!
!
end R4#show run
Building configuration...Current configuration : 1357 bytes
!
version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R4
!
!
ip subnet-zero
ip cef
!
!
no ip domain-lookup
!
ip audit notify log
ip audit po max-events 100
ip ssh time-out 120
ip ssh authentication-retries 3
!
!
!
!
!
!
!
interface Loopback0
ip address 4.4.4.4 255.255.255.0
!
interface FastEthernet0/0
ip address 25.0.0.4 255.255.255.0
plex half
!
interface Serial2/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/1
ip address 34.0.0.4 255.255.255.0
serial restart-delay 0
!
interface Serial2/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
interface Serial3/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial3/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial3/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial3/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 10
router-id 4.4.4.4
log-adjacency-changes
redistribute rip subnets
network 4.4.4.0 0.0.0.255 area 25
network 25.0.0.0 0.0.0.255 area 25
network 34.0.0.0 0.0.0.255 area 34
!
ip classless
no ip http server
no ip http secure-server
!
!
line con 0
exec-timeout 0 0
logging synchronous
stopbits 1
line aux 0
stopbits 1
line vty 5 15
!
!
end R5#show run
Building configuration...Current configuration : 1239 bytes
!
version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R5
!
!
ip subnet-zero
ip cef
!
!
no ip domain-lookup
!
ip audit notify log
ip audit po max-events 100
ip ssh time-out 120
ip ssh authentication-retries 3
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 25.0.0.5 255.255.255.0
plex half
!
interface Serial2/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/1
ip address 15.0.0.5 255.255.255.0
serial restart-delay 0
!
interface Serial2/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
interface Serial3/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial3/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial3/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial3/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 10
router-id 5.5.5.5
log-adjacency-changes
network 15.0.0.0 0.0.0.255 area 0
network 25.0.0.0 0.0.0.255 area 25
!
ip classless
no ip http server
no ip http secure-server
!
!
line con 0
exec-timeout 0 0
logging synchronous
stopbits 1
line aux 0
stopbits 1
line vty 5 15
!
!
⑹ 在配置幀中繼的情況下配置ospf有什麼要注意的 【在線等 急!】
幀中繼NBMA,單播指鄰居或者改網路類型,子介面也行。
⑺ 在華為路由器中如何在幀中繼中啟用OSPF協議
幀中繼默認是NBMA的網路,因此你的OSPF鄰居是建不起來的,因為OSPF靠組播式的hello包去發現鄰居,你需要人工指定鄰居或者修改介面的網路類型才可以。
⑻ 如何給Cisco路由器配置ipv6地址並將該地址宣告到OSPF進程中
R1(config)# ipv6 unicast-routing
R1(config)# ipv6 cef
R1(config)# ipv6 router ospf 11
R1(config-router)# route-id 11.11.4.4
R1(config)# interface fastether 0/1
R1(config-if)# ipv6 address fc01:db8:74:c::/64 eui-64
R1(config-if)# ipv6 ospf 11 area 0
啟用IPv6功能啟用IPV6的CEF,一定要打,默認是關。啟用OSPF進程指定R-ID。
配置介面相應的IPv6 地址,
介面上啟用OSPF,R1是區域0
⑼ 如何配置幀中繼呢
lz請詳細點,我先告訴這么多,如有更多需求請講
R1router
interfaces0/0
encapsulationframe-relay
noframe-relayinverse-arp
frame-relay?
interface-dlciDefineaDLCIonaninterface/subinterface
lmi-typeUseCISCO-ANSI-CCITTtypeLMI
routeB(config-if)#frame-relaylmi-type?
ansi
cisco
q933a
routeA(config-if)#frame-relaylmi-typecisco
ipaddress192.168.88.1255.255.255.0
frame-relaymapip192.168.88.2102broadcast
frame-relaymapip192.168.88.3103broadcast
noshutdown
R2router
interfaces0/0
encapsulationframe-relay
noframe-relayinverse-arp
routeA(config-if)#frame-relaylmi-typecisco
ipaddress192.168.88.2255.255.255.0
frame-relaymapip192.168.88.1201broadcast
frame-relaymapip192.168.88.3203broadcast
noshutdown
R3router
interfaces0/0
encapsulationframe-relay
noframe-relayinverse-arp
routeA(config-if)#frame-relaylmi-typecisco
ipaddress192.168.88.3255.255.255.0
frame-relaymapip192.168.88.1301broadcast
frame-relaymapip192.168.88.2302broadcast
noshutdown
ansi歐洲電信委員會標准.
cisco思科標准
q933a國際標准
上面的配置為靜態配置,還可以動態配置但不推薦,同時還有可以配置點到點連接還有點到多點的
配置點到多點點到點的需要用到子介面
ints0/0.1point-to-point
這種只能用這種映射frame-relayinterface-dlci201
還有就是點到多點(這個和物理介面差不多)
配置ints0/0.1multipoint
frame-relaymapip192.168.88.1301broadcast
但是推薦使用同一種,因為幀中繼是最底層配置,上面還要有運行協議,比如說ospf如果不用同一種介面配置,建立鄰居關系的時候就要修改網路類型,不然就建立不起鄰居關系.....以下為幀中繼對應的網路內型。
串口/物理介面默認為NBMA
點對點默認為點對點
點的多點默認為點到多點
⑽ 如何配置ospf
OSPF路由協議是用於網際協議(IP)網路的鏈路狀態路由協議。該協議使用鏈路狀態路由演算法的內部網關協議(IGP),在單一自治系統(AS)內部工作。適用於IPv4的OSPFv2協議定義於RFC 2328,RFC 5340定義了適用於IPv6的OSPFv3。
OSPF協議是一種鏈路狀態協議。每個路由器負責發現、維護與鄰居的關系,並將已知的鄰居列表和鏈路費用LSU報文描述,通過可靠的泛洪與自治系統AS(Autonomous System)內的其他路由器周期性交互,學習到整個自治系統的網路拓撲結構;並通過自治系統邊界的路由器注入其他AS的路由信息,從而得到整個Internet的路由信息。每隔一個特定時間或當鏈路狀態發生變化時,重新生成LSA,路由器通過泛洪機制將新LSA通告出去,以便實現路由的實時更新。
(10)ipv6幀中繼如何配置ospf擴展閱讀:
OSPF路由協議的實現過程
1、初始化形成埠初始信息:在路由器初始化或網路結構發生變化(如鏈路發生變化,路由器新增或損壞)時,相關路由器會產生鏈路狀態廣播數據包LSA,該數據包里包含路由器上所有相連鏈路,也即為所有埠的狀態信息。
2、路由器間通過泛洪(Floodingl機制交換鏈路狀態信息:各路由器一方面將其LSA數據包傳送給所有與其相鄰的OSPF路由器,另一方面接收其相鄰的OSPF路由器傳來的LSA數據包,根據其更新自己的資料庫。
3、形成穩定的區域拓撲結構資料庫:OSPF路由協議通過泛洪法逐漸收斂,形成該區域拓撲結構的資料庫,這時所有的路由器均保留了該資料庫的一個副本。
4、形成路由表:所有的路由器根據其區域拓撲結構資料庫副本採用最短路徑法計算形成各自的路由表。