1、第七章第七章Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3配置配置IP地址地址2Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.332 BitsNetworkHostIP 地址地址3Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.332 BitsNetworkHost8 Bits8 Bits8 Bits8 BitsIP 地址地址4Copyright ?1998, Cisco Systems, Inc.ICRC_revi
2、sion_11.332 BitsNetworkHost8 Bits172 . 16 . 122 . 2048 Bits8 Bits8 BitsIP 地址地址5Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3 Class A: Class B: Class C: Class D: for multicast Class E: for researchN = Network number H = Host numberIP 地址分类地址分类NHHHNNHHNNNH6Copyright ?1998, Cisco Systems, Inc.I
3、CRC_revision_11.3IP 地址位模式地址位模式1724Class A:# Bits0network #host #7Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.31724Class A:# Bits114161Class B:# Bits0network #host #1network #host #0IP 地址位模式地址位模式8Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.31724Class A:# Bits114161Class B:# Bits1218
4、11Class C:# Bits0network #host #1network #host #01network #host #10IP 地址位模式地址位模式9Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3识别识别IP地址的类别地址的类别高位高位前八位前八位地址类别地址类别01011011011111 126 128 191192 223224239240254ABCDE10Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3练习:练习:AddressClassNetwork
5、Host10.2.1.1128.63.2.100201.222.5.64192.6.141.2130.113.64.16256.241.201.1011Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3AddressClassNetworkHost10.2.1.1128.63.2.100201.222.5.64192.6.141.2130.113.64.16256.241.201.10A练习:练习:12Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3AddressClassNe
6、tworkHost10.2.1.1128.63.2.100201.222.5.64192.6.141.2130.113.64.16256.241.201.10A10.0.0.0练习:练习:13Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3AddressClassNetworkHost10.2.1.1128.63.2.100201.222.5.64192.6.141.2130.113.64.16256.241.201.10A10.0.0.00.2.1.1练习:练习:14Copyright ?1998, Cisco Systems, I
7、nc.ICRC_revision_11.3AddressClassNetworkHost10.2.1.1128.63.2.100201.222.5.64192.6.141.2130.113.64.16256.241.201.10AB10.0.0.00.2.1.1练习:练习:15Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3AddressClassNetworkHost10.2.1.1128.63.2.100201.222.5.64192.6.141.2130.113.64.16256.241.201.10AB10.0.0.0128.
8、63.0.00.2.1.1练习:练习:16Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3AddressClassNetworkHost10.2.1.1128.63.2.100201.222.5.64192.6.141.2130.113.64.16256.241.201.10AB10.0.0.0128.63.0.00.2.1.10.0.2.100练习:练习:17Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3AddressClassNetworkHost10.2.1.1128
9、.63.2.100201.222.5.64192.6.141.2130.113.64.16256.241.201.10ABC10.0.0.0128.63.0.00.2.1.10.0.2.100练习:练习:18Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3AddressClassNetworkHost10.2.1.1128.63.2.100201.222.5.64192.6.141.2130.113.64.16256.241.201.10ABC10.0.0.0128.63.0.0201.222.5.00.2.1.10.0.2.100练
10、习:练习:19Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3AddressClassNetworkHost10.2.1.1128.63.2.100201.222.5.64192.6.141.2130.113.64.16256.241.201.10ABC10.0.0.0128.63.0.0201.222.5.00.2.1.10.0.2.1000.0.0.64练习:练习:20Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3AddressClassNetworkHost10.2.
11、1.1128.63.2.100201.222.5.64192.6.141.2130.113.64.16256.241.201.10ABCC10.0.0.0128.63.0.0201.222.5.00.2.1.10.0.2.1000.0.0.64练习:练习:21Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3AddressClassNetworkHost10.2.1.1128.63.2.100201.222.5.64192.6.141.2130.113.64.16256.241.201.10ABCC10.0.0.0128.63.0.02
12、01.222.5.0192.6.141.00.2.1.10.0.2.1000.0.0.64练习:练习:22Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3AddressClassNetworkHost10.2.1.1128.63.2.100201.222.5.64192.6.141.2130.113.64.16256.241.201.10ABCC10.0.0.0128.63.0.0201.222.5.0192.6.141.00.2.1.10.0.2.1000.0.0.640.0.0.2练习:练习:23Copyright ?1998,
13、Cisco Systems, Inc.ICRC_revision_11.3AddressClassNetworkHost10.2.1.1128.63.2.100201.222.5.64192.6.141.2130.113.64.16256.241.201.10ABCCB10.0.0.0128.63.0.0201.222.5.0192.6.141.00.2.1.10.0.2.1000.0.0.640.0.0.2练习:练习:24Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3AddressClassNetworkHost10.2.1.11
14、28.63.2.100201.222.5.64192.6.141.2130.113.64.16256.241.201.10ABCCB10.0.0.0128.63.0.0201.222.5.0192.6.141.0130.113.0.00.2.1.10.0.2.1000.0.0.640.0.0.2练习:练习:25Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3AddressClassNetworkHost10.2.1.1128.63.2.100201.222.5.64192.6.141.2130.113.64.16256.241.201
15、.10ABCCB10.0.0.0128.63.0.0201.222.5.0192.6.141.0130.113.0.00.2.1.10.0.2.1000.0.0.640.0.0.20.0.64.16练习:练习:26Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3AddressClassNetworkHost10.2.1.1128.63.2.100201.222.5.64192.6.141.2130.113.64.16256.241.201.10ABCCBNonexistent10.0.0.0128.63.0.0201.222.5.01
16、92.6.141.0130.113.0.00.2.1.10.0.2.1000.0.0.640.0.0.20.0.64.16练习:练习:配置配置IP地址地址Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.328Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3Host Addresses172.16.2.1172.16.3.10172.16.12.12IP: 172.16.2.110.1.1.110.250.8.1110.180.30.118IP: 10.6.24.2E0E1172
17、.161212NetworkHost.NetworkInterface172.16.0.010.0.0.0E0E1Routing Table29Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3 Network 172.16.0.0172.16.0.0无子网编址无子网编址30Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3 Network 172.16.0.0子网编址子网编址172.16.1.0172.16.2.0172.16.3.0172.16.4.031Copyright
18、?1998, Cisco Systems, Inc.ICRC_revision_11.3172.16.2.200172.16.2.2172.16.2.160172.16.3.5172.16.3.100172.16.3.150E0E1NetworkInterface172.16.0.0172.16.0.0E0E1Routing Table子网编址子网编址32Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3172.16.2.200172.16.2.2172.16.2.160IP: 172.16.2.1172.16.3.5172.16.3.
19、100172.16.3.150IP: 172.16.3.1E0E1172.162160NetworkHost.NetworkInterface172.16.0.0172.16.0.0E0E1Routing TableSubnet子网编址子网编址33Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3172.16.2.200172.16.2.2172.16.2.160IP: 172.16.2.1172.16.3.5172.16.3.100172.16.3.150IP: 172.16.3.1E0E1172.162160NetworkHost.
20、NetworkInterface172.16.2.0172.16.3.0E0E1New Routing TableSubnet子网编址子网编址34Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3子网掩码子网掩码1721600IPAddressNetworkHost35Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3172160025525500IPAddressDefaultSubnetMaskNetworkHostNetworkHost子网掩码子网掩码36Copyright
21、 ?1998, Cisco Systems, Inc.ICRC_revision_11.31721600255255002552552550IPAddressDefaultSubnetMask8-bitSubnetMaskNetworkHostUse host bits, starting at thehigh order bit positionNetworkHostNetworkSubnetHost子网掩码子网掩码37Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3位的十进制等价值位的十进制等价值10000000=12811000
22、000=19211100000=22411110000=24011111000=24811111100=25211111110=25411111111=255128 643216842138Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3NetworkHost172.16.2.160255.255.0.01721600101011001111111110101100000100001111111100010000000000000000000010100000000000000000000000000010子网掩码子网掩码39Copy
23、right ?1998, Cisco Systems, Inc.ICRC_revision_11.3NetworkHost172.16.2.160255.255.255.01721620Subnet 111111111111111100000000111111111010110010101100000100000001000000000010101000000000000000000010带子网的子网掩码带子网的子网掩码40Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3练习练习AddressSubnet MaskClassSubne
24、t172.16.2.1010.6.24.2010.30.36.12255.255.255.0255.255.0.0255.255.255.041Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3AddressSubnet MaskClassSubnet172.16.2.1010.6.24.2010.30.36.12255.255.255.0255.255.0.0255.255.255.0B练习练习42Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3AddressSubnet M
25、askClassSubnet172.16.2.1010.6.24.2010.30.36.12255.255.255.0255.255.0.0255.255.255.0B172.16.2.0练习练习43Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3AddressSubnet MaskClassSubnet172.16.2.1010.6.24.2010.30.36.12255.255.255.0255.255.0.0255.255.255.0BA172.16.2.0练习练习44Copyright ?1998, Cisco Systems
26、, Inc.ICRC_revision_11.3AddressSubnet MaskClassSubnet172.16.2.1010.6.24.2010.30.36.12255.255.255.0255.255.0.0255.255.255.0BA172.16.2.010.6.0.0练习练习45Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3AddressSubnet MaskClassSubnet172.16.2.1010.6.24.2010.30.36.12255.255.255.0255.255.0.0255.255.255.0
27、BAA172.16.2.010.6.0.0练习练习46Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3AddressSubnet MaskClassSubnet172.16.2.1010.6.24.2010.30.36.12255.255.255.0255.255.0.0255.255.255.0BAA172.16.2.010.6.0.010.30.36.0练习练习47Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3地址规划地址规划Other subnets20 subnet
28、s5 hosts per subnetClass C address: 201.222.5.0201.222.5.16201.222.5.32201.222.5.4848Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3广播地址广播地址172.16.1.0172.16.2.0172.16.3.0172.16.4.049Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3广播地址广播地址172.16.1.0172.16.2.0172.16.3.0172.16.4.0255.255.2
29、55.255(Local network broadcast)50Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3广播地址广播地址172.16.1.0172.16.2.0172.16.3.0172.16.4.0172.16.3.255(Directed broadcast)255.255.255.255(Local network broadcast)51Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3广播地址练习广播地址练习AddressClassSubnetBroadca
30、st201.222.10.60 255.255.255.248Subnet Mask15.16.193.6 255.255.248.0128.16.32.13 255.255.255.252153.50.6.27 255.255.255.12852Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3AddressClassSubnetBroadcast201.222.10.60 255.255.255.248CSubnet Mask15.16.193.6 255.255.248.0128.16.32.13 255.255.255.2521
31、53.50.6.27 255.255.255.128广播地址练习广播地址练习53Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3AddressClassSubnetBroadcast201.222.10.60 255.255.255.248C201.222.10.56Subnet Mask15.16.193.6 255.255.248.0128.16.32.13 255.255.255.252153.50.6.27 255.255.255.128广播地址练习广播地址练习54Copyright ?1998, Cisco Systems,
32、 Inc.ICRC_revision_11.3AddressClassSubnetBroadcast201.222.10.60 255.255.255.248C201.222.10.63201.222.10.56Subnet Mask15.16.193.6 255.255.248.0128.16.32.13 255.255.255.252153.50.6.27 255.255.255.128广播地址练习广播地址练习55Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3AddressClassSubnetBroadcast201.222.
33、10.60 255.255.255.248C201.222.10.63201.222.10.56Subnet Mask15.16.193.6 255.255.248.0A128.16.32.13 255.255.255.252153.50.6.27 255.255.255.128广播地址练习广播地址练习56Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3AddressClassSubnetBroadcast201.222.10.60 255.255.255.248C201.222.10.63201.222.10.56Subnet Ma
34、sk15.16.193.6 255.255.248.0A15.16.192.0128.16.32.13 255.255.255.252153.50.6.27 255.255.255.128广播地址练习广播地址练习57Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3AddressClassSubnetBroadcast201.222.10.60 255.255.255.248C201.222.10.63201.222.10.56Subnet Mask15.16.193.6 255.255.248.0A15.16.199.25515.16
35、.192.0128.16.32.13 255.255.255.252153.50.6.27 255.255.255.128广播地址练习广播地址练习58Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3AddressClassSubnetBroadcast201.222.10.60 255.255.255.248C201.222.10.63201.222.10.56Subnet Mask15.16.193.6 255.255.248.0A15.16.199.25515.16.192.0128.16.32.13 255.255.255.25
36、2B153.50.6.27 255.255.255.128广播地址练习广播地址练习59Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3AddressClassSubnetBroadcast201.222.10.60 255.255.255.248C201.222.10.63201.222.10.56Subnet Mask15.16.193.6 255.255.248.0A15.16.199.25515.16.192.0128.16.32.13 255.255.255.252B128.16.32.12153.50.6.27 255.25
37、5.255.128广播地址练习广播地址练习60Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3AddressClassSubnetBroadcast201.222.10.60 255.255.255.248C201.222.10.63201.222.10.56Subnet Mask15.16.193.6 255.255.248.0A15.16.199.25515.16.192.0128.16.32.13 255.255.255.252B128.16.32.15128.16.32.12153.50.6.27255.255.255.128
38、广播地址练习广播地址练习61Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3AddressClassSubnetBroadcast201.222.10.60 255.255.255.248C201.222.10.63201.222.10.56Subnet Mask15.16.193.6 255.255.248.0A15.16.199.25515.16.192.0128.16.32.13 255.255.255.252B128.16.32.15128.16.32.12153.50.6.27 255.255.255.128B广播地址练习广
39、播地址练习62Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3AddressClassSubnetBroadcast201.222.10.60 255.255.255.248C201.222.10.63201.222.10.56Subnet Mask15.16.193.6 255.255.248.0A15.16.199.25515.16.192.0128.16.32.13 255.255.255.252B128.16.32.15128.16.32.12153.50.6.27 255.255.255.128B153.50.6.0广播地址
40、练习广播地址练习63Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3AddressClassSubnetBroadcast201.222.10.60 255.255.255.248C201.222.10.63201.222.10.56Subnet Mask15.16.193.6 255.255.248.0A15.16.199.25515.16.192.0128.16.32.13 255.255.255.252B128.16.32.15128.16.32.12153.50.6.27 255.255.255.128B153.50.6.12
41、7153.50.6.0广播地址练习广播地址练习64Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3IP 地址配置地址配置Router(config-if)# 指定地址和掩码指定地址和掩码 在接口上启动在接口上启动IP进程进程ip address ip-address subnet-mask65Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3地址配置检验地址配置检验ApplicationTransportInternetNetwork InterfaceHardwareAppl
42、icationTransportInternetNetwork InterfaceHardware66Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3ApplicationTransportInternetNetwork InterfaceHardwareTelnetApplicationTransportInternetNetwork InterfaceHardwareTelnettelnet地址配置检验地址配置检验67Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3App
43、licationTransportInternetNetwork InterfaceHardwareTelnetICMPpingApplicationTransportInternetNetwork InterfaceHardwareTelnetICMPtelnet地址配置检验地址配置检验68Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3ApplicationTransportInternetNetwork InterfaceHardwareTelnetICMPtracepingApplicationTransportInterne
44、tNetwork InterfaceHardwareTelnetICMPtelnettrace地址配置检验地址配置检验69Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3ApplicationTransportInternetNetwork InterfaceHardwareTelnetICMPtracepingApplicationTransportInternetNetwork InterfaceHardwareTelnetICMPtelnettrace地址配置检验地址配置检验70Copyright ?1998, Cisco Sy
45、stems, Inc.ICRC_revision_11.3ApplicationTransportInternetNetwork InterfaceHardwareTelnetICMPtracepingApplicationTransportInternetNetwork InterfaceHardwareTelnetICMPtelnettrace地址配置检验地址配置检验71Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3ApplicationTransportInternetNetwork InterfaceHardwareTeln
46、etICMPtracepingApplicationTransportInternetNetwork InterfaceHardwareTelnetICMPtracetelnettrace地址配置检验地址配置检验72Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3 测试测试IP层的连通性层的连通性简单简单PingRouter ping 172.16.101.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.16.101.1, timeout is
47、2 seconds:.!Success rate is 80 percent, round-trip min/avg/max = 6/6/6 msRouter73Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3扩展扩展PingRouter# pingProtocol ip:Target IP address: 192.168.101.162Repeat count 5:Datagram size 100:Timeout in seconds 2:Extended commands n: ySource address:Type of
48、service 0:Set DF bit in IP header? no: yesData pattern 0 xABCD:Loose, Strict, Record, Timestamp, Verbosenone:Sweep range of sizes n:Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.101.162, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 24/26
49、/28 msRouter#74Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3IP TraceRouter# trace aba.nyc.milType escape sequence to abort.Tracing the route to aba.nyc.mil (26.0.0.73) (172.16.1.6) 1000 msec 8 msec 4 msec2barrnet- (172.16.16.2) 8 msec 8 msec 8 msec3external-a-gateway.stanford.edu (192.42.11
50、0.225) 8 msec 4 msec 4 (131.119.254.6) 8 msec 8 msec 8 (131.119.3.8) 12 msec 12 msec 8 msec6moffett-fld-mb.in.mil (192.52.195.1) 216 msec 120 msec 132 msec7aba.nyc.mil (26.0.0.73) 412 msec * 664 msec75Copyright ?1998, Cisco Systems, Inc.ICRC_revision_11.3显示显示CDP 邻居邻居routerA#show cdp neighborsCapabil
侵权处理QQ:3464097650--上传资料QQ:3464097650
【声明】本站为“文档C2C交易模式”,即用户上传的文档直接卖给(下载)用户,本站只是网络空间服务平台,本站所有原创文档下载所得归上传人所有,如您发现上传作品侵犯了您的版权,请立刻联系我们并提供证据,我们将在3个工作日内予以改正。