導航:首頁 > 程序命令 > 路由與交換osp配置命令

路由與交換osp配置命令

發布時間:2022-05-21 07:12:44

⑴ 路由器交換技術怎麼配置ospf

  1. 樓主,你好

    不同廠家配置OSPF命令不一樣

    以Cisco 和 H3C舉例 如下:


  2. Cisco:

    router ospf 1

    router-id 1.1.1.1

    inter g1/0/1

    ip add 202.103.24.68 255.255.255.0

    ip ospf 1 area 0

    ip ospf network point-to-point


  3. H3C:

    ospf 1 router-id 1.1.1.1

    area 0

    inter g1/0/1

    ip add 202.103.24.68 24

    ospf 1 area 0

    ospf network-type p2p

⑵ 思科路由器和交換機的配置命令全集

1. switch配置命令
(1)模式轉換命令
用戶模式----特權模式,使用命令"enable"
特權模式----全局配置模式,使用命令"config t"
全局配置模式----介面模式,使用命令"interface+介面類型+介面號"
全局配置模式----線控模式,使用命令"line+介面類型+介面號"
注:
用戶模式:查看初始化的信息.
特權模式:查看所有信息、調試、保存配置信息
全局模式:配置所有信息、針對整個路由器或交換機的所有介面
介面模式:針對某一個介面的配置
線控模式:對路由器進行控制的介面配置
(2)配置命令
show running config 顯示所有的配置
show versin 顯示版本號和寄存器值
shut down 關閉介面
no shutdown 打開介面
ip add +ip地址 配置IP地址
secondary+IP地址 為介面配置第二個IP地址
show interface+介面類型+介面號 查看介面管理性
show controllers interface 查看介面是否有DCE電纜
show history 查看歷史記錄
show terminal 查看終端記錄大小
hostname+主機名 配置路由器或交換機的標識
config memory 修改保存在NVRAM中的啟動配置
exec timeout 0 0 設置控制台會話超時為0
service password-encryptin 手工加密所有密碼
enable password +密碼 配置明文密碼
ena sec +密碼 配置密文密碼
line vty 0 4/15 進入telnet介面
password +密碼 配置telnet密碼
line aux 0 進入AUX介面
password +密碼 配置密碼
line con 0 進入CON介面
password +密碼 配置密碼
bandwidth+數字 配置帶寬
no ip address 刪除已配置的IP地址
show startup config 查看NVRAM中的配置信息
run-config atartup config 保存信息到NVRAM
write 保存信息到NVRAM
erase startup-config 清除NVRAM中的配置信息
show ip interface brief 查看介面的謫要信息
banner motd # +信息 + # 配置路由器或交換機的描素信息
description+信息 配置介面聽描素信息
vlan database 進入VLAN資料庫模式
vlan +vlan號+ 名稱 創建VLAN
switchport access vlan +vlan號 為VLAN為配介面
interface vlan +vlan號 進入VLAN介面模式
ip add +ip地址 為VLAN配置管理IP地址
vtp+service/tracsparent/client 配置SW的VTP工作模式
vtp +domain+域名 配置SW的VTP域名
vtp +password +密碼 配置SW的密碼
switchport mode trunk 啟用中繼
no vlan +vlan號 刪除VLAN
show spamming-tree vlan +vlan號 查看VLA怕生成樹議
2. 路由器配置命令
ip route+非直連網段+子網掩碼+下一跳地址 配置靜態/默認路由
show ip route 查看路由表
show protocols 顯示出所有的被動路由協議和介面上哪些協議被設置
show ip protocols 顯示了被配置在路由器上的路由選擇協議,同時給出了在路由選擇協議中使用
的定時器
等信息
router rip 激活RIP協議
network +直連網段 發布直連網段
interface lookback 0 激活邏輯介面
passive-interface +介面類型+介面號 配置介面為被動模式
debug ip +協議 動態查看路由更新信息
undebug all 關閉所有DEBUG信息
router eigrp +as號 激活EIGRP路由協議
network +網段+子網掩碼 發布直連網段
show ip eigrp neighbors 查看鄰居表
show ip eigrp topology 查看拓撲表
show ip eigrp traffic 查看發送包數量
router ospf +process-ID 激活OSPF協議
network+直連網段+area+區域號 發布直連網段
show ip ospf 顯示OSPF的進程號和ROUTER-ID
encapsulation+封裝格式 更改封裝格式
no ip admain-lookup 關閉路由器的域名查找
ip routing 在三層交換機上啟用路由功能
show user 查看SW的在線用戶
clear line +線路號 清除線路
3. 三層交換機配置命令
配置一組二層埠
configure terminal 進入配置狀態
nterface range {port-range} 進入組配置狀態
配置三層埠
configure terminal 進入配置狀態
interface {{fastethernet | gigabitethernet} interface-id} | {vlan vlan-id} | {port-
channel port-channel-number} 進入埠配置狀態
no switchport 把物理埠變成三層口
ip address ip_address subnet_mask 配置IP地址和掩碼
no shutdown 激活埠
例:
Switch(config)# interface gigabitethernet0/2
Switch(config-if)# no switchport
Switch(config-if)# ip address 192.20.135.21 255.255.255.0
Switch(config-if)# no shutdown
配置VLAN
configure terminal 進入配置狀態
vlan vlan-id 輸入一個VLAN號, 然後進入vlan配態,可以輸入一個新的VLAN號或舊的來進行修改

name vlan-name 可選)輸入一個VLAN名,如果沒有配置VLAN名,預設的名字是VLAN號前面用0填滿
的4位數,如VLAN0004是VLAN4的預設名字
mtu mtu-size (可選) 改變MTU大小

Switch# configure terminal
Switch(config)# vlan 20
Switch(config-vlan)# name test20
Switch(config-vlan)# end

Switch# vlan database
Switch(vlan)# vlan 20 name test20
Switch(vlan)# exit
將埠分配給一個VLAN
configure terminal 進入配置狀態
interface interface-id 進入要分配的埠
switchport mode access 定義二層口
switchport access vlan vlan-id 把埠分配給某一VLAN

Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# interface fastethernet0/1
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 2
Switch(config-if)# end
Switch#
配置VLAN trunk
configure terminal 進入配置狀態
interface interface-Id 進入埠配置狀態
switchport trunk encapsulation {isl | dot1q | negotiate}配置trunk封裝ISL 或 802.1Q 或
自動協商
switchport mode {dynamic {auto | desirable} | trunk} 配置二層trunk模式。
dynamic auto—自動協商是否成為trunk
dynamic desirable—把埠設置為trunk如果對方埠是trunk, desirable, 配置Native VLAN
(802.1q)
或自動模式,trunk—設置埠為強制的trunk方式,而不理會對方埠是否為trunk
switchport access vlan vlan-id 可選) 指定一個預設VLAN, 如果此埠不再是trunk
switchport trunk native vlan vlan-id 指定802.1Q native VLAN號
例:
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# interface fastethernet0/4
Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport trunk encapsulation dot1q
Switch(config-if)# end
定義TRUNK允許的VLAN
configure terminal子 進入配置狀態
interface interface-id 進入埠配置
switchport mode trunk 配置二層口為trunk
switchport trunk allowed vlan {add | all | except | remove} vlan-list可選) 配置trunk允
許的VLAN.使用add, all, except, remove關健字
no switchport trunk allowed vlan 允許所有VLAN通過

Switch(config)# interface fastethernet0/1
Switch(config-if)# switchport trunk allowed vlan remove 2
Switch(config-if)# end
配置Native VLAN(802.1q)
configure terminal 進入配置狀態
interface interface-id 進入配置成802.1qtrunk的埠
switchport trunk native vlan vlan-Id 配置native VLAN號
no switchport trunk native vlan 埠配置命令回到預設的狀態
配置基於埠權值的負載均衡
configure terminal 進入Switch 1配置狀態
vtp domain domain-name 配置VTP域
vtp mode server 將Switch 1配置成VTP server.
show vtp status 驗證VTP的配置
show vlan 驗證VLAN
configure terminal 進入配置狀態
interface fastethernet 0/1 進入F0/1埠
switchport trunk encapsulation {isl | dot1q | negotiate}配置trunk封裝
switchport mode trunk 配置成trunk
show interfaces fastethernet0/1 switchport 驗證VLAN配置
按以上步驟對想要負載均衡的介面進行配置
在另一個交換機上進行此配置
show vlan 當trunk已經起來,在switch2上驗證已經學到相的vlan配置
configure terminal 在Switch 1上進入配置狀態
interface fastethernet0/1 進入要配置的埠
spanning-tree vlan 8 port-priority 10 將埠權值10賦與VLAN 8.
spanning-tree vlan 9 port-priority 10 將埠權值10賦與VLAN 9.
spanning-tree vlan 10 port-priority 10 將埠權值10賦與VLAN 10.
interface fastethernet0/2 進入F0/2
spanning-tree vlan 3 port-priority 10 將埠權值10賦與VLAN 3.
spanning-tree vlan 4 port-priority 10 將埠權值10賦與VLAN 4
spanning-tree vlan 5 port-priority 10 將埠權值10賦與VLAN 5
spanning-tree vlan 6 port-priority 10 將埠權值10賦與VLAN 10
end 退出
show running-config 驗證配置
running-config startup-config 保存配置
配置STP路徑值的負載均衡
Trunk1走VLAN8-10,Trunk2走VLAN2-4
configure terminal 進入 Switch 1配置狀態
interface fastethernet 0/1 進入F0/1
switchport trunk encapsulation {isl | dot1q | negotiate}配置封裝
switchport mode trunk 配置Trunk,預設是ISL封裝
exit 退回
在F0/2口上重復2-4步驟
exit 退回
show running-config 驗證配置
show vlan驗證switch1 已經學到Vlan
configure terminal 進入配置狀態
interface fastethernet 0/1 進入F0/1
spanning-tree vlan 2 cost 30 設置Vlan2生成樹路徑值為30
spanning-tree vlan 3 cost 30 設置Vlan3生成樹路徑值為30
spanning-tree vlan 4 cost 30 設置Vlan4生成樹路徑值為30
end 退出
在switch1的F0/2上重復9-11步驟設置VLAN8,9,10生成樹路徑值為30
end 退出
show running-config 驗證配置
running-config startup-config 保存配置
補充:CISCO命令集——路由選擇協議及排障
*ip route命令
Router(config)# ip route <目錄網路或子網號> [子網掩碼] <下一路由器IP地址 | 從本地出口
的地址> [管理距離0~255,默認為1]
(註:靜態地址配置)
*ip default-network命令
Router(config)# ip default-network <目標網路號>
(註:配合路由協使用,用其中的一個動態路由號作默認路由配置)
Router(config)# ip route 0.0.0.0 0.0.0.0 <下一路由器IP地址 | 從本地出口的地址>
(註:只有一個公網地址時,在出口路由器上的配置)
*內部路由選擇協議
*使用router和network命令
Router(config)# router <路由協議rip | igrp | eigrp | ospf | is-is等> [自主系統號]
Router(config-router)# network <直接相連的要用此路由協議的網路號>
Router(config-router)# network <直接相連的要用此路由協議的網路號>
*路由信息協議RIP
Router(config)# router rip
Router(config-router)# network <直接相連的要用rip協議的有類別網路號>
Router# show ip protocols
Router# show ip route
Router# debug ip rip
*內部網關路由協議IGRP
Router(config)# router igrp <自主系統號>
Router(config-router)# network <直接相連的要用igrp協議的有類別網路號>
Router# show ip interface
Router# show ip protocols
Router# show ip route
Router# debug ip rip
*排除網路故障
排除網路故障的一個總體模型
Router# ping <有故障的主機 | 有故障的IP地址>
Router# show ip route
Router# show interface <有故障的介面>
Router# show run
*IP的故故障排除
檢查可用的路由
Router# show ip route <有故障的IP地址>
27.4.4 跟蹤路由(Tracing the Route)
SUN-A> traceroute <有故障的主機 | 有故障的IP地址>
C:\windows\> winipcfg
C:\windows\> ipconfig
C:\windows\> ipconfig / all
C:\windows\> tracert <有故障的主機 | 有故障的IP地址>
使用擴展的ping來跟蹤連接性
Router# ping
*其它可能的故障
一個地址解析(ARP)的故障
Router# show arp
Router# show interface <有故障的介面>
C:\windows\> arp -a
SUN-A> arp –a
驗證終端系統的路由表
C:\windows\> netstat –rn
C:\windows\> route –f add 0.0.0.0 mask 0.0.0.0 <需要添加入的網關地址>
C:\windows\> route [–f ] [[print | add | delete | change] [destination] [mask
netmask] [gateway]]
C:\windows\> route add mask <網路掩碼> <網關ip地址>
C:\windows\> route delete mask <網路掩碼> <網關ip地址>
C:\windows\> nbtstat <相應的參數>
SUN-A> netstat -rn路由器

⑶ ospf協議配置命令是啥

命令如下在全局模式下routerospf1···································建立OSPF路由network發布的網段反向子網掩碼area0·············發布網段你在交換機或路由器中設置幾個IP就發布幾個IP(相同子網除外)假如你要發布的網段為10.1.1.0子網是255.255.255.0那麼發布的命令就是network10.1.1.00.0.0.255area0希望你可以明白

⑷ 路由器ospf協議連接圖和配置命令

這是神州數碼的命令,僅供參考:DCRS-7604#CONFDCRS-7604(Config)#vlan 10DCRS-7604(Config-vlan10)#switchport interface ethernet 1/1-8Set the port Ethernet1/1 access vlan 10 successfullySet the port Ethernet1/2 access vlan 10 successfullySet the port Ethernet1/3 access vlan 10 successfullySet the port Ethernet1/4 access vlan 10 successfullySet the port Ethernet1/5 access vlan 10 successfullySet the port Ethernet1/6 access vlan 10 successfullySet the port Ethernet1/7 access vlan 10 successfullySet the port Ethernet1/8 access vlan 10 successfullyDCRS-7604(Config-vlan10)#exitDCRS-7604(Config)#vlan 20DCRS-7604(Config-vlan20)#switchport interface ethernet 1/9-16Set the port Ethernet1/9 access vlan 20 successfully Set the port Ethernet1/10 access vlan 20 successfullySet the port Ethernet1/11 access vlan 20 successfullySet the port Ethernet1/12 access vlan 20 successfullySet the port Ethernet1/13 access vlan 20 successfullySet the port Ethernet1/14 access vlan 20 successfullySet the port Ethernet1/15 access vlan 20 successfullySet the port Ethernet1/16 access vlan 20 successfullyDCRS-7604(Config-vlan20)#exitDCRS-7604(Config)# vlan 100DCRS-7604(Config-vlan100)#switchport interface ethernet 1/24Set the port Ethernet1/24 access vlan 100 successfullyDCRS-7604(Config-vlan100)#exitDCRS-7604(Config)#驗證配置:DCRS-7604 #show vlanVLAN Name Type Media Ports---- ------------ ---------- --------- ----------------------------------------1 default Static ENET Ethernet1/17 Ethernet1/18 Ethernet1/19 Ethernet1/20 Ethernet1/21 Ethernet1/22 Ethernet1/23 Ethernet1/25 Ethernet1/26 Ethernet1/27 Ethernet1/28 10 vlan0010 Static ENET Ethernet1/1 Ethernet1/2 Ethernet1/3 Ethernet1/4 Ethernet1/5 Ethernet1/6 Ethernet1/7 Ethernet1/820 vlan0020 Static ENET Ethernet1/9 Ethernet1/10 Ethernet1/11 Ethernet1/12 Ethernet1/13 Ethernet1/14 Ethernet1/15 Ethernet1/16100 VLAN0100 Static ENET Ethernet1/24DCRS-7604# 交換機B:DCRS-5526(Config)#vlan 30DCRS-5526(Config-Vlan30)#switchport interface ethernet 0/0/1-8Set the port Ethernet0/0/1 access vlan 30 successfullySet the port Ethernet0/0/2 access vlan 30 successfullySet the port Ethernet0/0/3 access vlan 30 successfullySet the port Ethernet0/0/4 access vlan 30 successfullySet the port Ethernet0/0/5 access vlan 30 successfullySet the port Ethernet0/0/6 access vlan 30 successfullySet the port Ethernet0/0/7 access vlan 30 successfullySet the port Ethernet0/0/8 access vlan 30 successfullyDCRS-5526(Config-Vlan30)#exitDCRS-5526(Config)#vlan40DCRS-5526(Config-Vlan40)#switchport interface ethernet 0/0/9-16Set the port Ethernet0/0/9 access vlan 40 successfullySet the port Ethernet0/0/10 access vlan 40 successfullySet the port Ethernet0/0/11 access vlan 40 successfullySet the port Ethernet0/0/12 access vlan 40 successfullySet the port Ethernet0/0/13 access vlan 40 successfullySet the port Ethernet0/0/14 access vlan 40 successfullySet the port Ethernet0/0/15 access vlan 40 successfullySet the port Ethernet0/0/16 access vlan 40 successfullyDCRS-5526(Config-Vlan40)#exitDCRS-5526(Config)#vlan 101DCRS-5526(Config-Vlan101)#switchport interface ethernet 0/0/24Set the port Ethernet0/0/24 access vlan 101 successfullyDCRS-5526(Config-Vlan101)#exitDCRS-5526(Config)#驗證配置:DCRS-5526#show vlanVLAN Name Type Media Ports---- ------------ ---------- --------- ----------------------------------------1 default Static ENET Ethernet0/0/17 Ethernet0/0/18 Ethernet0/0/19 Ethernet0/0/20 Ethernet0/0/21 Ethernet0/0/22 Ethernet0/0/2330 vlan10 Static ENET Ethernet0/0/1 Ethernet0/0/2 Ethernet0/0/3 Ethernet0/0/4 Ethernet0/0/5 Ethernet0/0/6 Ethernet0/0/7 Ethernet0/0/840 vlan20 Static ENET Ethernet0/0/9 Ethernet0/0/10 Ethernet0/0/11 Ethernet0/0/12 Ethernet0/0/13 Ethernet0/0/14 Ethernet0/0/15 Ethernet0/0/16101 VLAN0100 Static ENET Ethernet0/0/24DCRS-5526# 第二步:配置交換機各VLAN虛介面的IP地址交換機A: DCRS-7604#configDCRS-7604(Config)#int vlan 10DCRS-7604(Config-If-Vlan10)#ip address 192.168.10.1 255.255.255.0DCRS-7604(Config-If-Vlan10)#no shutDCRS-7604(Config-If-Vlan10)#exitDCRS-7604(Config)#int vlan 20DCRS-7604(Config-If-Vlan20)#ip address 192.168.20.1 255.255.255.0DCRS-7604(Config-If-Vlan20)#no shutDCRS-7604(Config-If-Vlan20)#exitDCRS-7604(Config)#int vlan 100DCRS-7604(Config-If-Vlan100)#ip address 192.168.100.1 255.255.255.0DCRS-7604(Config-If-Vlan100)#no shutDCRS-7604(Config-If-Vlan100)#DCRS-7604(Config-If-Vlan100)#exitDCRS-7604(Config)# 交換機B:DCRS-5526S(Config)#int vlan 30DCRS-5526S(Config-If-Vlan30)#ip address 192.168.30.1 255.255.255.0DCRS-5526S(Config-If-Vlan30)#no shutDCRS-5526S(Config-If-Vlan30)#exitDCRS-5526S(Config)#int vlan 40DCRS-5526S(Config-If-Vlan40)#ip address 192.168.40.1 255.255.255.0DCRS-5526S(Config-If-Vlan40)#no shutDCRS-5526S(Config-If-Vlan40)#exitDCRS-5526S(Config)#int vlan 101DCRS-5526S(Config-If-Vlan101)#ip address 192.168.101.1 255.255.255.0DCRS-5526S(Config-If-Vlan101)#exitDCRS-5526S(Config)#

⑸ 在交換機和路由器上設置ospf

2層交換機那設置好vlan(vtp域,vlan名和vlan號,以及各個埠允許通過的VLAN),與PC機相連的開啟vlan
access模式,與Router相連的開啟trunk模式。兩台路由器配置好介面IP。RA與SA相連的那段口設置成trunk模式,與RB和SB相連的配置ospf路由協議(這個命令不用給出了吧)。RB和SC也都開啟ospf路由協議,三層交換機去掉交換功能(這個命令我想也不用給了吧),然後配置好主機,試試看吧去

⑹ 三層交換機怎麼配ospf

1、首先需要打開模擬器進入配置環境。

⑺ 華為交換機路由配置命令

華為路由器交換機配置命令:路由器命令

[Quidway]displayversion;顯示版本信息
[Quidway]displaycurrent-configuration;顯示當前配置
[Quidway]displayinterfaces;顯示介面信息
[Quidway]displayiproute;顯示路由信息
[Quidway]sysnameaabbcc;更改主機名
[Quidway]superpasswrod123456;設置口令
[Quidway]interfaceserial0;進入介面
[Quidway-serial0]ipaddress;配置埠IP地址
[Quidway-serial0]undoshutdown;激活埠
[Quidway]link-protocolhdlc;綁定hdlc協議
[Quidway]user-interfacevty04
[Quidway-ui-vty0-4]authentication-modepassword
[Quidway-ui-vty0-4]setauthentication-modepasswordsimple222
[Quidway-ui-vty0-4]userprivilegelevel3
[Quidway-ui-vty0-4]quit
[Quidway]debugginghdlcallserial0;顯示所有信息
[Quidway]debugginghdlceventserial0;調試事件信息
[Quidway]debugginghdlcpacketserial0;顯示包的信息

華為路由器交換機配置命令:靜態路由:
[Quidway]iproute-static{interfacenumber|nexthop}[value][reject|blackhole]
例如:[Quidway]iproute-static129.1.0.01610.0.0.2
[Quidway]iproute-static129.1.0.0255.255.0.010.0.0.2
[Quidway]iproute-static129.1.0.016Serial2
[Quidway]iproute-static0.0.0.00.0.0.010.0.0.2

華為路由器交換機配置命令:動態路由:
[Quidway]rip;設置動態路由
[Quidway]ripwork;設置工作允許
[Quidway]ripinput;設置入口允許
[Quidway]ripoutput;設置出口允許
[Quidway-rip]network1.0.0.0;設置交換路由網路
[Quidway-rip]networkall;設置與所有網路交換
[Quidway-rip]peerip-address;
[Quidway-rip]summary;路由聚合
[Quidway]ripversion1;設置工作在版本1
[Quidway]ripversion2multicast;設版本2,多播方式
[Quidway-Ethernet0]ripsplit-horizon;水平分隔
[Quidway]routeridA.B.C.D;配置路由器的ID
[Quidway]ospfenable;啟動OSPF協議
[Quidway-ospf]import-routedirect;引入直聯路由
[Quidway-Serial0]ospfenablearea;配置OSPF區域

華為路由器交換機配置命令:標准訪問列表命令格式如下:
acl[match-orderconfig|auto];默認前者順序匹配。
rule[normal|special]{permit|deny}[sourcesource-addrsource-wildcard|any]
例:[Quidway]acl10
[Quidway-acl-10]rulenormalpermitsource10.0.0.00.0.0.255
[Quidway-acl-10]rulenormaldenysourceany

華為路由器交換機配置命令:擴展訪問控制列表配置命令
配置TCP/UDP協議的擴展訪問列表:
rule{normal|special}{permit|deny}{tcp|udp}source{|any}destination|any}
[operate]
配置ICMP協議的擴展訪問列表:
rule{normal|special}{permit|deny}icmpsource{|any]destination{|any]
[icmp-code][logging]

華為路由器交換機配置命令:擴展訪問控制列表操作符的含義
equalportnumber;等於
greater-thanportnumber;大於
less-thanportnumber;小於
not-equalportnumber;不等
rangeportnumber1portnumber2;區間

⑻ ospf協議是怎麼配置的

OSPF路由協議是用於網際協議(IP)網路的鏈路狀態路由協議。該協議使用鏈路狀態路由演算法的內部網關協議(IGP),在單一自治系統(AS)內部工作。適用於IPv4的OSPFv2協議定義於RFC 2328,RFC 5340定義了適用於IPv6的OSPFv3。

OSPF協議是一種鏈路狀態協議。每個路由器負責發現、維護與鄰居的關系,並將已知的鄰居列表和鏈路費用LSU報文描述,通過可靠的泛洪與自治系統AS(Autonomous System)內的其他路由器周期性交互,學習到整個自治系統的網路拓撲結構;並通過自治系統邊界的路由器注入其他AS的路由信息,從而得到整個Internet的路由信息。每隔一個特定時間或當鏈路狀態發生變化時,重新生成LSA,路由器通過泛洪機制將新LSA通告出去,以便實現路由的實時更新。

(8)路由與交換osp配置命令擴展閱讀:

OSPF路由協議的實現過程

1、初始化形成埠初始信息:在路由器初始化或網路結構發生變化(如鏈路發生變化,路由器新增或損壞)時,相關路由器會產生鏈路狀態廣播數據包LSA,該數據包里包含路由器上所有相連鏈路,也即為所有埠的狀態信息。

2、路由器間通過泛洪(Floodingl機制交換鏈路狀態信息:各路由器一方面將其LSA數據包傳送給所有與其相鄰的OSPF路由器,另一方面接收其相鄰的OSPF路由器傳來的LSA數據包,根據其更新自己的資料庫。

3、形成穩定的區域拓撲結構資料庫:OSPF路由協議通過泛洪法逐漸收斂,形成該區域拓撲結構的資料庫,這時所有的路由器均保留了該資料庫的一個副本。

4、形成路由表:所有的路由器根據其區域拓撲結構資料庫副本採用最短路徑法計算形成各自的路由表。

⑼ ensp中一台路由器一台交換機,兩台pc怎麼配置ospf

ensp中一台路由器一台交換機,ospf配置方法有:配置的主機位為1,網路位為3,所以掩碼為24,然後加路由器或者交換機換成三層交換機,可以用單臂路由配置的方法進行適配。

首先要重新ping幾次,如果再不行先Ping網關然後在Ping,我們需要查看埠是Ethernet還是GE,如果是Ethernet則我們使用E0/0/0,否則我們就使用G0/0/0。即mask : 255.255.255.0,四台PC機IP配置如圖所示,Swiith0跟Router0之間用0號連接且配置IP為192.168.122.254。

在配置ensp中一台路由器一台交換機ospf,as-sw1及as-sw2是兩台接入層交換機,它們各自連接著一些終端PC,as-sw1連接著vlan10的用戶,as-sw2連接著vlan20的用戶。

core-sw1及core-sw2是兩台核心交換機,它們具備三層路由功能,而且分別是vlan10和vlan20用戶的網關,兩台核心交換機採用VLAN12實現三層對接,在兩台核心交換機上部署OSPF,使得全網的路由實現互通。

這樣一來就可以進行配置了,通過core-sw1已經通過OSPF學習到了去往192.168.20.0/24網段的路由,而core-sw2也能夠通過OSPF學習到去往192.168.1.0/24網段的路由。

⑽ ospf配置命令

OSPF路由協議是一種用於Internet協議(IP)網路的鏈路狀態路由協議。該協議使用鏈路狀態路由演算法的內部網關協議(IGP)在單個自治系統(as)中工作。IPv4的Ospfv2在RFC 2328中定義,IPv6的OSPFv3在RFC 5340中定義。

OSPF是一種鏈路狀態協議。每個路由器負責發現和維護與鄰居的關系,描述已知的鄰居列表和鏈路代價LSU消息,通過可靠的泛洪和與自治系統as(autonomous system)中其他路由器的周期性交互來學習整個自治系統的網路拓撲。

在自治系統邊界處,將其他as的路由信息注入到路由器中,得到整個Internet的路由信息。每隔一段時間或鏈路狀態發生變化時,重新生成LSA,實現路由的實時更新。



(10)路由與交換osp配置命令擴展閱讀:

OSPF路由協議的實現過程

1、初始化形成初始埠信息:當路由器初始化或網路結構改變(如鏈路改變、路由器增加或損壞)時,相關路由器產生鏈路狀態廣播包LSA,其中包含路由器上所有連接的鏈路,即所有埠的狀態信息。

2、路由器通過泛洪機制交換鏈路狀態信息:每一個路由器一方面將其LSA包發送給與其相鄰的所有OSPF路由器,另一方面從其相鄰的OSPF路由器接收LSA包,並根據LSA包更新自己的資料庫。

閱讀全文

與路由與交換osp配置命令相關的資料

熱點內容
網易我的世界伺服器成員如何傳送 瀏覽:265
公司雲伺服器遠程訪問 瀏覽:629
法哲學pdf 瀏覽:634
清大閱讀app是什麼 瀏覽:446
怎麼用qq瀏覽器整體解壓文件 瀏覽:584
肺組織壓縮15 瀏覽:269
安卓手機為什麼換電話卡沒反應 瀏覽:796
諸子集成pdf 瀏覽:338
php注冊框代碼 瀏覽:716
手機加密好還是不加好好 瀏覽:814
別克凱越壓縮機泵頭多錢 瀏覽:241
組管理命令 瀏覽:980
海南高德司機端是什麼app 瀏覽:861
pid命令 瀏覽:888
一天一圖學會python可視化 瀏覽:309
魔獸編輯文本命令串 瀏覽:497
android中view繪制 瀏覽:798
安卓機內存刪除怎麼恢復 瀏覽:331
Qt環境的編譯軟體放到linux 瀏覽:214
聯創列印系統怎麼連接伺服器 瀏覽:937