网关ROS_网吧电信光纤固定IP网关 网通ADSL动态IP网关(双线)

双线双ip  时间:2021-01-13  阅读:()

ROS_网吧电信光纤固定IP网关网通ADSL动态IP网关(双线)Suitable for optical fiber with ADSL (zero dropped night can Telecom Netcom supplemented)

I am from the online tutorials, compared with the test, walked a lot of detours, and try to make the script simple and practical.

Telecommunications fiber optic data are as follows:

IP address: 111. 111. 111. 111/30

Gateway address: 111. 111. 111. 112

Network Name: CTC

CNC ADSL data:

Account number: ADSL

P as swor d: XXXXXX

Network Name: CNC

LAN data:

Routing intranet IP (intranet gateway) : 192. 168.0. 1/24Network Name: LAN

ROS installation (Baidu, yeah, everywhere)

Impl ementation

1, in/ip address configuration network IP, fiber optic Telecom IP

/ IP address

Add, address=192. 168.0. 1/24, interface=lan, comment=, "Lan""Add, address=111. 111. 111. 111/30, interface=ctc, comment=,"CTC""

2, configure the ADSL line

/interface pppoe-client configure ADSL dialing information.Let ADSL pull it up

/interface pppoe-client

Add, name=pppoe-out1, interface=cnc, user=adsl,password=xxxxxx

After ROS dial-up success, you will get ADSL dynamic IP and dynamic gateway, access to the gateway is ip->address in the interface=pppoe-out1 network entries.

For example, the dial up IP is the address gateway in

222.222.222.223 and the 222. 222.222. 221 in the network

3. configure IP camouflage (shared Internet access)

/ip, firewall, src-nat, add, action, masquerade

4. conf igure routing (Gateway)

Default Telecom gateway 111. 111. 111. 112

The gateway for marking telecommunication is "CTC". The gateway of CNC is "CNC", and the standby gateway is "ADSL" (used when switching lines)

CNC gateway casually add anti ADSL drop line, the foot has been automatically modified it

/ IP route

Add, dst-address=0.0.0.0/0, gateway=111. 111. 111. 112,comment=, "CTC""

Add, dst-address=0.0.0.0/0, gateway=222.222.222. 221,comment=, CNC, check-gateway=ping, rout ing-mark=cnc

Add, dst-address=0.0.0.0/0, gateway=222.222.222. 221,comment=, "ADSL", disable=yes

5. add CNC routing table.

Chengdu network (cnc1n.rsc download address:http://www.mikrotik.com.cn/down.asp in MikroTik RouterOS 2.9new telecommunications network script download)

The routing table is now more route rule add rules, the resource occupation is relatively small, previously added directly in /route requires each rule to enable the check-gateway function,repeat too much operation. Now only one gateway rule opens the check-gateway function to implement gateway detection and reduces the operation step.

Fix and add some new telecom and CNC addresses.

Six

Added ADSL to automatically switch the gateway' s task (to prevent ADSL from dropping scripts)

(take the IP address dynamic (Network) gateway to modify the gateway in IP route)

: local oldip

: local newip

Set newip, [/ip, address, [/ip, get, address, find, dynamic=yes,interface=pppoe-out 1] network]

Set, oldip, [/ip, route, get, [/ip, route, find, comment=cnc],gateway]

: if ($newip = = $oldip) do={

/ip, route, set, [/ip, route, f ind, comment=cnc] ,gateway=$newi p

}

Dynamic=yes (ADSL runs strong) dynamic=no (ADSL does not run strong)

Now you can access Telecom, Telecom Access, CNC Netcom

7. after the automatic switching optical fiber telecommunications dropped into the ADSL line (by night)Netcom Configuration / tool netwatch is used to monitor the on-off of the network

/ tool netwatch

Add, host=111. 111. 111. 112, timeout=1s, interval=1m,up-script=dxup, down-script=dxdown

Add the following script

Dxup (Telecom on line)

Dxdown (Telecom drop line)

Dxup (Telecom on line)

/ip, route, disable, [/ip, route, find, comment=adsl]/ip, route, enable, [/ip, route, f ind, comment=ctc]

/ip, route, enable, [/ip, route, f ind, comment=cnc]

Dxdown (Telecom drop line)

: local adslwg

: set, adslwg, [/ip, address, get, [/ip, address, f ind, ,dynamic=yes, interface=pppoe-out1] , network]

/ip, route, set, [/ip, route, f ind, comment=adsl],gateway=$adslwg

/ip, route, disable, [/ip, route, find, comment=ctc]

/ip, route, disable, [/ip, route, find, comment=cnc]

/ip, route, enable, [/ip, route, f ind, comment=adsl]

Enable enable disable disable (stop) remove removal

Disable=no enable disable=yes disable

The disable=no command means "no". "NO" stands for not prohibiting YES from importing the script, but it is forbidden and does not enable him

The principle of optical fiber and ADSL line switch is automatically disabled when the fiber dropped after routing and Netcom ADSL fiber-optic telecommunications shunting route,activate standby Netcom ADSL (single) (dynamic routing gateway script will automatically detect) . When the fiber recovery

after the disable Netcom ADSL standby (single) routing, enable Telecom and Netcom shunt the routing.

8. fill in DNS

The first method: IP--DNS--Settings, Primary, DNS, Tim Telecom,DNS, Seconday, DNS, Tim Netcom, the main DNS

Hit the hook on the Allow Remote Requests. If you don't hit it,it' s going to go wrong,

The client' s DNS fills the ROS intranet IP

Second methods:

Client preferred DNS Tim Telecom DNS

Spare DNS Tim Netcom DNS

Spinservers:美国独立服务器(圣何塞),$111/月

spinservers是Majestic Hosting Solutions,LLC旗下站点,主营美国独立服务器租用和Hybrid Dedicated等,spinservers这次提供的大硬盘、大内存服务器很多人很喜欢。TheServerStore自1994年以来,它是一家成熟的企业 IT 设备供应商,专门从事二手服务器和工作站业务,在德克萨斯州拥有40,000 平方英尺的仓库,库存中始终有数千台...

.asia域名是否适合做个人网站及.asia域名注册和续费成本

今天看到群里的老秦同学在布局自己的网站项目,这个同学还是比较奇怪的,他就喜欢用这些奇怪的域名。比如前几天看到有用.in域名,个人网站他用的.me域名不奇怪,这个还是常见的。今天看到他在做的一个范文网站的域名,居然用的是 .asia 后缀。问到其理由,是有不错好记的前缀。这里简单的搜索到.ASIA域名的新注册价格是有促销的,大约35元首年左右,续费大约是80元左右,这个成本算的话,比COM域名还贵。...

收到几个新商家投稿(HostMem,无忧云,青云互联,TTcloud,亚洲云端,趣米云),一起发布排名不分先后

7月份已经过去了一半,炎热的夏季已经来临了,主机圈也开始了大量的夏季促销攻势,近期收到一些商家投稿信息,提供欧美或者亚洲地区主机产品,价格优惠,这里做一个汇总,方便大家参考,排名不分先后,以邮件顺序,少部分因为促销具有一定的时效性,价格已经恢复故暂未列出。HostMem部落曾经分享过一次Hostmem的信息,这是一家提供动态云和经典云的国人VPS商家,其中动态云硬件按小时计费,流量按需使用;而经典...

双线双ip为你推荐
买虚拟主机买个虚拟主机美国免费主机有没有更好的免费主机,租服务器租个服务器?哪里租?域名注册查询怎么查看域名是否注册域名购买如何申请购买 永久域名天津虚拟主机在天津哪个地方能买到较好的价格又实惠还可以送货上门的虚拟主机!西安虚拟主机西部数码虚拟主机怎么样,西部数码云主机怎么样域名解析域名解析是什么意思啊?域名停靠域名停放是什么?二级域名什么叫一级 二级域名
深圳网站空间 中文域名注册 阿里云搜索 linode日本 webhostingpad 国内永久免费云服务器 谷歌香港 免费cdn加速 密码泄露 一点优惠网 地址大全 500m空间 域名转接 静态空间 免费美国空间 免费高速空间 如何安装服务器系统 独享主机 便宜空间 免费asp空间 更多