设为首页 收藏本站
查看: 1012|回复: 0

[经验分享] 路由器基本配置

[复制链接]

尚未签到

发表于 2017-7-8 19:01:03 | 显示全部楼层 |阅读模式
  【本实验是为路由器基本配置(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


运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-391711-1-1.html 上篇帖子: 2017.4.13-afternoon 下篇帖子: Linux上服务的启动,停止和重启
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表