2019年01月的文章

内外网静态路由实现自主切换

route print --显示路由


route delete 0.0.0.0  --删除指定路由


route -p add 0.0.0.0 mask 0.0.0.0 192.168.0.1  --新建永久路由 访问外网


route -p add 192.168.2.0 mask 255.255.255.0 192.166.6.1  --新建永久路由 访问内网


另外,网络配置需要全部采用静态设置,跃点数根据实际情况手动设置。

关键词: 内外网

<div style="text-align:right;position:fixed;bottom:3px;right:3px;width:100%;z-index:999999;cursor:pointer;line-height:0;display:block;"><a target="_blank" href="https://www.freewebhostingarea.com" title="Free Web Hosting with PHP5 or PHP7"><img alt="Free Web Hosting" src="https://www.freewebhostingarea.com/images/poweredby.png" style="border-width: 0px;width: 180px; height: 45px; float: right;"></a></div> </body>