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

网吧ip  时间:2021-03-02  阅读:()

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

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

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 TelecomIP

/ 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 anddynamic gateway, access to the gateway is ip->address in theinterface=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 gatewayof CNC is "CNC", and the standby gateway is "ADSL" (used whenswitching lines)

CNC gateway casually add anti ADSL drop line, the foot has beenautomatically 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 resourceoccupation 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 thecheck-gateway function to implement gateway detection andreduces the operation step.

Fix and add some new telecom and CNC addresses.

Six

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

(take the IP address dynamic (Network) gateway to modify thegateway 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 runstrong)

Now you can access Telecom, Telecom Access, CNC Netcom

7. after the automatic switching optical fibertelecommunications dropped into the ADSL line (by night)NetcomConfiguration / tool netwatch is used to monitor the on-off ofthe 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 notprohibiting YES from importing the script, but it is forbiddenand does not enable him

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

after the disable Netcom ADSL standby (single) routing, enableTelecom 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

RepriseHosting:$27.97/月-L5640,16G内存,1TB硬盘,10TB月流量,西雅图机房

RepriseHosting是成立于2012年的国外主机商,提供独立服务器租用和VPS主机等产品,数据中心在美国西雅图和拉斯维加斯机房。商家提供的独立服务器以较低的价格为主,目前针对西雅图机房部分独立服务器提供的优惠仍然有效,除了价格折扣外,还免费升级内存和带宽,商家支持使用支付宝或者PayPal、信用卡等付款方式。配置一 $27.97/月CPU:Intel Xeon L5640内存:16GB(原...

阿里云秋季促销活动 轻量云服务器2G5M配置新购年60元

已经有一段时间没有分享阿里云服务商的促销活动,主要原因在于他们以前的促销都仅限新用户,而且我们大部分人都已经有过账户基本上促销活动和我们无缘。即便老用户可选新产品购买,也是比较配置较高的,所以就懒得分享。这不看到有阿里云金秋活动,有不错的促销活动可以允许产品新购。即便我们是老用户,但是比如你没有购买过他们轻量服务器,也是可以享受优惠活动的。这次轻量服务器在金秋活动中力度折扣比较大,2G5M配置年付...

inux国外美老牌PhotonVPS月$2.5 ,Linux系统首月半价

PhotonVPS 服务商我们是不是已经很久没有见过?曾经也是相当的火爆的,我们中文习惯称作为饭桶VPS主机商。翻看之前的文章,在2015年之前也有较多商家的活动分享的,这几年由于服务商太多,乃至于有一些老牌的服务商都逐渐淡忘。这不有看到PhotonVPS商家发布促销活动。PhotonVPS 商家七月份推出首月半价Linux系统VPS主机,首月低至2.5美元,有洛杉矶、达拉斯、阿什本机房,除提供普...

网吧ip为你推荐
暴风影音怎么截图请问如何在暴风影音上截图vista系统重装怎样重装vista系统怎么在qq空间里添加背景音乐怎么在QQ空间里插入背景音乐??公章制作在WOLD里怎样制作公章网站运营刚创业的网站运营怎么做?http与https的区别https://和http://区别天天酷跑刷金币天天酷跑如何刷分刷金币?创维云电视功能创维电视怎么用,我买了个创维云电视,现在不知道怎么用手机往电视上传照片,谁能解答以下,虚拟专用网虚拟专用网适用于什么行业分词技术怎么在SEO中学会运用关键词分词技术
vps安全设置 uk2 韩国电信 42u标准机柜尺寸 win8.1企业版升级win10 国内加速器 howfile 1g内存 web服务器搭建 我的世界服务器ip 贵阳电信测速 cdn服务 葫芦机 新疆服务器 zcloud fatcow 最新优惠 优惠服务器 主机配置 免费免备案cdn 更多