寝室用的网通,我用的路由器获取IP,虽然分配给路由器本地ip也能被认为是学校内网IP,但是很多校内的资源很多还是无法工作。譬如论文检索、光盘下载、校内的FTP。
当然,路由器的外网IP是联通分配的。
本机自带的网卡用来连接路由器访问internet,
USB网卡用来连接交换机(寝室用来连接学校网络的,路由器也连接在这个交换机上面)。
自动获取寝室内网ip:
为了保证USB网卡访问内网不影响本机网卡访问外网,设置路由跳点:
这样设置之后,就可以访问内网了
这个IP是学校内网的一个IP,实验室也是用的这个子网,这应该是学校教学楼的内网。
=================================
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.
C:\Documents and Settings\Administrator>netstat
Active Connections
Proto Local Address Foreign Address State
TCP zhangbin-pcstar:1138 localhost:1139 ESTABLISHED
TCP zhangbin-pcstar:1139 localhost:1138 ESTABLISHED
TCP zhangbin-pcstar:1186 localhost:1187 ESTABLISHED
TCP zhangbin-pcstar:1187 localhost:1186 ESTABLISHED
TCP zhangbin-pcstar:1829 202.193.80.183:http TIME_WAIT
TCP zhangbin-pcstar:1841 202.193.80.183:http TIME_WAIT
TCP zhangbin-pcstar:1847 202.193.80.185:http ESTABLISHED
TCP zhangbin-pcstar:1848 202.193.80.185:http ESTABLISHED
TCP zhangbin-pcstar:1849 202.193.80.185:http ESTABLISHED
TCP zhangbin-pcstar:1850 202.193.80.185:http ESTABLISHED
TCP zhangbin-pcstar:1851 202.193.80.185:http ESTABLISHED
TCP zhangbin-pcstar:1852 202.193.80.185:http ESTABLISHED
TCP zhangbin-pcstar:1043 61.135.218.41:http CLOSE_WAIT
TCP zhangbin-pcstar:1044 61.135.218.41:http CLOSE_WAIT
TCP zhangbin-pcstar:1045 61.135.218.44:http CLOSE_WAIT
TCP zhangbin-pcstar:1046 61.135.218.41:http CLOSE_WAIT
TCP zhangbin-pcstar:1144 a23-15-99-51.deploy.akamaitechnologies.com:https
CLOSE_WAIT
TCP zhangbin-pcstar:1628 183.60.49.180:https ESTABLISHED
TCP zhangbin-pcstar:pptp 61.135.217.78:http CLOSE_WAIT
TCP zhangbin-pcstar:1826 61.135.218.44:http LAST_ACK
TCP zhangbin-pcstar:1837 sin01s04-in-f1.1e100.net:https ESTABLISHED
TCP zhangbin-pcstar:1846 61.135.218.44:http CLOSE_WAIT
TCP zhangbin-pcstar:1854 117.79.157.241:http ESTABLISHED
TCP zhangbin-pcstar:1855 117.79.157.241:http ESTABLISHED
TCP zhangbin-pcstar:1856 117.79.157.241:http ESTABLISHED
TCP zhangbin-pcstar:1857 117.79.157.214:http ESTABLISHED
TCP zhangbin-pcstar:1858 117.79.157.214:http ESTABLISHED
TCP zhangbin-pcstar:1859 117.79.157.202:http ESTABLISHED
TCP zhangbin-pcstar:1860 117.79.157.202:http ESTABLISHED
TCP zhangbin-pcstar:1861 117.79.157.202:http ESTABLISHED
TCP zhangbin-pcstar:1862 117.79.157.241:http ESTABLISHED
TCP zhangbin-pcstar:1863 117.79.157.241:http ESTABLISHED
TCP zhangbin-pcstar:1864 117.79.157.241:http ESTABLISHED
TCP zhangbin-pcstar:1865 117.79.157.241:http ESTABLISHED
TCP zhangbin-pcstar:1866 117.79.157.241:http ESTABLISHED
TCP zhangbin-pcstar:1867 117.79.157.241:http ESTABLISHED
TCP zhangbin-pcstar:1868 117.79.157.214:http ESTABLISHED
TCP zhangbin-pcstar:1869 117.79.157.214:http ESTABLISHED
TCP zhangbin-pcstar:1870 117.79.157.214:http ESTABLISHED
TCP zhangbin-pcstar:1871 117.79.157.214:http ESTABLISHED
TCP zhangbin-pcstar:1872 117.79.157.214:http ESTABLISHED
TCP zhangbin-pcstar:1873 117.79.157.214:http ESTABLISHED
TCP zhangbin-pcstar:1874 117.79.157.214:http ESTABLISHED
TCP zhangbin-pcstar:1875 117.79.157.214:http ESTABLISHED
TCP zhangbin-pcstar:1876 117.79.157.214:http ESTABLISHED
TCP zhangbin-pcstar:1877 117.79.157.214:http ESTABLISHED
TCP zhangbin-pcstar:1878 117.79.157.224:http ESTABLISHED
TCP zhangbin-pcstar:1879 117.79.157.224:http ESTABLISHED
TCP zhangbin-pcstar:1880 117.79.157.224:http ESTABLISHED
TCP zhangbin-pcstar:1881 117.79.157.231:http ESTABLISHED
TCP zhangbin-pcstar:1882 117.79.157.231:http ESTABLISHED
TCP zhangbin-pcstar:1883 117.79.157.231:http ESTABLISHED
TCP zhangbin-pcstar:1884 hx-in-f139.1e100.net:http ESTABLISHED
TCP zhangbin-pcstar:1885 hx-in-f139.1e100.net:http ESTABLISHED
TCP zhangbin-pcstar:1886 hx-in-f139.1e100.net:http ESTABLISHED
TCP zhangbin-pcstar:1887 117.79.157.214:http ESTABLISHED 这是http://www.csdn.net/ 。
TCP zhangbin-pcstar:1888 117.79.157.214:http ESTABLISHED
TCP zhangbin-pcstar:2869 192.168.1.2:31240 CLOSE_WAIT 路由器端口号
C:\Documents and Settings\Administrator>ipconfig
Windows IP Configuration
Ethernet adapter 本地连接:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.1.88
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.2
Ethernet adapter VirtualBox Host-Only Network:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.56.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
Ethernet adapter ASIX: USB网卡的
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 172.27.0.4
Subnet Mask . . . . . . . . . . . : 255.255.252.0
Default Gateway . . . . . . . . . : 172.27.3.254 学校的内网网关
C:\Documents and Settings\Administrator>route
Manipulates network routing tables.
ROUTE [-f] [-p] [command [destination]
[MASK netmask] [gateway] [METRIC metric] [IF interface]
-f Clears the routing tables of all gateway entries. If this is
used in conjunction with one of the commands, the tables are
cleared prior to running the command.
-p When used with the ADD command, makes a route persistent across
boots of the system. By default, routes are not preserved
when the system is restarted. Ignored for all other commands,
which always affect the appropriate persistent routes. This
option is not supported in Windows 95.
command One of these:
PRINT Prints a route
ADD Adds a route
DELETE Deletes a route
CHANGE Modifies an existing route
destination Specifies the host.
MASK Specifies that the next parameter is the 'netmask' value.
netmask Specifies a subnet mask value for this route entry.
If not specified, it defaults to 255.255.255.255.
gateway Specifies gateway.
interface the interface number for the specified route.
METRIC specifies the metric, ie. cost for the destination.
All symbolic names used for destination are looked up in the network database
file NETWORKS. The symbolic names for gateway are looked up in the host name
database file HOSTS.
If the command is PRINT or DELETE. Destination or gateway can be a wildcard,
(wildcard is specified as a star '*'), or the gateway argument may be omitted.
If Dest contains a * or ?, it is treated as a shell pattern, and only
matching destination routes are printed. The '*' matches any string,
and '?' matches any one char. Examples: 157.*.1, 157.*, 127.*, *224*.
Diagnostic Notes:
Invalid MASK generates an error, that is when (DEST & MASK) != DEST.
Example> route ADD 157.0.0.0 MASK 155.0.0.0 157.55.80.1 IF 1
The route addition failed: The specified mask parameter is invalid.
(Destination & Mask) != Destination.
Examples:
> route PRINT
> route ADD 157.0.0.0 MASK 255.0.0.0 157.55.80.1 METRIC 3 IF 2
destination^ ^mask ^gateway metric^ ^
Interface^
If IF is not given, it tries to find the best interface for a given
gateway.
> route PRINT
> route PRINT 157* .... Only prints those matching 157*
> route CHANGE 157.0.0.0 MASK 255.0.0.0 157.55.80.5 METRIC 2 IF 2
CHANGE is used to modify gateway and/or metric only.
> route PRINT
> route DELETE 157.0.0.0
> route PRINT
C:\Documents and Settings\Administrator>ifconfig
'ifconfig' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
C:\Documents and Settings\Administrator>
C:\Documents and Settings\Administrator>route print
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...6c f0 49 05 94 e3 ...... Realtek PCIe GBE Family Controller - 数据包计划
程序微型端口
0x3 ...08 00 27 00 44 26 ...... VirtualBox Host-Only Ethernet Adapter - 数据包计
划程序微型端口
0x20005 ...00 8a 8d 8a 1c 1c ...... ASIX AX88772A USB2.0 to Fast Ethernet Adapte
r - 数据包计划程序微型端口
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 172.27.3.254 172.27.0.4 30
0.0.0.0 0.0.0.0 192.168.1.2 192.168.1.88 10
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
172.16.0.0 255.240.0.0 172.27.3.254 172.27.0.4 1
172.27.0.0 255.255.252.0 172.27.0.4 172.27.0.4 30
172.27.0.4 255.255.255.255 127.0.0.1 127.0.0.1 30
172.27.255.255 255.255.255.255 172.27.0.4 172.27.0.4 30
192.168.1.0 255.255.255.0 192.168.1.88 192.168.1.88 10
192.168.1.88 255.255.255.255 127.0.0.1 127.0.0.1 10
192.168.1.255 255.255.255.255 192.168.1.88 192.168.1.88 10
192.168.56.0 255.255.255.0 192.168.56.1 192.168.56.1 20
192.168.56.1 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.56.255 255.255.255.255 192.168.56.1 192.168.56.1 20
202.193.80.0 255.255.240.0 172.27.3.254 172.27.0.4 1
222.203.32.0 255.255.240.0 172.27.3.254 172.27.0.4 1
224.0.0.0 240.0.0.0 172.27.0.4 172.27.0.4 30
224.0.0.0 240.0.0.0 192.168.1.88 192.168.1.88 10
224.0.0.0 240.0.0.0 192.168.56.1 192.168.56.1 20
255.255.255.255 255.255.255.255 172.27.0.4 172.27.0.4 1
255.255.255.255 255.255.255.255 192.168.1.88 192.168.1.88 1
255.255.255.255 255.255.255.255 192.168.56.1 192.168.56.1 1
Default Gateway: 192.168.1.2
===========================================================================
Persistent Routes:
None
C:\Documents and Settings\Administrator>