版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、在DNS服务器上,配置路由工作总结2009-11-03 于知音网通 电信 双线服务器 路由 配置一服务器状态网通使用第一块网卡(eth0):DEVICE=eth0BOOTPROTO=noneHWADDR=00:24:e8:5c:91:6fIPADDR=36NETMASK=24GATEWAY=25ONBOOT=yesTYPE=Ethernet电信使用第二块网卡(eth1):DEVICE=eth1HWADDR=00:24:e8:5c:91:71IPADDR=56NETMASK=255.255.255
2、.224GATEWAY=45ONBOOT=yesDHCP_HOSTNAME=F35TYPE=EthernetBOOTPROTO=nonevi /etc/sysconfig/networking/profiles/default/route-eth0GATEWAY0=25NETMASK0=24ADDRESS0=36vi /etc/sysconfig/networking/profiles/default/resolv.confnameserver 8 /电信DNSnames
3、erver 22 /网通DNS二配置路由表# vi /etc/iproute2/rt_tables,增加网通和电信两个路由表252 cnc251 tel设置网通的路由表# ip route add /24 via 36 dev eth0 table cnc# ip route add /8 dev lo table cnc# ip route add default via 25 dev eth0 table cnc设置电信的路由表ip route add 219.140.171
4、.0/24 via 56 dev eth1 table telip route add /8 dev lo table telip route add default via 45 dev eth1 table tel3 制定策略 让 56 的回应数据包走电信的路由表路由, 36 的回应数据包走网通的路由表路由。ip rule add from 56 table telip rule add from 36 table cnc
5、4 修改IP转发文件# vi /etc/sysctl.confnet.ipv4.ip_forward = 1net.ipv4.conf.default.rp_filter = 1kernel.sysrq = 0使设置生效:sysctl -p5 设置静态路由表文件# vi /etc/sysconfig/static-routeseth0 net 36 netmask 24 gw 25eth1 net 56 netmask 24 gw 45将从两个
6、WAN口出去的数据包进行IP伪装masquerade# /sbin/modprobe ip_conntrack_ftp# /sbin/modprobe ip_nat_ftp# /sbin/iptables -t nat -A postrouting -o eth0 -j masquerade /防火墙# /sbin/iptables -t nat -A postrouting -o eth1 -j masquerade /防火墙设置默认网关为电信# route add default gw 45增加出口路由策略,客户端是网通的走网通线路,其余走电信线路。#!/bin/
7、ship rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /16 table cncip rule add to /16 table cncip rule add to /16 table cncip rule add to /16 tab
8、le cncip rule add to /16 table cncip rule add to /16 table cncip rule add to /16 table cncip rule add to /16 table cncip rule add to /16 table cncip rule add to /16 table cncip rule add to /16 table cncip rule add to /16
9、table cncip rule add to /16 table cncip rule add to /16 table cncip rule add to /16 table cncip rule add to /16 table cncip rule add to /16 table cncip rule add to /24 table cncip rule add to /16 table cncip rule add to /16 ta
10、ble cncip rule add to /16 table cncip rule add to /16 table cncip rule add to /16 table cncip rule add to /16 table cncip rule add to /16 table cncip rule add to /16 table cncip rule add to /16 table cncip rule add to /16 table cn
11、cip rule add to /16 table cncip rule add to /16 table cncip rule add to /16 table cncip rule add to /16 table cncip rule add to /16 table cncip rule add to /16 table cncip rule add to /24 table cncip rule add to /24 table cncip r
12、ule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /
13、24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule
14、add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /
15、24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule
16、add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 tabl
17、e cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to 61.136.
18、78.0/24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule ad
19、d to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table c
20、ncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to 61.138.12
21、9.0/24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip r
22、ule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to 61.138.14
23、4.0/24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip r
24、ule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to 61.138.15
25、9.0/24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip r
26、ule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to 61.138.17
27、4.0/24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip r
28、ule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to 61.138.18
29、9.0/24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip r
30、ule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to 61.139.14
31、0.0/24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip r
32、ule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to 61.139.15
33、5.0/24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip r
34、ule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to 61.139.17
35、2.0/24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip r
36、ule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to 61.139.18
37、7.0/24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /16 table cncip rule add to /24 table cncip rule add to /24 table cncip rul
38、e add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to 61.158.137.
39、0/24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rul
40、e add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to 61.158.152.
41、0/24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rul
42、e add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to 61.158.167.
43、0/24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rul
44、e add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to 61.158.182.
45、0/24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rul
46、e add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to 61.158.197.
47、0/24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rul
48、e add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to 61.158.212.
49、0/24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rul
50、e add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to 61.158.227.
51、0/24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rul
52、e add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to 61.158.242.
53、0/24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rul
54、e add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /2
55、4 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to 61
56、.161.17.0/24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip rule add to /24 table cncip
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2024年度广告发布合同详细范本
- 2024年度企业级社交媒体解决方案合同
- 2024年度健身中心运营承包合同:为期一年的健身中心管理权转让2篇
- 2024年度防水工程投标保证保险合同
- 二零二四年度光伏发电项目投资与建设服务合同
- 2024年度人力资源服务合同服务内容和人才需求2篇
- 二零二四年度环保要求与不锈钢加工定制合同
- 2024全新搭建雨棚合同下载3篇
- 桥梁基础合同范本
- 2024年度充电桩建设项目环境影响评价合同
- 工厂员工考勤制度范本
- 第三单元 资产阶级民主革命与中华民国的建立 教学设计 2024-2025学年部编版八年级历史上学期
- 英汉笔译智慧树知到答案2024年温州大学
- 2024年全国职业院校技能大赛高职组(智能节水系统设计与安装赛项)考试题库-下(多选、判断题)
- 2024信息咨询服务合同
- 2024新教科版一年级科学上册第二单元《我们自己》全部课件
- 2024至2030年中国岩土工程市场深度分析及发展趋势研究报告
- 双碳综合能源平台方案建设
- 2024年秋一年级上册8升国旗 公开课一等奖创新教学设计(表格式2课时)
- 【课件】纪念与象征-空间中的实体艺术+课件-高中美术人美版(2019)美术鉴赏
- DL∕T 5372-2017 水电水利工程金属结构与机电设备安装安全技术规程
评论
0/150
提交评论