路由器基本配置

【本實驗是爲路由器基本配置(2)作準備工做】html

 

按照下圖,完成網絡連通練習。網絡

                       

1. 按照IP地址分配表爲每臺計算機分配IP地址。app

設備測試

端口ui

IP地址this

子網掩碼spa

網關.net

PC0rest

 

192.168.10.10htm

255.255.255.0

192.168.10.1

PC1

 

192.168.10.20

255.255.255.0

192.168.10.1

PC2

 

192.168.20.10

255.255.255.0

192.168.20.1

PC3

 

192.168.20.20

255.255.255.0

192.168.20.1

ROUTER1

Fa 0/0

192.168.10.1

255.255.255.0

 

ROUTER1

Fa 0/1

192.168.20.1

255.255.255.0

 

 

2. 鏈接網絡。

3. 爲每臺計算機配置IP地址。

4. 配置路由器。

路由器啓動過程

Cisco IOS Software, 1841 Software (C1841-ADVIPSERVICESK9-M), Version 12.4(15)T1, RELEASE SOFTWARE (fc2)

Technical Support: http://www.cisco.com/techsupport

Copyright (c) 1986-2007 by Cisco Systems, Inc.

Compiled Wed 18-Jul-07 04:52 by pt_team

         --- System Configuration Dialog ---

 Continue with configuration dialog? [yes/no]: System Bootstrap, Version 12.3(8r)T8, RELEASE SOFTWARE (fc1)

Cisco 1841 (revision 5.0) with 114688K/16384K bytes of memory.

 

Self decompressing the image :

########################################################################## [OK]

              Restricted Rights Legend

 Use, duplication, 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 IOS Software, 1841 Software (C1841-ADVIPSERVICESK9-M), Version 12.4(15)T1, RELEASE SOFTWARE (fc2)

Technical Support: http://www.cisco.com/techsupport

Copyright (c) 1986-2007 by Cisco Systems, Inc.

Compiled Wed 18-Jul-07 04:52 by pt_team

Image text-base: 0x60080608, data-base: 0x6270CD50

 This product contains cryptographic features and is subject to United

States and local country laws governing import, export, transfer and

use. Delivery of Cisco cryptographic products does not imply

third-party authority to import, export, distribute or use encryption.

Importers, exporters, distributors and users are responsible for

compliance with U.S. and local country laws. By using this product you

agree to comply with applicable laws and regulations. If you are unable

to comply with U.S. and local laws, return this product immediately.

 

A summary of U.S. laws governing Cisco cryptographic products may be found at:

http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

 

If you require further assistance please contact us by sending email to

export@cisco.com.

  

Cisco 1841 (revision 5.0) with 114688K/16384K bytes of memory.

Processor board ID FTX0947Z18E

M860 processor: part number 0, mask 49

6 FastEthernet/IEEE 802.3 interface(s)

191K bytes of NVRAM.

31360K bytes of ATA CompactFlash (Read/Write)

Cisco IOS Software, 1841 Software (C1841-ADVIPSERVICESK9-M), Version 12.4(15)T1, RELEASE SOFTWARE (fc2)

Technical Support: http://www.cisco.com/techsupport

Copyright (c) 1986-2007 by Cisco Systems, Inc.

Compiled Wed 18-Jul-07 04:52 by pt_team

 

         --- System Configuration Dialog ---

 從這裏開始操做

Continue with configuration dialog? [yes/no]: n

 

 

Press RETURN to get started!

進入特權模式

Router>en

Router# conf t         ;進入配置模式

Router(config)#

Router(config)#int f0/0        ;進入要配置的路由器端口f0/0

Router(config-if)#ip address 192.168.10.1 255.255.255.0        ;爲路由器端口配置IP地址,這個地址就是所鏈接網絡的網關地址

Router(config-if)#no shutdown            ;打開端口。默認端口是關閉的,不打開就不能工做

 

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

Router(config-if)#int f0/1     ;進入要配置的路由器端口f0/1

Router(config-if)#ip addr 192.168.20.1 255.255.255.0

Router(config-if)#no shutdown

 

%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

Router(config-if)#exit    ;返回到上一級

Router(config)#ip route 192.168.10.0 255.255.255.0 f0/0   ;配置靜態路由

Router(config)#ip route 192.168.20.0 255.255.255.0 f0/1   ;配置靜態路由

 

5. 測試網絡連通性。

連通性測試

計算機

PC1

PC2

PC3

PC4

PC0

 

 

 

 

PC1

 

 

 

 

PC2

 

 

 

 

PC3

相關文章
相關標籤/搜索