當前位置:成語大全網 - 新華字典 - ●●●●● 路 由 器 是 什 麽 ?●●●●●

●●●●● 路 由 器 是 什 麽 ?●●●●●

路由器(Router)

壹.路由器的結構

路由器是網絡組建的壹個重要硬件設備。

路由器是壹臺特殊的計算機。路由器與其他計算機有著相似點,也有著不同點。

其相似點是:

1.他也有內存、操作系統、配置和用戶界面。如在Cisco路由器中,操作系統叫做互聯網絡操作系統(Internetwork Operating System,或IOS)。

2.路又器也有與其它計算機相似的引導過程,它們都是從ROM中裝入引導程序,這使機器能將自己的操作系統和配置裝入引導程序,這使機器能將自己的操作系統和配置裝入內存中。IOS能對眾多標準的協議接口提供互操作性,如雙絞線和光纖、各種局域網、企業網和WAN,從UNIX到Novell NerWare以及IBM SNA。它還能支持眾多的用戶應用程序,並提供有效的互聯網管理。

不同點主要有有兩大塊,用戶界面和內存配置:

1.路由器的內存管理。路由器的內存包括ROM、RAM、閃式內存和NVRAM。

ROM:存有路由器使用的IOS副本。

RAM:分為***享內存和主存。主存用來儲存路由器配置和與路由協議相關的IOS數據結構。對於IP,主存用於容納路由表和ARP表等;對於IPX,主存容納ASP和其它表。***享內存緩沖等待處理的信息包。這種類型的內存只用於Cisco 4000和2500系列的路由器。7000路由器有壹個交換處理器,用來控制通過路由器的信息包。

閃式內存:閃式內存容納路由器上正在運行的IOS的當前版本。閃式內存是可擦內存,它能夠用IOS的新版本復寫。它與ROM不同,ROM位於物理芯片中,而且,其中的內容不能覆寫。

NVRAM:當路由器關掉時,非易失的RAM(NVRAN)不丟失它的內容。NVRAM容納路由器配置。

2.路由器的啟動引導。路由器的引導方式與PC機的引導方式相似。

1>從ROM裝入引導程序。

2>從閃式內存裝入操作系統(IOS,互聯網絡操作系統)。

3>查找並加載NVRAM中的配置文件,或先指定網絡服務器中的配置文件。如果配置文件不存在,路由器進入設置模式。

二.路由器的基本配置:

至少要通過監視器控制臺為路由配置壹個IP地址、壹個子網掩碼和壹個默認網關。

假定已經將終端連接到路由器上,並且是第壹次用手工配置壹臺新路由器,可以通過控制臺運行Cisco Setup實用程序進行初始設置。假定本路由器名為Router1,要設置Ethernet 0端口的IP地址和串口0的IP地址,不設串口1的IP地址。配置過程如下,紅色字是輸入的。

—— System Configuration Dialog ——

At any point you may enter a question mark? for help.

Resfer to the Getting Started Guide for addition help.

Use Ctrl+C to about configuration dialog at any prompt.

Default settings are in square brackets [ ].

Would you like to enter the inial configuration dialog? [YES]:Y

First,would you like to see the current interface summary? [YES]:Y

Any interface listed with OK? Value "NO" dose not have a valid configuration.

Interface IP-Address OK? Method Status Protocol

hernet 0 unassigned NO not set up down

Serail 0 unassigned NO not set down down

Serail 1 unassigned NO not set down down

Configuring global parameters:

Enter host name [Router]: Router 1

The enable secret is a one-way cryptographic secret used instead of the enable password when it exists.

Enter enable secret: test

The enable password is used when there is not enable secret and when using older software and boot images.

Enter enable password: enter

Enter virtual terminal password: access

Configure SNMP Netwoke Management? [YES]:N

Configure IP? [NO]:N

Configure IGRP routing? [YES]:N

Configure RIP routing? [NO]:N

Configure interface parameters:

Configure interface Ethernet 0:

Is this interface in use? [YES]:Y

Configure IP for this interface? [YES]:Y

Configure IP Unnumbered on this interface? [YES]:N

IP address for this interface: 123.45.45.45

Number of bits in subnet filed [0]: 0

Class A network is 123.0.0.0,0 subnet bits; mask is 255.0.0.0

Configuring interface Serial 0:

Is this interface in use? [YES]: Y

Configure IP on this interface? [YES]: Y

IP address for this interface : 122.22.22.22

Number of bits in subnet filed [0]: 0

Class A network is 122.0.0.0, 0 subnet bits; mask is 255.0.0.0

Configuring interface Serial 1:

Is this interface in use? [YES]:N

The following configuration command script was created:

Hostname router 1

Enable secret 5 $ 1 $ UtL7 $ KqpczYUWglg4pnWYbNYD0

Enable password enter

Line vty 0 4

Password access

No anmp-sever

!

ip routing

!

interface Ethernet 0

ip address 123.45.45.45 255.0.0.0

!

interface serial 1

shutdown

no ip address

!

end

Building configuration? [YES/NO]:Y

Use the enable mode "configure" command to modify this configuration.