linux双网卡双ip设置

linux双网卡双ip设置

ID:14327240

大小:149.00 KB

页数:19页

时间:2018-07-27

linux双网卡双ip设置_第1页
linux双网卡双ip设置_第2页
linux双网卡双ip设置_第3页
linux双网卡双ip设置_第4页
linux双网卡双ip设置_第5页
资源描述:

《linux双网卡双ip设置》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、Linux双网卡双IP设置电信:IP:61.147.67.189网关:61.147.67.161网通:IP:122.195.134.157网关:122.195.134.1291)添加路由表修改/etc/iproute2/rt_tables,添加内容:252tel电信路由表251cnc网通路由表2)如创建一个配置文件/etc/iproute.sh,文件权限要设置成可执行,内容如下#!/bin/shiprouteflushtableteliprouteadddefaultvia61.147.67.193deveth0src61.147.67.200ta

2、bletelipruleaddiifethXtableteliprouteflushtablecnciprouteadddefaultvia122.195.134.129deveth1src122.195.134.136tablecncipruleaddiifethXtablecnc#说明:ethX代表IP配置的网卡,比如eth0是电信,3/etc/wtiproute.sh#!/bin/shrouteadd-net1.24.0.0netmask255.248.0.0gw122.195.134.129routeadd-net1.56.0.0netma

3、sk255.248.0.0gw122.195.134.129routeadd-net1.188.0.0netmask255.252.0.0gw122.195.134.129routeadd-net14.204.0.0netmask255.254.0.0gw122.195.134.129routeadd-net27.8.0.0netmask255.248.0.0gw122.195.134.129routeadd-net27.36.0.0netmask255.252.0.0gw122.195.134.129routeadd-net27.40.0.0ne

4、tmask255.248.0.0gw122.195.134.129routeadd-net27.50.128.0netmask255.255.128.0gw122.195.134.129routeadd-net27.54.192.0netmask255.255.224.0gw122.195.134.129routeadd-net27.98.224.0netmask255.255.224.0gw122.195.134.129routeadd-net27.106.128.0netmask255.255.192.0gw122.195.134.129rou

5、teadd-net27.112.0.0netmask255.255.248.0gw122.195.134.129routeadd-net27.115.0.0netmask255.255.128.0gw122.195.134.129routeadd-net27.131.220.0netmask255.255.252.0gw122.195.134.129routeadd-net27.192.0.0netmask255.224.0.0gw122.195.134.129routeadd-net36.32.0.0netmask255.252.0.0gw122

6、.195.134.129routeadd-net36.248.0.0netmask255.252.0.0gw122.195.134.129routeadd-net42.48.0.0netmask255.254.0.0gw122.195.134.129routeadd-net42.63.0.0netmask255.255.0.0gw122.195.134.129routeadd-net42.224.0.0netmask255.240.0.0gw122.195.134.129routeadd-net47.153.128.0netmask255.255.

7、192.0gw122.195.134.129routeadd-net47.154.0.0netmask255.255.0.0gw122.195.134.129routeadd-net47.200.192.0netmask255.255.192.0gw122.195.134.129routeadd-net58.16.0.0netmask255.248.0.0gw122.195.134.129routeadd-net58.24.0.0netmask255.254.0.0gw122.195.134.129routeadd-net58.30.64.0net

8、mask255.255.192.0gw122.195.134.129routeadd-net58.30.128.0netm

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。