当前位置: 首页 > news >正文

子网划分讲解及练习(二)

练习配置

201209261128051192.png

 

R1配置:

Router#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#host R1

R1(config)#no ip domain-lo

R1(config)#int s 0/0

R1(config-if)#ip add 172.18.0.1 255.255.0.0

R1(config-if)#cl ra 64000

R1(config-if)#no shut

R1(config-if)#int s 0/1

R1(config-if)#ip add 172.16.0.1 255.255.0.0

R1(config-if)#cl ra 64000

R1(config-if)#no shut

R1(config-if)#exit

R1(config)#enable secret cisco

R1(config)#lin con 0

R1(config-line)#password cisco

R1(config-line)#login

R1(config-line)#logg sy

R1(config-line)#exec-t 0 0

R1(config-line)#exit

R1(config)#lin vty 0 4

R1(config-line)#pas

R1(config-line)#password cisco

R1(config-line)#login

R1(config-line)#exit

R1(config)#service password-encryption

R2配置:

Router>

Router>en

Router#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#no ip domain-lo

Router(config)#lin con 0

Router(config-line)#exec-t 0 0

Router(config-line)#logg sy

Router(config-line)#pas cisco

Router(config-line)#lin vty 0 4

Router(config-line)#pas cisco

Router(config-line)#login

Router(config-line)#exit

Router(config)#enable se cisco

Router(config)#ser pas

Router(config)#int s 0/0

Router(config-if)#ip add 172.18.0.2 255.255.0.0

Router(config-if)#no shut

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

Router(config-if)#

Router(config-if)#

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

i

Router(config-if)#int s 0/1

Router(config-if)#ip add 172.17.0.1 255.255.0.0

Router(config-if)#cl ra 64000

Router(config-if)#no shut

%LINK-5-CHANGED: Interface Serial0/1, changed state to down

Router(config-if)#int f 0/0

Router(config-if)#ip add 10.13.0.1 255.0.0.0

Router(config-if)#no shut

%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)#

Router(config-if)#host R2

R2(config)#

R3配置

Router>en

Router#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#no ip domain-lo

Router(config)#host R3

R3(config)#enable se cisco

R3(config)#lin con 0

R3(config-line)#pas cisco

R3(config-line)#login

R3(config-line)#exec-t 0 0

R3(config-line)#logg sy

R3(config-line)#lin vty 0 4

R3(config-line)#pas cisco

R3(config-line)#login

R3(config-line)#exit

R3(config)#ser pas

R3(config)#int s 0/0

R3(config-if)#ip add 172.17.0.2 255.255.0.0

R3(config-if)#no shut

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

R3(config-if)#

R3(config-if)#int s 0/1

R3(config-if)#ip add 172.16.

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

R3(config-if)#ip add 172.16.0.2 255.255.0.0

R3(config-if)#no shut

R3(config-if)#

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

R3(config-if)#int f 0/0

R3(config-if)#ip add 1

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

R3(config-if)#ip add 192.168.1.1 255.255.255.0

R3(config-if)#no shut

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

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

结果:

201209261128063833.jpg

 

201209261128076440.png

 

201209261128085111.png

 

转载于:https://www.cnblogs.com/vlion2012/archive/2012/09/26/2703669.html

相关文章:

  • POJ 1185 炮兵
  • 【转】一步一步学Linq to sql(一):预备知识
  • ios5 编程关于@synthesize window = _window的理解
  • iOS UI基础-18.0 UIView
  • [你必须知道的.NET]第十四回:认识IL代码---从开始到现在
  • AMD规范与CMD规范的区别是什么?
  • 第二十一章流 6检查文件是否打开
  • 真心想学C语言
  • javabean的内省技术和BeanUtils的使用
  • 使用Google的项目(源码)托管服务(转)
  • vSphere 5.5 VM 整合磁盘失败
  • 人为漏洞的构造、文件的载入、验证机制的突破
  • _____异或运算_________________________2095_____________________________________________
  • 一款基于Java的web快速开发平台,很给力!
  • Effective C++ :模板类之间的继承.
  • 【面试系列】之二:关于js原型
  • 【跃迁之路】【669天】程序员高效学习方法论探索系列(实验阶段426-2018.12.13)...
  • 2018以太坊智能合约编程语言solidity的最佳IDEs
  • Codepen 每日精选(2018-3-25)
  • conda常用的命令
  • iOS帅气加载动画、通知视图、红包助手、引导页、导航栏、朋友圈、小游戏等效果源码...
  • JS+CSS实现数字滚动
  • js学习笔记
  • Linux Process Manage
  • Python十分钟制作属于你自己的个性logo
  • Redux 中间件分析
  • Spring思维导图,让Spring不再难懂(mvc篇)
  • Vue.js-Day01
  • weex踩坑之旅第一弹 ~ 搭建具有入口文件的weex脚手架
  • 当SetTimeout遇到了字符串
  • 短视频宝贝=慢?阿里巴巴工程师这样秒开短视频
  • 免费小说阅读小程序
  • 前端性能优化——回流与重绘
  • 数据库写操作弃用“SELECT ... FOR UPDATE”解决方案
  • 做一名精致的JavaScripter 01:JavaScript简介
  • postgresql行列转换函数
  • 阿里云IoT边缘计算助力企业零改造实现远程运维 ...
  • ​ssh-keyscan命令--Linux命令应用大词典729个命令解读
  • ​第20课 在Android Native开发中加入新的C++类
  • # centos7下FFmpeg环境部署记录
  • #1015 : KMP算法
  • $NOIp2018$劝退记
  • (1)(1.13) SiK无线电高级配置(六)
  • (42)STM32——LCD显示屏实验笔记
  • (C#)获取字符编码的类
  • (八)Docker网络跨主机通讯vxlan和vlan
  • (超详细)语音信号处理之特征提取
  • (二十三)Flask之高频面试点
  • (附源码)spring boot儿童教育管理系统 毕业设计 281442
  • (三分钟了解debug)SLAM研究方向-Debug总结
  • (新)网络工程师考点串讲与真题详解
  • (转)IOS中获取各种文件的目录路径的方法
  • (轉貼) VS2005 快捷键 (初級) (.NET) (Visual Studio)
  • ****** 二十三 ******、软设笔记【数据库】-数据操作-常用关系操作、关系运算
  • .Net Core缓存组件(MemoryCache)源码解析