先訴說一下小弟的情況
家裡的網路是社區分配的
所以只要接上去就可以直接分配到IP
而小弟家中本來就3.4台桌機
都各有2張網卡
一張當家裡區網的
由一台HUB作連接
其中也接了1台小型影印機
一張當各自網外連線
而網外的都各自接到HUB上
所以有兩台HUB
也就是一台是家裡區網用稱作HUB1
一台是接社區連外網路用稱作HUB2
而小弟約半年前購入了筆電
一直很困擾的一點
就是 我要上網就要插上HUB2
如果要印東西就需要改插上HUB1
而筆電有無線網路和有線網路
不知道能不能說
有線網路接HUB1使用影印機
在HUB2上用一台AP讓無線網卡連線來上網
還是各位大大有解決方法
1. 首先將 DOS 視窗開啟
2. 鍵入指令 ipconfig /all 後將會列出目前使用的網路卡資訊
Ethernet adapter 區域連線:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Marvell Yukon 88E8036 PCI-E Fast Ethernet Controller
Physical Address. . . . . . . . . : 00-01-4A-F5-AE-4D
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.1.123
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.2
DHCP Server . . . . . . . . . . . : 192.168.1.2
DNS Servers . . . . . . . . . . . : 192.168.1.2
Lease Obtained. . . . . . . . . . : 2008年7月9日 上午 09:54:10
Lease Expires . . . . . . . . . . : 2008年7月10日 上午 09:54:10
Ethernet adapter 無線網路連線 5:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) PRO/Wireless 3945ABG Network Connection
Physical Address. . . . . . . . . : 00-13-02-12-CB-07
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 172.16.31.3
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 172.16.31.1
DHCP Server . . . . . . . . . . . : 172.16.31.1
DNS Servers . . . . . . . . . . . : 172.16.31.1
Lease Obtained. . . . . . . . . . : 2008年7月9日 上午 09:00:44
Lease Expires . . . . . . . . . . : 2008年7月9日 下午 03:00:44
PS 1. "Ethernet adapter 區域連線:" 為社區網路
PS 2. "Ethernet adapter 無線網路連線 5:" 為 ADSL 家用網路
3. 鍵入指令 route print 後會列出目前使用的網路卡與網路溝通的資訊
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 01 4a f5 ae 4d ...... Marvell Yukon 88E8036 PCI-E Fast Ethernet Contro ller - Packet Scheduler Miniport
0x3 ...00 13 02 12 cb 07 ...... Intel(R) PRO/Wireless 3945ABG Network Connection - Packet Scheduler Miniport
0x10005 ...00 02 c7 df 10 de ...... Bluetooth Personal Area Network - Packet Scheduler Miniport
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 172.16.31.1 172.16.31.3 25
0.0.0.0 0.0.0.0 192.168.1.2 192.168.1.123 20
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
172.16.31.0 255.255.255.0 172.16.31.3 172.16.31.3 25
172.16.31.3 255.255.255.255 127.0.0.1 127.0.0.1 25
172.16.255.255 255.255.255.255 172.16.31.3 172.16.31.3 25
192.168.1.0 255.255.255.0 192.168.1.123 192.168.1.123 20
192.168.1.123 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.1.255 255.255.255.255 192.168.1.123 192.168.1.123 20
224.0.0.0 240.0.0.0 172.16.31.3 172.16.31.3 25
224.0.0.0 240.0.0.0 192.168.1.123 192.168.1.123 20
255.255.255.255 255.255.255.255 172.16.31.3 172.16.31.3 1
255.255.255.255 255.255.255.255 192.168.1.123 192.168.1.123 1
255.255.255.255 255.255.255.255 192.168.1.123 10005 1
Default Gateway: 192.168.1.2
===========================================================================
4. 由 3 的藍色字部份可以發現它是以 "Ethernet adapter 區域連線:" 為主,因為它的 Metric 值較 "Ethernet adapter 無線網路連線 5:" 小。
5. 依 3 的例子,若要使用無線網路做為連上 Internet 的首選則請鍵入指令 route add 0.0.0.0 mask 0.0.0.0 172.16.31.1 metric 19 if 3 (即 metric 的值較小就可以了)
6. 這樣就可以同時使用社區網路及家用網路
Nikon D800+罐頭s; Apples
內文搜尋

X