wonderer's program

everything will be better
posts - 19, comments - 6, trackbacks - 0, articles - 0
  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

设置ip的bat

Posted on 2007-09-11 17:25 wonderer 阅读(2048) 评论(1)  编辑  收藏 所属分类: Others

电脑搬回了宿舍,破解了校园网,多人公用一条宽带。要一个主机拨号。ip总不免要设来设去,总是要手工改,很麻烦,于是上网查了查,写了个改ip的bat文件。内容如下:

1: netsh interface ip set address name="本地连接" source=static addr=192.168.0.39

mask=255.255.255.0 gateway=192.168.0.1 gwmetric=1

   2: netsh interface ip set dns name = "本地连接" source = static addr = 202.116.128.1
   3: netsh interface ip add dns name = "本地连接" addr = 202.116.128.2

评论

# re: 设置ip的bat  回复  更多评论   

2007-09-18 14:26 by pss
ok,好极了

只有注册用户登录后才能发表评论。


网站导航: