xp改路由表两机共享上网_第1张图片

 笔记本两个网卡有线网卡(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网段无线网卡,有线网卡网段可共享上网了xp改路由表两机共享上网_第2张图片

有线网卡网段其它电脑(注,无线网上共享后,有线网卡自动成192.168.0.1网段的,但可以手动修改网段成43网段,这样43网段的其它主机就不用修改IP地址)xp改路由表两机共享上网_第3张图片