Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7405461
  • 博文数量: 1756
  • 博客积分: 18684
  • 博客等级: 上将
  • 技术积分: 16232
  • 用 户 组: 普通用户
  • 注册时间: 2010-06-02 10:28
个人简介

啥也没写

文章分类

全部博文(1756)

文章存档

2024年(2)

2023年(44)

2022年(39)

2021年(46)

2020年(43)

2019年(27)

2018年(44)

2017年(50)

2016年(47)

2015年(15)

2014年(21)

2013年(43)

2012年(143)

2011年(228)

2010年(263)

2009年(384)

2008年(246)

2007年(30)

2006年(38)

2005年(2)

2004年(1)

分类: WINDOWS

2008-06-05 16:24:58

最近和广州做的VPN,,,网关只有改成254才能上,面我们平时用的都是1的网关,非常不方便,
所以还有一个办法,,就是让网关自动切换!
 
查看:
C:\>route print
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 13 8f 5d dc 73 ...... NVIDIA nForce Networking Controller - 数据包计划
程序微型端口
===========================================================================
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0    192.168.100.1  192.168.100.14       20
        127.0.0.0        255.0.0.0        127.0.0.1       127.0.0.1       1
    192.168.100.0    255.255.255.0   192.168.100.14  192.168.100.14       20
   192.168.100.14  255.255.255.255        127.0.0.1       127.0.0.1       20
  192.168.100.255  255.255.255.255   192.168.100.14  192.168.100.14       20
        224.0.0.0        240.0.0.0   192.168.100.14  192.168.100.14       20
  255.255.255.255  255.255.255.255   192.168.100.14  192.168.100.14       1
Default Gateway:     192.168.100.1
===========================================================================
Persistent Routes:
  None
 
和和,反正看着有些晕,,意思就是0.0.0.0/0.0.0.0  从192.168.100.1网关走
我们再加上
 
 
C:\>route -p add 192.168.3.0 mask 255.255.255.0 192.168.100.254
 
好了,就加上这几个,意思就是192.168.1.0/24  这5段的IP都从24的网关走,这样就不用老把网关换来换去了
 
C:\>route print
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 13 8f 5d dc 73 ...... NVIDIA nForce Networking Controller - 数据包计
程序微型端口
===========================================================================
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0    192.168.100.1  192.168.100.14       20
        127.0.0.0        255.0.0.0        127.0.0.1       127.0.0.1       1
      192.168.3.0    255.255.255.0  192.168.100.254  192.168.100.14       1
    192.168.100.0    255.255.255.0   192.168.100.14  192.168.100.14       20
   192.168.100.14  255.255.255.255        127.0.0.1       127.0.0.1       20
  192.168.100.255  255.255.255.255   192.168.100.14  192.168.100.14       20
        224.0.0.0        240.0.0.0   192.168.100.14  192.168.100.14       20
  255.255.255.255  255.255.255.255   192.168.100.14  192.168.100.14       1
Default Gateway:     192.168.100.1
===========================================================================
Persistent Routes:
  Network Address          Netmask  Gateway Address  Metric
      192.168.3.0    255.255.255.0  192.168.100.254       1
 
这样就成了,VPN上网两不误了
 
 
 
阅读(1389) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~