路由器基本配置

來源:互聯網
上載者:User

標籤:cte   version   sof   開連接埠   工作   author   contain   靜態路由   ios   

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

 

按照,完成網路連通練習。

                       

1. 按照IP地址分配表為每台電腦分配IP地址。

裝置

連接埠

IP地址

子網路遮罩

網關

PC0

 

192.168.10.10

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

[email protected]

  

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

 

 

 

 

 

路由器基本配置

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.