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. [转]C++中引用(&)的用法和应用实例

    from: here 对于习惯使用C进行开发的朋友们,在看到c++中出现的&符号,可能会犯迷糊,因为在C语言中这个符号表示了取地址符,但是在C++中它却有着不同的用途,掌握C++的&符 ...

  2. Linux 下没有 my.cnf 文件的解决方式,完全是我自己整的,好多教程都是瞎扯的 (zhuan)

    http://blog.csdn.net/jspping/article/details/40400691?utm_source=tuicool&utm_medium=referral *** ...

  3. Kafka 快速起步(作者:杜亦舒)

    Kafka 快速起步 原创 2017-01-05 杜亦舒 性能与架构 主要内容:1. kafka 安装.启动2. 消息的 生产.消费3. 配置启动集群4. 集群下的容错测试5. 从文件中导入数据,并导 ...

  4. !!转!!java 简单工厂模式

    举两个例子以快速明白Java中的简单工厂模式: 女娲抟土造人话说:“天地开辟,未有人民,女娲抟土为人.”女娲需要用土造出一个个的人,但在女娲造出人之前,人的概念只存在于女娲的思想里面.女娲造人,这就是 ...

  5. CSS 关于IE6 margin 为负数 负值的时候 正常显示的方法

    一定要加position: relative; 有时候比如margin-left的负数,还需要加上如 float:left 属性.

  6. Rest-Assured

    Rest-Assured完整的测试例子 http://blog.csdn.net/win7system/article/details/52468078 使用 Rest-assured 测试 Rest ...

  7. [转]Material Design Library 23.1.0的新变化与代码实战

    Design Library出来已经快有一个月了,当时大概看了一下介绍这个新版本变化的译文,内容不多,给我印象最深的就是Percent lib.AppBarLayout 和NavigationView ...

  8. 联想G480笔记本安装系统

    联想G480笔记本安装系统 联想G480笔记本,配置i5双核四线程处理器,4G内存,500G硬盘,USB3.0接口,NVIDIA GeForce GT 610M+Intel HD Graphics 3 ...

  9. (x&y) + ((x^y)>>1)即x和y的算数平均值

    (x&y) + ((x^y)>>1)相当于(x+y)/2 (x&y)+((x^y)>>1),把x和y里对应的每一位(指二进制位)都分成三类,每一类分别计算平均值 ...

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

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