首页 同时上内外网的Ip设置技巧

同时上内外网的Ip设置技巧

举报
开通vip

同时上内外网的Ip设置技巧同时上内外网的Ip设置技巧 (2010-12-1810:49:54)[编辑][删除]转载▼标签: 杂谈分类: 信息技术 我们有一个环境,是内部网的网段10.31.20.0/24,网关是10.31.20.254,另外我们有一个外网的地址192.168.21.34/24,网关是192.168.21.254,每次上内外网时需要将网线连接到自己的机器上,并且改变IP才可以,非常麻烦,能够不拔网线,Ip统一设置,能同时上内外网? 1、IP的设置主IP的设置:192.168.2...

同时上内外网的Ip设置技巧
同时上内外网的Ip设置技巧 (2010-12-1810:49:54)[编辑][删除]转载▼标签: 杂谈分类: 信息技术 我们有一个环境,是内部网的网段10.31.20.0/24,网关是10.31.20.254,另外我们有一个外网的地址192.168.21.34/24,网关是192.168.21.254,每次上内外网时需要将网线连接到自己的机器上,并且改变IP才可以,非常麻烦,能够不拔网线,Ip统一设置,能同时上内外网? 1、IP的设置主IP的设置:192.168.21.34/255.255.255.0Gateway:192.168.21.254从IP的设置10.31.20.22/255.255.255.0注意:这儿不能设置从IP的网关 2、ipconfig的显示C:\DocumentsandSettings\jack>ipconfig/allWindowsIPConfiguration        HostName............:jack-pc         PrimaryDnsSuffix  .......:         NodeType............:Unknown         IPRoutingEnabled........:No         WINSProxyEnabled........:NoEthernetadapterLocalAreaConnection:        Connection-specificDNSSuffix  .:         Description...........:BroadcomNetLink(TM)GigabitEthernet         PhysicalAddress.........:00-1D-72-0B-E4-4A         DhcpEnabled...........:No         IPAddress............:10.30.21.22         SubnetMask...........:255.255.255.0         IPAddress............:192.168.21.34         SubnetMask...........:255.255.255.0         DefaultGateway.........:192.168.21.254         DNSServers...........:202.102.134.68                                             202.102.154.3         NetBIOSoverTcpip........:Disabled3、外网功能正常C:\DocumentsandSettings\jack>ping www.sina.com.cnPingingdorado.sina.com.cn[60.215.128.138]with32bytesofdata:Replyfrom60.215.128.138:bytes=32time=6msTTL=56 C:\DocumentsandSettings\jack>nslookup DefaultServer:  ns1.sdqdptt.net.cn Address:  202.102.134.68 4、查看网络设置及路由C:\DocumentsandSettings\jack>routeprint =========================================================================== InterfaceList 0x1...........................MSTCPLoopbackinterface 0x2...005056c00008......VMwareVirtualEthernetAdapterforVMnet8 0x3...005056c00001......VMwareVirtualEthernetAdapterforVMnet1 0x4...0013e8d6d3d9......Intel(R)WirelessWiFiLink4965AGN-PacketSchedulerMiniport 0x5...001d720be44a......BroadcomNetLink(TM)GigabitEthernet-PacketSchedulerMiniport =========================================================================== =========================================================================== ActiveRoutes: NetworkDestination        Netmask          Gateway       Interface  Metric           0.0.0.0          0.0.0.0   192.168.21.254   192.168.21.34       1        10.30.21.0    255.255.255.0      10.30.21.22   192.168.21.34       20       10.30.21.22  255.255.255.255        127.0.0.1       127.0.0.1       20    10.255.255.255  255.255.255.255    192.168.21.34   192.168.21.34       20         127.0.0.0        255.0.0.0        127.0.0.1       127.0.0.1       1      192.168.21.0    255.255.255.0    192.168.21.34   192.168.21.34       20     192.168.21.34  255.255.255.255        127.0.0.1       127.0.0.1       20    192.168.21.255  255.255.255.255    192.168.21.34   192.168.21.34       20     192.168.114.0    255.255.255.0    192.168.114.1   192.168.114.1       20     192.168.114.1  255.255.255.255        127.0.0.1       127.0.0.1       20   192.168.114.255  255.255.255.255    192.168.114.1   192.168.114.1       20     192.168.146.0    255.255.255.0    192.168.146.1   192.168.146.1       20     192.168.146.1  255.255.255.255        127.0.0.1       127.0.0.1       20   192.168.146.255  255.255.255.255    192.168.146.1   192.168.146.1       20         224.0.0.0        240.0.0.0    192.168.21.34   192.168.21.34       20         224.0.0.0        240.0.0.0    192.168.114.1   192.168.114.1       20         224.0.0.0        240.0.0.0    192.168.146.1   192.168.146.1       20   255.255.255.255  255.255.255.255      10.30.21.22               4       1   255.255.255.255  255.255.255.255    192.168.21.34   192.168.21.34       1   255.255.255.255  255.255.255.255    192.168.114.1   192.168.114.1       1   255.255.255.255  255.255.255.255    192.168.146.1   192.168.146.1       1 DefaultGateway:    192.168.21.254 =========================================================================== PersistentRoutes:   None 5、注意:到内网是不通的C:\DocumentsandSettings\jack>ping10.10.0.6Pinging10.10.0.6with32bytesofdata:Replyfrom60.208.68.221:TTLexpiredintransit. Replyfrom60.208.68.221:TTLexpiredintransit.Pingstatisticsfor10.10.0.6:     Packets:Sent=2,Received=2,Lost=0(0%loss), Approximateroundtriptimesinmilli-seconds:     Minimum=0ms,Maximum=0ms,Average=0ms Control-C ^C C:\DocumentsandSettings\jack>ping10.10.10.31Pinging10.10.10.31with32bytesofdata:Requesttimedout.Pingstatisticsfor10.10.10.31:     Packets:Sent=1,Received=0,Lost=1(100%loss), 6、增加路由C:\DocumentsandSettings\jack>routeadd10.10.0.0mask255.255.255.010.30.21.254C:\DocumentsandSettings\jack>routeadd10.10.10.0mask255.255.255.010.30.21.254 7、到内网通了C:\DocumentsandSettings\jack>ping10.10.0.6Pinging10.10.0.6with32bytesofdata:Replyfrom10.10.0.6:bytes=32time<1msTTL=63Pingstatisticsfor10.10.0.6:     Packets:Sent=1,Received=1,Lost=0(0%loss), Approximateroundtriptimesinmilli-seconds:     Minimum=0ms,Maximum=0ms,Average=0ms Control-C ^C C:\DocumentsandSettings\jack>ping10.10.10.33Pinging10.10.10.33with32bytesofdata:Replyfrom10.10.10.33:bytes=32time<1msTTL=61 8、正确时的路由表C:\DocumentsandSettings\jack>routeprint =========================================================================== InterfaceList 0x1...........................MSTCPLoopbackinterface 0x2...005056c00008......VMwareVirtualEthernetAdapterforVMnet8 0x3...005056c00001......VMwareVirtualEthernetAdapterforVMnet1 0x4...0013e8d6d3d9......Intel(R)WirelessWiFiLink4965AGN-PacketSchedulerMiniport 0x5...001d720be44a......BroadcomNetLink(TM)GigabitEthernet-PacketSchedulerMiniport =========================================================================== =========================================================================== ActiveRoutes: NetworkDestination        Netmask          Gateway       Interface  Metric           0.0.0.0          0.0.0.0   192.168.21.254   192.168.21.34       1         10.10.0.0    255.255.255.0     10.30.21.254   192.168.21.34       1        10.10.10.0    255.255.255.0     10.30.21.254   192.168.21.34       1        10.30.21.0    255.255.255.0      10.30.21.22   192.168.21.34       20       10.30.21.22  255.255.255.255        127.0.0.1       127.0.0.1       20    10.255.255.255  255.255.255.255    192.168.21.34   192.168.21.34       20         127.0.0.0        255.0.0.0        127.0.0.1       127.0.0.1       1      192.168.21.0    255.255.255.0    192.168.21.34   192.168.21.34       20     192.168.21.34  255.255.255.255        127.0.0.1       127.0.0.1       20    192.168.21.255  255.255.255.255    192.168.21.34   192.168.21.34       20     192.168.114.0    255.255.255.0    192.168.114.1   192.168.114.1       20     192.168.114.1  255.255.255.255        127.0.0.1       127.0.0.1       20   192.168.114.255  255.255.255.255    192.168.114.1   192.168.114.1       20     192.168.146.0    255.255.255.0    192.168.146.1   192.168.146.1       20     192.168.146.1  255.255.255.255        127.0.0.1       127.0.0.1       20   192.168.146.255  255.255.255.255    192.168.146.1   192.168.146.1       20         224.0.0.0        240.0.0.0    192.168.21.34   192.168.21.34       20         224.0.0.0        240.0.0.0    192.168.114.1   192.168.114.1       20         224.0.0.0        240.0.0.0    192.168.146.1   192.168.146.1       20   255.255.255.255  255.255.255.255      10.30.21.22               4       1   255.255.255.255  255.255.255.255    192.168.21.34   192.168.21.34       1   255.255.255.255  255.255.255.255    192.168.114.1   192.168.114.1       1   255.255.255.255  255.255.255.255    192.168.146.1   192.168.146.1       1 DefaultGateway:    192.168.21.254 =========================================================================== PersistentRoutes:   None 附加:如何删除路由C:\DocumentsandSettings\jack>routedelete10.10.0.0C:\DocumentsandSettings\jack>routedelete10.10.10.0
本文档为【同时上内外网的Ip设置技巧】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
下载需要: 免费 已有0 人下载
最新资料
资料动态
专题动态
is_436595
暂无简介~
格式:doc
大小:16KB
软件:Word
页数:5
分类:生活休闲
上传时间:2017-12-03
浏览量:25