网络分析专家论坛 netexpert's Archiver

goldpig 发表于 2008-9-19 11:37

ip and subnet mask

关于IP 和 SUBMASK的问题
我现在的网络是校园网,通过拨号上网,当我在CMD里输入IPCONFIG /ALL是得到的结果是
C:\>ipconfig /all
Windows IP Configuration
        Host Name . . . . . . . . . . . . : JX01
        Primary Dns Suffix  . . . . . . . :
        Node Type . . . . . . . . . . . . : Unknown
        IP Routing Enabled. . . . . . . . : Yes
        WINS Proxy Enabled. . . . . . . . : No
        DNS Suffix Search List. . . . . . : domain
Ethernet adapter 本地连接 2:
        Connection-specific DNS Suffix  . : domain
        Description . . . . . . . . . . . : Realtek RTL8139 Family PCI Fast Ethe
rnet NIC #2
        Physical Address. . . . . . . . . : 00-E0-4C-4E-0C-FD
        Dhcp Enabled. . . . . . . . . . . : Yes
        Autoconfiguration Enabled . . . . : Yes
        IP Address. . . . . . . . . . . . : 192.168.1.145
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 192.168.1.1
        DHCP Server . . . . . . . . . . . : 192.168.1.1
        DNS Servers . . . . . . . . . . . : 192.168.1.1
        Lease Obtained. . . . . . . . . . : 2008年9月19日 11:26:22
        Lease Expires . . . . . . . . . . : 2008年9月19日 13:26:22
PPP adapter myconnection:
        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface
        Physical Address. . . . . . . . . : 00-53-45-00-00-00
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : 10.20.233.218             //请注意*****************************************************
        Subnet Mask . . . . . . . . . . . : 255.255.255.255      //请注意*****************************************************
        Default Gateway . . . . . . . . . : 10.20.233.218
        DNS Servers . . . . . . . . . . . : 202.203.224.33
                                            222.172.200.68
        NetBIOS over Tcpip. . . . . . . . : Disabled
这里的SUBNET MASK为255.255.255.255,那么这是只有子网号了,没主机号了???这是怎么回事啊?

Cloudy_hanji 发表于 2008-9-19 12:07

很正常的,一般来说通过WAN连接的获得的地址都是255.255.255.255,这是代表单台主机,就等于做ACL时用255.255.255.255代表一台主机的道理一样的

goldpig 发表于 2008-9-19 13:00

一般来说通过WAN连接的获得的地址都是255.255.255.255,这是代表单台主机,就等于做ACL时用255.255.255.255代表一台主机的道理一样的

这里的“通过WAN连接”是指直接连接到WAN吗,就相当于固定IP上INTERNET网的机器了,你的意思是说他们的SUBNET MASK都是255.255.255.255 吗?
还有你所说的ACL是指啥意思啊?

hujianetants 发表于 2008-9-22 09:22

255.255.255.255 是32位的全匹配掩码,没什么问题 ,所以拨号后获得的网关是机器本身
你拨号后获得的地址还是私有地址,不是公用地址,还是在你的校园网内,应该是学校的网络设置, 拨号后上internet的流量通过学校的一个总的出口出去了
可以tracert一个公网地址看看下一跳是什么

mark_mark 发表于 2008-9-24 14:04

access control list
我习惯在单机时用host参数

zhutou3 发表于 2008-9-24 15:47

:victory: :victory: :victory: :victory: :victory:

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.