网关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

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

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

UCloud:美国云服务器,洛杉矶节点大促,低至7元起/1个月

ucloud美国云服务器怎么样?ucloud是国内知名云计算品牌服务商家,目前推出全球多地机房的海外云服务器。UCloud主打的优势是海外多机房,目前正在进行的2021全球大促活动参与促销的云服务器机房就多达18个。UCloud新一代旗舰产品快杰云服务器已上线洛杉矶节点,覆盖北美和亚太地区,火热促销中, 首月低至7元,轻松体验具备优秀性能与极高性价比的快杰云服务器。点击进入:ucloud美国洛杉矶...

提速啦(900元/月),杭州BGP E5-2665/89*2 32核 48G 100G防御

提速啦的来历提速啦是 网站 本着“良心 便宜 稳定”的初衷 为小白用户避免被坑提速啦的市场定位提速啦主要代理市场稳定速度的云服务器产品,避免新手购买云服务器的时候众多商家不知道如何选择,妮妮云就帮你选择好了产品,无需承担购买风险,不用担心出现被跑路 被诈骗的情况。提速啦的售后保证提速啦退款 通过于合作商的友好协商,云服务器提供3天内全额退款,超过3天不退款 物理机部分支持当天全额退款提速啦提现 充...

网吧ip为你推荐
sourcegear请问高手这是什么“dynamsoft sourceanywhere for vss”,做项目的时候用的,我是新手不知道这是干什么。什么是电子邮件 什么是电子邮件快速美白好方法快速美白的好点子!?(不是晒黑的)依赖注入依赖注入是什么意思?网站运营网络运营具体做什么呢照片转手绘有没有一种软件是可以把一张照片变成手绘的图片,给推荐下镜像文件是什么什么是文件镜像?什么是镜像文件?网易公开课怎么下载怎么下载网易公开课里的视频 .......腾讯文章为什么最近腾讯网的文章评论都看不到开机滚动条电脑开机启动滚动条时间长怎么办?
独立ip虚拟主机 yaokan永久域名经常更换 bluevm 免费cdn加速 60g硬盘 directadmin 日志分析软件 鲜果阅读 debian7 论坛空间 最好的空间 骨干网络 52测评网 天互数据 帽子云 中国网通测速 移动服务器托管 数据库空间 广州服务器托管 数据湾 更多