不好意思有人知道…
比如說ADSL用PPPOE播接上internet後,得到的ip如下
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 10.0.7.100
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 10.0.7.100
一、subnet mask 為255.255.255.255是什麼意思??用意為何?
二、IP Address和Default Gateway相同是什麼意思??用意為何?
謝謝…
kellenjiang wrote:
比如說ADSL用PPPOE播接上internet後,得到的ip如下
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 10.0.7.100
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 10.0.7.100
一、subnet mask 為255.255.255.255是什麼意思??用意為何?
二、IP Address和Default Gateway相同是什麼意思??用意為何?(恕刪)

Ans 1: 255.255.255.255 為指定這個IP只有一個~ 通常區域網路是不會這樣設定的~ 不過這通常都是使用在 router、firewall 家庭用戶端的網路子遮罩配發~ 換句話說也就是將所有經過IP與subnet mask來進行AND比對,並非屬於這個IP的封包都會給予路由出去~~~ Subnet 的概論 from wiki
Ans 2: IP說明 From Wiki、IP說明2 From wiki、IP與Default Gateway From E-Office
自個兒去看看吧~~~
阿胖技研,專研資訊相關技術!
kellenjiang wrote:
一、subnet mask 是255.255.255.255是指single host,也就是指單一的主機
用意應該是ISP業者要節省網段的切割損失嗎?還是有acl的考量嗎?
二、IP和GATEWAY相同,是把GATEWAY指向自已,但我不懂以TCP/IP的觀念,
封包是如何經由本身電腦ROUTE 到INTERNET?...(恕刪)
Ans 1: 若是ISP則是節省網段切割損失為主~ 不過對於router或者防火牆來說~ 這個遮罩代表該個IP... 就像Cisco的Firewall來說~ 設定的部份都會指定遮罩來去區隔那個網段與區塊(當然也可以建立群組來加強管理)~ 若是 1.2.3.4/255.255.255.255 則代表就是 1.2.3.4 這個IP。 不過ISP不會這麼好心的幫你做Security的部份(因為這個可以拿來賺錢)... 所以是以節省網段切割損失為主,再來是使用這個遮罩讓你無法去干擾隔壁IP的用戶~~~ (也就是分配的網段在詳盡切割給各個用戶,將各用戶端分別獨立成各個區網)為輔。
Ans 2: 這段讓我疑惑的是 Gateway 設定為自己~~~ 這部分應該有點問題吧~~~ 像我的ISP配發給我的假設 1.2.3.4/255.255.255.255 也就是說將不是丟給我這個IP的封包通通丟給default gateway~~~ 若ISP這樣配發相同的IP~ 也蠻奇特的~ 你確定你的ISP配發給你這個gateway嗎?!
阿胖技研,專研資訊相關技術!
PC--->ATUR--->HINET
PPPOE get到的 ip如下
Microsoft Windows XP [版本 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\kellen>ipconfig/all
PPP adapter 9361444:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface
Physical Address. . . . . . . . . : 00-53-45-00-00-00
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 122.124.132.5
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 122.124.132.5
DNS Servers . . . . . . . . . . . : 168.95.192.1
168.95.1.1
NetBIOS over Tcpip. . . . . . . . : Disabled
C:\Documents and Settings\kellen>tracert 168.95.1.1
Tracing route to dns.hinet.net [168.95.1.1]
over a maximum of 30 hops:
1 37 ms 29 ms 29 ms 122-124-128-254.dynamic.hinet.net [122.124.128.2
54]
2 29 ms 29 ms 29 ms il-c6r1.router.hinet.net [168.95.172.50]
3 29 ms 29 ms 29 ms il-c12r1.router.hinet.net [211.22.127.10]
4 29 ms 29 ms 29 ms tp-crs11.router.hinet.net [220.128.1.210]
5 29 ms 29 ms 29 ms tc-c12r11.router.hinet.net [220.128.1.9]
6 39 ms 29 ms 29 ms 202.39.179.185
7 29 ms 29 ms 29 ms dns.hinet.net [168.95.1.1]
Trace complete.
C:\Documents and Settings\kellen>route print
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 e0 18 6f 57 f0 ...... Realtek RTL8139 Family PCI Fast Ethernet NIC - P
acket Scheduler Miniport
0x20004 ...00 53 45 00 00 00 ...... WAN (PPP/SLIP) Interface
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 122.124.132.5 122.124.132.5 1
0.0.0.0 0.0.0.0 172.19.79.126 172.19.79.65 21
122.124.128.254 255.255.255.255 122.124.132.5 122.124.132.5 1
122.124.132.5 255.255.255.255 127.0.0.1 127.0.0.1 50
122.255.255.255 255.255.255.255 122.124.132.5 122.124.132.5 50
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
172.19.79.64 255.255.255.192 172.19.79.65 172.19.79.65 20
172.19.79.65 255.255.255.255 127.0.0.1 127.0.0.1 20
172.19.255.255 255.255.255.255 172.19.79.65 172.19.79.65 20
224.0.0.0 240.0.0.0 172.19.79.65 172.19.79.65 20
224.0.0.0 240.0.0.0 122.124.132.5 122.124.132.5 1
255.255.255.255 255.255.255.255 122.124.132.5 122.124.132.5 1
255.255.255.255 255.255.255.255 172.19.79.65 172.19.79.65 1
Default Gateway: 122.124.132.5
===========================================================================
Persistent Routes:
None
C:\Documents and Settings\kellen>
內文搜尋

X