您的位置:首页 > 其它

xp改路由表两机共享上网

2014-09-24 20:31 218 查看



笔记本两个网卡有线网卡(192.168.199.101 内网) 无线网卡(192.168.43.0 可上外网)两个网线共同接入后笔记本无法上外网。笔记本路由表如下:
C:\Documents and Settings\Administrator>route print
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...e8 9a 8f 99 8c d5 ...... Qualcomm Atheros AR8152/8158 PCI-E Fast Ethernet
Controller - 数据包计划程序微型端口
0x10004 ...38 59 f9 50 9a 18 ...... Atheros AR5B95 Wireless Network Adapter - 数
据包计划程序微型端口
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.43.1 192.168.43.129 25
0.0.0.0 0.0.0.0 192.168.199.1 192.168.199.101 20
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
169.254.0.0 255.255.0.0 192.168.43.129 192.168.43.129 20
192.168.43.0 255.255.255.0 192.168.43.129 192.168.43.129 25
192.168.43.129 255.255.255.255 127.0.0.1 127.0.0.1 25
192.168.43.255 255.255.255.255 192.168.43.129 192.168.43.129 25
192.168.199.0 255.255.255.0 192.168.199.101 192.168.199.101 20
192.168.199.101 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.199.255 255.255.255.255 192.168.199.101 192.168.199.101 20
224.0.0.0 240.0.0.0 192.168.43.129 192.168.43.129 25
224.0.0.0 240.0.0.0 192.168.199.101 192.168.199.101 20
255.255.255.255 255.255.255.255 192.168.43.129 192.168.43.129 1
255.255.255.255 255.255.255.255 192.168.199.101 192.168.199.101 1
Default Gateway: 192.168.199.1
===========================================================================

43网络的跳数大于199,所以数据包都走199网段了
删除43路由跳目
C:\Documents and Settings\Administrator>route delete 0.0.0.0 mask 0.0.0.0 192.16
8.43.1
-----------------------------------------------------------------------------
新建43路由跳目跳数小于199
C:\Documents and Settings\Administrator>route add 0.0.0.0 mask 0.0.0.0 192.168.4
3.1 metric 10 -p

C:\Documents and Settings\Administrator>route print
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...e8 9a 8f 99 8c d5 ...... Qualcomm Atheros AR8152/8158 PCI-E Fast Ethernet
Controller - 数据包计划程序微型端口
0x10004 ...38 59 f9 50 9a 18 ...... Atheros AR5B95 Wireless Network Adapter - 数
据包计划程序微型端口
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.43.1 192.168.43.129 10
0.0.0.0 0.0.0.0 192.168.199.1 192.168.199.101 20
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
169.254.0.0 255.255.0.0 192.168.43.129 192.168.43.129 20
192.168.43.0 255.255.255.0 192.168.43.129 192.168.43.129 25
192.168.43.129 255.255.255.255 127.0.0.1 127.0.0.1 25
192.168.43.255 255.255.255.255 192.168.43.129 192.168.43.129 25
192.168.199.0 255.255.255.0 192.168.199.101 192.168.199.101 20
192.168.199.101 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.199.255 255.255.255.255 192.168.199.101 192.168.199.101 20
224.0.0.0 240.0.0.0 192.168.43.129 192.168.43.129 25
224.0.0.0 240.0.0.0 192.168.199.101 192.168.199.101 20
255.255.255.255 255.255.255.255 192.168.43.129 192.168.43.129 1
255.255.255.255 255.255.255.255 192.168.199.101 192.168.199.101 1
Default Gateway: 192.168.43.1
===========================================================================
Persistent Routes:
Network Address Netmask Gateway Address Metric
0.0.0.0 0.0.0.0 192.168.43.1 10
-----------------------------
笔记本经过43网段外网可上了。然后共享43网段无线网卡,有线网卡网段可共享上网了


有线网卡网段其它电脑(注,无线网上共享后,有线网卡自动成192.168.0.1网段的,但可以手动修改网段成43网段,这样43网段的其它主机就不用修改IP地址)

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息