實驗十四——————IP地址劃分和靜態路由
實驗內容
1、使用可變長子網掩碼(VLSM)劃分子網:
2、利用靜態路由實現各個網路的連通,並利用預設路由優化路由表
實驗目的
- 熟練掌握IP地址的劃分
- 掌握靜態路由和預設路由的基本配置,實現不同網路的互聯互通
實驗步驟
1、求下列地址的網路變化和廣播地址
172.16.10.255 /16
192.168.1.47 /27
地址 | 網路編號 | 廣播地址 |
172.168.10.255/16 | 172.16.0.0/16 | 172.16.255.255/16 |
192.168.1.47/27 | 192.168.1.32/27 | 192.168.1.63/27 |
2、請問下列地址是否可以分配給主機
192.168.10.31 /28
172.16.10.255 /19
答:192.168.10.31/28是廣播地址,無法分配給主機,172.16.10.255/19可以分配給主機。
3、請問下列地址中哪些地址分配給主機後可以直接通訊(無需路由)
192.168.10.34 /28
192.168.10.53 /28
192.168.10.31 /28
192.168.10.61 /28
答:只有192.168.10.53 /28、192.168.10.61 /28分配給主機後可以直接通訊,因為處於同一網段。
實驗操作
地址劃分
路由器 | 網路地址 | 廣播地址 | 可用的主機地址 |
A(26) | 192.168.20.32/27 | 192.168.20.63/27 | 192.168.20.33~62(30個) |
B(10) | 192.168.20.16/28 | 192.168.20.31/28 | 192.168.20.17~30(14個) |
C(5) | 192.168.20.8/29 | 192.168.20.15/29 | 192.168.20.9~14(6個) |
D(6) | 192.168.20.128/25 | 192.168.20.256/25 | 192.168.129~255(126個) |
網路拓撲結構
路由器配置
Router1
Router2
Router3
router4
測試
用pc1進行測試,分別測試192.168.1.0網段、192.168.2.0網段、192.168.3.0網段、192.168.4.0網段,10.0.1.0網段、10.0.2.0網段、10.0.3.0網段共7個網段。
Packet Tracer PC Command Line 1.0
PC>ipconfig
FastEthernet0 Connection:(default port)
Link-local IPv6 Address.........: FE80::260:5CFF:FEE1:5CBC
IP Address......................: 192.168.1.1
Subnet Mask.....................: 255.255.255.0
Default Gateway.................: 192.168.1.254
PC>ping 192.168.1.0
Pinging 192.168.1.0 with 32 bytes of data:
Request timed out.
Reply from 192.168.1.254: bytes=32 time=1ms TTL=255
Reply from 192.168.1.254: bytes=32 time=1ms TTL=255
Reply from 192.168.1.254: bytes=32 time=0ms TTL=255
Ping statistics for 192.168.1.0:
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms
PC>ping 192.168.2.0
Pinging 192.168.2.0 with 32 bytes of data:
Request timed out.
Reply from 10.0.1.2: bytes=32 time=1ms TTL=254
Reply from 10.0.1.2: bytes=32 time=0ms TTL=254
Reply from 10.0.1.2: bytes=32 time=0ms TTL=254
Ping statistics for 192.168.2.0:
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms
PC>ping 192.168.3.0
Pinging 192.168.3.0 with 32 bytes of data:
Reply from 10.0.2.2: bytes=32 time=1ms TTL=253
Reply from 10.0.2.2: bytes=32 time=7ms TTL=253
Reply from 10.0.2.2: bytes=32 time=2ms TTL=253
Reply from 10.0.2.2: bytes=32 time=3ms TTL=253
Ping statistics for 192.168.3.0:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 7ms, Average = 3ms
PC>ping 192.168.4.0
Pinging 192.168.4.0 with 32 bytes of data:
Request timed out.
Reply from 10.0.3.2: bytes=32 time=1ms TTL=252
Reply from 10.0.3.2: bytes=32 time=1ms TTL=252
Reply from 10.0.3.2: bytes=32 time=1ms TTL=252
Ping statistics for 192.168.4.0:
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 1ms, Average = 1ms
PC>ping 10.0.1.0
Pinging 10.0.1.0 with 32 bytes of data:
Reply from 192.168.1.254: bytes=32 time=0ms TTL=255
Reply from 192.168.1.254: bytes=32 time=1ms TTL=255
Reply from 192.168.1.254: bytes=32 time=1ms TTL=255
Reply from 192.168.1.254: bytes=32 time=0ms TTL=255
Ping statistics for 10.0.1.0:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms
PC>ping 10.0.2.0
Pinging 10.0.2.0 with 32 bytes of data:
Reply from 10.0.1.2: bytes=32 time=0ms TTL=254
Reply from 10.0.1.2: bytes=32 time=0ms TTL=254
Reply from 10.0.1.2: bytes=32 time=0ms TTL=254
Reply from 10.0.1.2: bytes=32 time=0ms TTL=254
Ping statistics for 10.0.2.0:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
PC>ping 10.0.3.0
Pinging 10.0.3.0 with 32 bytes of data:
Reply from 10.0.2.2: bytes=32 time=6ms TTL=253
Reply from 10.0.2.2: bytes=32 time=1ms TTL=253
Reply from 10.0.2.2: bytes=32 time=1ms TTL=253
Reply from 10.0.2.2: bytes=32 time=1ms TTL=253
Ping statistics for 10.0.3.0:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 6ms, Average = 2ms
PC>
至此,該實驗結束!
相關文章
- 靜態路由綜合實驗路由
- 實驗3.直連靜態路由實驗路由
- 靜態路由和動態路由路由
- 【TCP/IP】IP地址的劃分及其分類TCP
- tplink路由器怎麼設定靜態IP地址上網路由器
- CentOS7配置靜態IP地址CentOS
- 【TCP/IP】IP地址分類和特殊IP地址TCP
- IP地址分類與子網劃分
- 華為路由器靜態ip怎麼設定?華為路由器靜態ip設定教程路由器
- IP地址的概念及IP子網劃分
- 如何配置RHEL8靜態 IP 地址
- ubuntu修改mac地址及配置靜態ipUbuntuMac
- Linux下設定靜態IP地址Linux
- 【002】Linux配置靜態ip地址Linux
- 【iCore3 雙核心板】例程二十四:LAN_DHCP實驗——動態分配IP地址
- 靜態路由和動態路由的比較路由
- 【iCore4 雙核心板_ARM】例程二十四:LWIP_DHCP實驗——動態分配IP地址
- IP地址的分類:A、B、C、D、E五類IP地址是如何劃分的
- Linux Mint 20 設定靜態IP地址Linux
- IP地址劃分的那些知識點
- IP地址的A、B、C類如何劃分?
- IP子網劃分概念:IP地址,子網和閘道器配置——VecloudCloud
- 靜態路由路由
- 靜態路由和直連網段重分發技術路由
- win10靜態ip怎麼設定_win10設定靜態ip地址步驟Win10
- 計算機網路實驗10:靜態路由協議計算機網路路由協議
- Win7命令列配置靜態IP地址方法Win7命令列
- IP地址規劃和設計方法
- ubuntu 配置靜態IP 和 DNSUbuntuDNS
- 網路拓撲例項12:靜態路由實現路由負載分擔路由負載
- 動態IP和靜態IP有什麼區別?
- windows 新增和刪除靜態路由Windows路由
- 《Linux系統靜態路由和火牆路由》Linux路由
- 【科普】靜態IP和動態IP有什麼區別?
- 【普】靜態IP和動態IP有什麼區別?
- 【知識分享】動態ip和靜態ip的區別
- 網路:IP地址分類和分段
- centOS7不使用網路管理配置靜態IP地址CentOS