zoukankan      html  css  js  c++  java
  • 路由器基本配置

    【本实验是为路由器基本配置(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

    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


    作者:8亩田
    本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接.

    本文如对您有帮助,还请多帮 【推荐】 下此文。
    如果喜欢我的文章,请关注我的公众号
    如果有疑问,请下面留言

    学而不思则罔 思而不学则殆
  • 相关阅读:
    我总结的面试题系列:kafka
    RabbitMQ大厂面试题
    [Algorithm] 并查集
    [LintCode] 编辑距离
    [LeetCode] Length of Longest Fibonacci Subsequence
    [LintCode] 交叉字符串
    [LeetCode] Permutation Sequence
    Permutation Sequence
    [LeetCode] Next Permutation
    [LeetCode] Longest Palindromic Substring
  • 原文地址:https://www.cnblogs.com/liu-wang/p/6003338.html
Copyright © 2011-2022 走看看