All people seem to need data processing
( Application presentation session transport network data link physic )

host : end device ( PC Server )
switch : to connect many device
router : to connect two or more different networks
internet cable : straight cable and crossover cable
The straight through cable is used to connect:
 
  • switch to router
  • switch to pc/server
 
 
The crossover cable is used to connect:
 
  • switch to switch
  • router to router
  • router to pc/server
  • pc/server to pc/server
 
192.168.0.0 /16 ( 16个1 )
11111111.11111111.00000000.00000000
255.255.0.0
It means that the first address of this network ( the network address ) is : 192.128.00000000.00000000 => 192.168.0.0
The last address of this network ( the broadcast address ) is 192.16811111111.11111111 => 192.168.255.255
And the range of IP address for the host is from 192.168.00000000.00000001 => 192.168.0.1 to 192.168.11111111.11111110 => 192.168.255.254
Let’s devide this network into smaller subnetworks.
Always start by the biggest subnetwork which contains the biggest number of hosts..
Office subnetwork : 511 hosts
So we need 511 IP adderss for the hosts ( end device ) + 1 IP address for the network address +1IP address as a broadcast address = 511 + 1 + 1 = 513 IP addresses
2^9=512 <range for 513 IP addresses < 2^10=1024
1024 in binary is : 0000 0100 0000 0000
So for this subnetwork, we will use the following subnet mask : 11111111.11111111.11111100.00000000 => 255.255.252.0 or /22
So to create the Office subnetwork as a part os the big 192.168.0.0/16 network, we will start at the beginning os this big network.
So the network address of our Office subnetwork will be the first address of the big network : 192.168.0.0/22 ( the host part of the subnet mask is 00.00000000 )
The broadcast address will be : 192.168.3.255/22 ( The host part of the subnet mask is 11.11111111 )
So the range of IP addresses for the hosts will be : from 192.168.0.1/22 to 192.168.3.254/22
we will also book the last host IP address for the gateway ( =router ),so the gateway address of this  subnetwork is ; 192.168.3.254
Then, for the factory subnetwork : 
128(2^7) < 250 IPs =1=1 = 252 < 256(2^8)
So the subnet mask for this subnetwork is : 11111111.11111111.11111111.00000000 => 255.255.255.0 or /24
network address : 192.168.4.0/24 ( this is the next available address of the big network )
broadcast address : 192.168.4.255/24
IP range for hosts : 192.168.4.1/24 to 192.268.4.254/24
gateway is : 192.168.4.154/24
For the small subnetwork OfficeRTR < - > EdgeRTR :  
This is a PtP ( Point to Point ) connection,that means we connect only two devices together.So we need 2+1+1 = 4 IP addresses in this network
subnet mask : 11111111.11111111.11111111.11111100 => 255.255.252 or 30
network address : 192.168.5.4/30 ( this is the next available address of the big network )
 
.
.
.
.
enable
configure terminal
interface gigabitEthernet
ip adress …(last IP address)
no shutdown
exit 
in
自动填充命令语句
重现之前用过的语句
Configure R1
 
en
conf t
hostname R1
no ip domain-lookup
enable secret class
banner motd #Do not touch my router#
line con 0
password cisco
exit
line vty 0 4
password cisco
exit
interface fastEthernet 0/0
ip address 192.168.1.1 255.255.255.0
no shutdown
exit
interface serial 0/0/0
ip address 192.168.2.1 255.255.255.0
clock rate 64000
exit
end
copy runnig-config startup-config
 
 
 
Configure R2 :
 
en
conf t
hostname R2
no ip domain-lookup
enable secret class
banner motd #Do not touch my router#
line con 0
password cisco
exit
line vty 0 4
password cisco
exit
interface fastEthernet 0/0
ip address 192.168.3.1 255.255.255.0
no shutdown
exit
interface serial 0/0/0
ip address 192.168.2.2 255.255.255.0
clock rate 64000
exit
end
copy runnig-config startup-config

CCNA 4.14 TP Correction的更多相关文章

  1. iOS中UITextField 使用全面解析 分类: ios技术 2015-04-10 14:37 153人阅读 评论(0) 收藏

    //初始化textfield并设置位置及大小   UITextField *text = [[UITextField alloc]initWithFrame:CGRectMake(20, 20, 13 ...

  2. iOS TextField用法大全

    //初始化textfield并设置位置及大小 UITextField *text = [[UITextField alloc]initWithFrame:CGRectMake(20, 20, 130, ...

  3. IOS开发 - TextField 控件详细

    //初始化textfield并设置位置及大小 UITextField *text = [[UITextField alloc]initWithFrame:CGRectMake(20, 20, 130, ...

  4. UITextField使用详解

    转iOS中UITextField使用详解 (1) //初始化textfield并设置位置及大小   UITextField *text = [[UITextField alloc]initWithFr ...

  5. IOS—UITextFiled控件详解

    IOS—UITextFiled控件详解 //初始化textfield并设置位置及大小 UITextField *text = [[UITextField alloc]initWithFrame:CGR ...

  6. IOS-TextField控件详解

    //初始化textfield并设置位置及大小 UITextField *text = [[UITextField alloc]initWithFrame:CGRectMake(20, 20, 130, ...

  7. IOS开发UI基础UITextFidle相关属性

    UITextFidle相关属性 •    enablesReturnKeyAutomatically默认为No,如果设置为Yes,文本框中没有输入任何字符的话,右下角的返回按钮是disabled的. ...

  8. IOS-UITextField-全解

    IOS-UITextField-全解   //初始化textfield并设置位置及大小   UITextField *text = [[UITextField alloc]initWithFrame: ...

  9. iOS-TextField知多少

    iOS-TextField知多少 //初始化textfield并设置位置及大小 UITextField *text = [[UITextField alloc]initWithFrame:CGRect ...

随机推荐

  1. 转:如何学习SQL(第四部分:DBMS扩展功能与SQL高级话题)

    转自:http://blog.163.com/mig3719@126/blog/static/285720652010950102575/ 9. DBMS提供的扩展功能 掌握了基本的关系模型原理和DB ...

  2. 最大似然估计(Maximum Likelihood,ML)

    先不要想其他的,首先要在大脑里形成概念! 最大似然估计是什么意思?呵呵,完全不懂字面意思,似然是个啥啊?其实似然是likelihood的文言翻译,就是可能性的意思,所以Maximum Likeliho ...

  3. mac air/pro 启用三指拖动手势

    mac air/pro 启用三指拖动手势 一直以来用mac触控版丰富的手势来完成日常的工作,非常的效率和方便! 今天重新安装了系统发面三指拖动不好用了! 仔细查看了 设置--触控板 里面的各种选择尝试 ...

  4. img src 使用 base64 图片数据

    img src 使用 base64 图片数据 在网页上显示一张图片通常是 <img src="xxx.png" > 或 <img src="www.ur ...

  5. js获取多个标签元素的内容,并根据元素的内容修改标签的属性

    <html > <head> <title>无标题文档</title> </head> <body> <div class ...

  6. Cache模拟器(CacheSim)

     最近写了一个Cache的模拟器,由于平时空余时间比较分散,前前后后用了一周多的时间,基本实现的Cache的模拟功能(通过读取trace文件得到相应的命中率),能够实现直接映射.全相联.组相联三种 ...

  7. 11 个用来创建图形和图表的 JavaScript 工具包

    11个用来创建图形和图表的JavaScript工具包,方便开发者使用,喜欢的各位收藏一下吧! Aristochart DEMO|| Download Aristochart 是一个用来创建图形和图表的 ...

  8. XPath语法 在C#中使用XPath示例 【转http://www.cnblogs.com/yukaizhao/archive/2011/07/25/xpath.html】非常详细的文章

    XPath语法 在C#中使用XPath示例   XPath可以快速定位到Xml中的节点或者属性.XPath语法很简单,但是强大够用,它也是使用xslt的基础知识. 示例Xml: <?xml ve ...

  9. Linux基础: 网络命令和进程管理

    ​  netstat lsof ps pstree pkill/kill (了解jenkins git,排查环境) 查询服务器之间是否有链接(netstat -an) 某个服务是否启动(了解服务对应的 ...

  10. Hadoop概括——学习笔记<一>转

    前言 第一章主要讲的是hadoop基础知识.老师讲的还是比较全面简单的,起码作为一个非专业码农以及数据库管理人员,也能狗大致了解其特点 首先是概括图(以hadoop2.0为例)  一.Hadoop基础 ...