當前位置:首頁 » 數據倉庫 » 如何使用eigrp配置路由器
擴展閱讀
webinf下怎麼引入js 2023-08-31 21:54:13
堡壘機怎麼打開web 2023-08-31 21:54:11

如何使用eigrp配置路由器

發布時間: 2023-03-02 14:01:18

A. eigrp 交換機下的網段怎麼配置

1、首先把你電腦的網段改為192網段(這樣你才可以進入交換機的web界面修改ip)。
2、通過交換機ip地址進入路由器後配置交換機的網段地址為193網段。

B. 請會配置配路由器的高手幫幫忙,給我講講EIGRP是啥意思怎麼用

eigrp是思科私有的路由協議,是一種高級距離矢量路由協議。優點收斂極快,能進行不等價負載均衡等,
配置eigrp,在全局模式下。首先給一個eigrp系統號,既router eigrp ?(?是指可以定義為1-65600吧),然後關閉自動匯總。no aoto。。。(自動匯總意思就是會把IP自動匯總成主類網路,新手不需要關閉也可以),然後打上連接路由器的網段,比如network 192.168.1.0這樣的C類網段。這個是最簡單的配置,兩個路由器的eigrp系統號需一樣

C. 交換機怎麼配 置EIGRP協議

一般在Cisco路由器上配置EIGRP。如果是CISCO三層交換機也可以配,但跟路由器配置是一樣的。無非就是多了一條ip routing命令。

D. 思科路由怎麼配置EIGRP

enable:進入特權命令狀態
configterminal:進入全局設置狀態
end:退出全局設置狀態
interfacetypeslot/number:進入埠設置狀態
exit:退出局部設置狀態
hostnamename:設置交換機名
showversion:查看版本及引導信息
showrunning-config:查看運行設置
showvlan:查看VLAN設置
showinterfacetypeslot/number:顯示埠信息
pinghostname|IPaddress:網路偵測
1、進入特權模式
Switch>enable(進入特權模式)
Switch#
2、進入全局配置與返回模式
Switch>enable
Switch#configterminal(進入全局配置模式)
Switch(config)#exit(退回上一級模式)
(cisco)路由器動態路由協議命令

E. 怎麼配置陸游器

路由器的配置與調試
路由器在計算機網路中有著舉足輕重的地位,是計算機網路的橋梁。通過它不僅可以連通不同的網路,還能選擇數據傳送的路徑,並能阻隔非法的訪問
路由器的配置對初學者來說,並不是件十分容易的事。現將路由器的一般配置和簡單調試介紹給大家,供朋友們在配置路由器時參考,本文以Cisco2501為例。
Cisco2501有一個乙太網口(AUI)、一個Console口(RJ45)、一個AUX口(RJ45)和兩個同步串口,支持DTE和DCE設備,支持 EIA/TIA-232、 EIA/TIA-449、 V.35 、X.25和EIA-530介面。
一.配置
1.配置乙太網埠
# conf t(從終端配置路由器)
# int e0(指定E0口)
# ip addr ABCD XXXX(ABCD 為乙太網地址,XXXX為子網掩碼)
# ip addr ABCD XXXX secondary(E0口同時支持兩個地址類型。如果第一個為 A類地址,則第二個為B或C類地址)
# no shutdown(激活E0口)
# exit
完成以上配置後,用ping命令檢查E0口是否正常。如果不正常,一般是因為沒有激活該埠,初學者往往容易忽視。用no shutdown命令激活E0口即可。
2.X.25的配置
# conf t
# int S0(指定S0口)
# ip addr ABCD XXXX(ABCD 為乙太網S0 的IP地址,XXXX為子網掩碼)
# encap X25-ABC(封裝X.25協議。ABC指定X.25為DTE或DCE操作,預設為DTE)
# x25 addr ABCD(ABCD為S0的X.25埠地址,由郵電局提供)
# x25 map ip ABCD XXXX br(映射的X.25地址。ABCD為對方路由器(如:S0)的IP 地址,XXXX為對方路由器(如:S0)的X.25埠地址)
# x25 htc X(配置最高雙向通道數。X的取值范圍1-4095,要根據 郵電局實際提供的數字配置)
# x25 nvc X(配置虛電路數,X不可超過郵電局實際提供的數否則將影響數據的正常傳輸)
# exit
S0埠配置完成後,用no shutdown命令激活E0口。如果ping S0埠正常,ping 映射的X.25 IP地址即對方路由器埠IP地址不通,則可能是以下幾種情況引起的:1)本機X.25地址配置錯誤,重新與郵局核對(X.25地址長度為13位);2)本機映射IP地址或X.25地址配置錯誤,重新配置正確;3)對方IP地址或X.25地址配置錯誤;4)本機或對方路由配置錯誤。
能夠與對方通訊,但有丟包現象。出現這種情況,一般有以下幾種可能:1)線路情況不好,或網卡、RJ45插頭接觸不良;2)x25 htc最高雙向通道數X的取值范圍和x25nvc 虛電路數X超出郵電局實際提供的數字。最高雙向通道數和虛電路數這兩個值越大越好,但絕對不能超出郵電局實際提供的數字,否則就會出現丟包現象。
3.專線的配置
# conf t
# int S2(指定S2口)
# ip addr ABCD XXXX(ABCD 為S2 的IP地址,XXXX為子網掩碼)
# exit
專線口配置完成後,用no shutdown命令激活S2口即可。
4.幀中繼的配置
# conf t
# int s0
# ip addr ABCD XXXX (ABCD 為S0 的IP地址,XXXX為子網掩碼)
# encap frame_relay (封裝frame_relay 協議)
# no nrzi_encoding (NRZI=NO)
# frame_relay lmi_type q933a (LMI使用Q933A標准.LMI(Local management Interface) 有3種:ANSI:T1.617、CCITTY:Q933A和Cisco特有的標准)
# frame-relay intf-typ ABC(ABC為幀中繼設備類型,它們分別是DTE設備、DCE交換機或NNI(網路接點介面)支持)
# frame_relay interface_dlci 110 br(配置DLCI(數據鏈路連接標識符))
# frame-relay map ip ABCD XXXX broadcast (建立幀中繼映射。ABCD為對方IP地址,XXXX為本地DLCI號,broadcast允許廣播向前轉發或更新路由)
# no shutdown (激活本埠)
# exit
幀中繼S0埠配置完成後,用ping命令檢查S0口。如果不正常,通常是因為沒有激活該埠,用no shutdown命令激活S0口即可。如果ping S0埠正常,ping 映射的IP地址不正常,則可能是幀中繼交換機或對方配置錯誤,需要綜合排查。
5.配置同步/非同步口(適用於2522)
# conf t
# int s2
# ph asyn (配置S2為非同步口)
# ph sync (配置S2為同步口)
6.動態路由的配置
# conf t
# router eigrp 20 (使用EIGRP路由協議。常用的路由協議有RIP、IGRP、IS-IS等)
# passive-interface serial0 (若S0與X.25相連,則輸入本條指令)
# passive-interface serial1 (若S1與X.25相連,則輸入本條指令)
# network ABCD (ABCD為本機的乙太網地址)
# network XXXX (XXXX為S0的IP地址)
# no auto-summary
# exit
7.靜態路由的配置
# ip router ABCD XXXX YYYY 90 (ABCD為對方路由器的乙太網地址,XXXX 為子網掩碼,YYYY為對方對應的廣域網埠地址)
# dialer-list 1 protocol ip permit
二. 綜合調試
當路由器全部配置完畢後,可進行一次綜合調試。
1.首先將路由器的乙太網口和所有要使用的串口都激活。方法是進入該口,執行no shutdown。
2.將和路由器相連的主機加上預設路由(中心路由器的以太地址)。方法是在Unix系統的超級用戶下執行:router add default XXXX 1(XXXX為路由器的E0口地址)。每台主機都要加預設路由,否則,將不能正常通訊。
3.ping本機的路由器乙太網口,若不通,可能乙太網口沒有激活或不在一個網段上。ping廣域網口,若不通,則沒有加預設路由。ping對方廣域網口,若不通,路由器配置錯誤。ping主機乙太網口,若不通,對方主機沒有加預設路由。
4.在專線卡X.25主機上加網關(靜態路由)。方法是在Unix系統的超級用戶下執行:router add X.X.X.X Y.Y.Y.Y 1(X.X.X.X為對方乙太網地址,Y.Y.Y.Y為對方廣域網地址)。
5.使用Tracert對路由進行跟蹤,以確定不通網段。
路由器的選購
選擇路由器時應注意安全性、控制軟體、網路擴展能力、網管系統、帶電插拔能力等方面。
1.由於路由器是網路中比較關鍵的設備,針對網路存在的各種安全隱患,路由器必須具有如下的安全特性:
(1)可靠性與線路安全 可靠性要求是針對故障恢復和負載能力而提出來的。對於路由器來說,可靠性主要體現在介面故障和網路流量增大兩種情況下,為此,備份是路由器不可或缺的手段之一。當主介面出現故障時,備份介面自動投入工作,保證網路的正常運行。當網路流量增大時,備份介面又可承當負載分擔的任務。 (2)身份認證 路由器中的身份認證主要包括訪問路由器時的身份認證、對端路由器的身份認證和路由信息的身份認證。
(3)訪問控制 對於路由器的訪問控制,需要進行口令的分級保護。有基於IP地址的訪問控制和基於用戶的訪問控制。
(4)信息隱藏 與對端通信時,不一定需要用真實身份進行通信。通過地址轉換,可以做到隱藏網內地址,只以公共地址的方式訪問外部網路。除了由內部網路首先發起的連接,網外用戶不能通過地址轉換直接訪問網內資源。
(5)數據加密
(6)攻擊探測和防範
(7)安全管理
2.路由器的控制軟體是路由器發揮功能的一個關鍵環節。從軟體的安裝、參數自動設置,到軟體版本的升級都是必不可少的。軟體安裝、參數設置及調試越方便,用戶使用就越容易掌握,就能更好地應用。
3.隨著計算機網路應用的逐漸增加,現有的網路規模有可能不能滿足實際需要,會產生擴大網路規模的要求,因此擴展能力是一個網路在設計和建設過程中必須要考慮的。擴展能力的大小主要看路由器支持的擴展槽數目或者擴展埠數目。
4.隨著網路的建設,網路規模會越來越大,網路的維護和管理就越難進行,所以網路管理顯得尤為重要。 5.在我們安裝、調試、檢修和維護或者擴展計算機網路的過程中,免不了要給網路中增減設備,也就是說可能會要插拔網路部件。那麼路由器能否支持帶電插拔,是路由器的一個重要的性能指標。
外型尺寸的選擇
如果網路已完成樓宇級的綜合布線,工程要求網路設備上機式集中管理,應選擇19英寸寬的機架式路由器,如Cisco2509、華為2501(配置同Cisco2501)。如果沒有上述需求,桌面型的路由器如Intel的8100和Cisco的1600系列,具有更高的性能價格比。
協議的選擇
由於最初區域網並沒先出標准後出產品,所以很多廠商如Apple和IBM都提出了自己的標准,產生了如AppleTalk和IBM協議,Novell公司的網路操作系統運行IPX/SPX協議,在連接這些異構網路時需要路由器對這些協議提供支持。Intel9100系列和9200系列的路由器可提供免費支持,3Com的系列路由產品也提供較廣泛的協議支持。
路由器作為網路設備中的「黑匣子」,工作在後台。用戶選擇路由器時,多從技術角度來考慮,如可延展性、路由協議互操作性、廣域數據服務支持、內部ATM支持、SAN集成能力等。另外,選擇路由器還應遵循如下基本原則:即標准化原則、技術簡單性原則、環境適應性原則、可管理性原則和容錯冗餘性原則。對於高端路由器,更多的還應該考慮是否和如何適應骨幹網對網路高可靠性、介面高擴展性以及路由查找和數據轉發的高性能要求。高可靠性、高擴展性和高性能的「三高」特性是高端路由器區別於中、低端路由器的關鍵所在。
CISCO路由器初始配置簡介
很多初學路由器知識的網友對路由器的初始配置可能感到很陌生,本人在初學時也很困惑,因為一下出來很多提問不知如何是好,下面將最近剛調試的一台CISCO3640的初始配置整理出來與各位網友交流,如有疏漏之處,還請大家指正。
1.用CISCO隨機帶CONSOLE線,一端連在CISCO路由器的CONSOLE口,一端連在計算機的COM口。
2.打開電腦,啟動超級終端.為您的連接取個名字,比如CISCO_SETUP,下一步選定連接時用COM1,下一步選定第秒位數9600,數據位8,奇偶校驗無,停止位1,數據流控制無.最後選確定。
3.打開路由器電源,這時超級終端將出現以下畫面:
System Bootstrap, Version 11.1(20)AA2, EARLY DEPLOYMENT RELEASE SOFTWARE (fc1)
Copyright (c) 1999 by cisco Systems, Inc.C3600 processor with 32768 Kbytes of main memory Main memory is configured to 64 bit mode with parity disabled
program load complete, entry point: 0x80008000, size: 0x4ed478 Self decompressing the image :
###################################################################
###################################################################
###################################################################
###################################################################
###################################################################
###################################################################
###################################################################
[OK]
Restricted Rights Legend
Use, plication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.
cisco Systems, Inc.
170 West Tasman Drive
San Jose, California 95134-1706
Cisco Internetwork Operating System Software
IOS (tm) 3600 Software (C3640-I-M), Version 12.1(2)T, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2000 by cisco Systems, Inc.
Compiled Tue 16-May-00 12:26 by ccai
Image text-base: 0x600088F0, data-base: 0x60924000
cisco 3640 (R4700) processor (revision 0x00) with 24576K/8192K bytes of memory.
Processor board ID 25125768
R4700 CPU at 100Mhz, Implementation 33, Rev 1.0
Bridging software.
X.25 software, Version 3.0.0.
2 FastEthernet/IEEE 802.3 interface(s)
1 Serial network interface(s)
DRAM configuration is 64 bits wide with parity disabled.
125K bytes of non-volatile configuration memory.
8192K bytes of processor board System flash (Read/Write)
--- System Configuration Dialog ---
Would you like to enter the initial configuration dialog? [yes/no]: y
您是否進入初始化配置對話,選Y
At any point you may enter a question mark '?' for help.
Use ctrl-c to abort configuration dialog at any prompt.
Default settings are in square brackets '[]'.Basic management setup configures only enough connectivity
for management of the system, extended setup will ask you
to configure each interface on the system
Would you like to enter basic management setup? [yes/no]: n
您是否進入基本配置安裝,選N
First, would you like to see the current interface summary? [yes]: y
首先,您是否看一下當前端口狀態
Any interface listed with OK? value "NO" does not have a valid configuration
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0unassigned NO unset up down
Serial0/0 unassigned NO unset down down
FastEthernet0/1unassigned NO unset up down
Configuring global parameters:
Enter host name [Router]:RouterA
輸入路由器的名字
The enable secret is a password used to protect access to
privileged EXEC and configuration modes. This password, after
entered, becomes encrypted in the configuration.
Enter enable secret: aaa
輸入密文
The enable password is used when you do not specify an
enable secret password, with some older software versions, and
some boot images.
Enter enable password: bbb
輸入密碼(不能和密文相同)
The virtual terminal password is used to protect
access to the router over a network interface.
Enter virtual terminal password: ccc
輸入虛擬終端的密碼(以備遠程登錄)
Configure SNMP Network Management? [yes]: n
配置簡單網管嗎?選N
Configure IP? [yes]: y
配置IP嗎?選Y
Configure IGRP routing? [yes]: n
配置IGRP路由選擇協議嗎?選N
Configure RIP routing? [no]:
配置IGRP路由選擇協議嗎?選N
Configure bridging? [no]:
配置橋接嗎?選N
Async lines accept incoming modems calls. If you will have
users dialing in via modems, configure these lines.
Configure Async lines? [yes]: n
配置非同步線路嗎?選N
Configuring interface parameters:
Do you want to configure FastEthernet0/0 interface? [yes]: y
您是否想配置fastethernet0/0介面?選Y
Use the 100 Base-TX (RJ-45) connector? [yes]: y
用RJ45的連接器嗎?選Y
Operate in full-plex mode? [no]: y
選用全雙工模式?選Y
Configure IP on this interface? [yes]: y
在這個介面上配置IP嗎?選Y
IP address for this interface: 192.168.0.1
配置該介面的IP地址(在此地址為192.168.0.1
Subnet mask for this interface [255.255.255.0] :
配置該介面的子網掩碼.(默認的是255.255.255.0,可以手工輸入修改)
Class C network is 192.168.0.0, 24 subnet bits; mask is /24
Do you want to configure Serial0/0 interface? [yes]: y
您想配置serial0/0介面嗎?選Y
Some supported encapsulations are
ppp/hdlc/frame-relay/lapb/x25/atm-dxi/smds
Choose encapsulation type [hdlc]:
選擇封裝方式(默認的封裝方式是HDLC,您可根據與您的路由器相連選用的封裝類型來決定用什麼樣的封裝類型
No serial cable seen.
Choose mode from (dce/dte) [dte]:
(因為沒有連串口線所以會讓您選擇設備類型)
Configure IP on this interface? [yes]: y
(在介面上配置IP)
Configure IP unnumbered on this interface? [no]:
IP address for this interface: 172.16.0.5
配置該介面的IP地址(在此地址為172.16.0.5)
Subnet mask for this interface [255.255.0.0] : 255.255.255.252
配置該介面的子網掩碼.(默認的是255.255.0.0,可以手工輸入修改為255.255.255.252)
Class B network is 172.16.0.0, 30 subnet bits; mask is /30
(以下配置同上)
Do you want to configure FastEthernet0/1 interface? [yes]:
Use the 100 Base-TX (RJ-45) connector? [yes]:
Operate in full-plex mode? [no]: y
Configure IP on this interface? [yes]: y
IP address for this interface: 172.16.0.9
Subnet mask for this interface [255.255.0.0] : 255.255.255.252 Class B network is 172.16.0.0, 30 subnet bits; mask is /30
The following configuration command script was created:
(把您的配置顯示出來)
hostname aaa
enable secret 5 $ul/V$ezbZFgvzGHD.YPSieC0Ew/
enable password RouterA
line vty 0 4
password ccc
no snmp-server
!
ip routing
no bridge 1
!
interface FastEthernet0/0
media-type 100BaseX
full-plex
ip address 192.168.0.1 255.255.255.0
!
interface Serial0/0
encapsulation hdlc
ip address 172.16.0.5 255.255.255.252
!
interface FastEthernet0/1
media-type 100BaseX
full-plex
ip address 172.16.0.9 255.255.255.252
dialer-list 1 protocol ip permit
dialer-list 1 protocol ipx permit
!
end
以下提示您是否保存這次設置
[0] Go to the IOS command prompt without saving this config.
[1] Return back to the setup without saving this config.
[2] Save this configuration to nvram and exit.
Enter your selection [2]: 2
選擇2保存設置並存入NVRAM中
Building configuration...
[OK] Use the enabled mode 'configure' command to modify this configuration.
Press RETURN to get started!
路由器重新啟動
00:00:08: %LINK-3-UPDOWN: Interface Serial0/0, changed state to down
00:00:08: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
00:00:08: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to up
00:00:09: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to down
00:00:09: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to down
00:00:09: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down
00:03:18: %IP-5-WEBINST_KILL: Terminating DNS process
00:03:24: %SYS-5-RESTART: System restarted --
Cisco Internetwork Operating System Software
IOS (tm) 3600 Software (C3640-I-M), Version 12.1(2)T, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2000 by cisco Systems, Inc.
Compiled Tue 16-May-00 12:26 by ccai
RouterA>
進入用戶模式
RouterA>en
Password:
RouterA#
進入全局模式
RouterA#sh run
查看現在運行的配置
Building configuration...
Current configuration:
!
version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname RouterA
!
enable secret 5 $ul/V$ezbZFgvzGHD.YPSieC0Ew/
enable password bbb
!
memory-size iomem 25
ip subnet-zero
!
interface FastEthernet0/0
ip address 192.168.0.1 255.255.255.0
speed auto
full-plex
!
interface Serial0/0
ip address 172.16.0.5 255.255.255.252
clockrate 2000000
!
interface FastEthernet0/1
ip address 172.16.0.9 255.255.255.252
speed auto
full-plex
!
ip classless
no ip http server
!
dialer-list 1 protocol ip permit
dialer-list 1 protocol ipx permit
!
line con 0
transport input none
line aux 0
line vty 0 4
password ccc
login
!
end
現在您就完成了了一個新路由器的基本配置,接下來就可以進行進一步的詳細配置了

F. 如何配置路由器EIGRP和RIP

R1配置
route rip
network 10.1.1.0 pc1網段
network 10.1.2.0 R1--R2網段,其他r2 r3一樣,一共需要4個網段。
etgrp的配置
route eigrp 1
network 10.1.1.0 0.0.0.255
networl 10.1.2.0 0.0.0.255,其他一樣。