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

提速啦母鸡 E5 128G 61IP 1200元

提速啦(www.tisula.com)是赣州王成璟网络科技有限公司旗下云服务器品牌,目前拥有在籍员工40人左右,社保在籍员工30人+,是正规的国内拥有IDC ICP ISP CDN 云牌照资质商家,2018-2021年连续4年获得CTG机房顶级金牌代理商荣誉 2021年赣州市于都县创业大赛三等奖,2020年于都电子商务示范企业,2021年于都县电子商务融合推广大使。资源优势介绍:Ceranetwo...

GigsGigsCloud($26/年)KVM-1GB/15G SSD/2TB/洛杉矶机房

GigsGigsCloud新上了洛杉矶机房国际版线路VPS,基于KVM架构,采用SSD硬盘,年付最低26美元起。这是一家成立于2015年的马来西亚主机商,提供VPS主机和独立服务器租用,数据中心包括美国洛杉矶、中国香港、新加坡、马来西亚和日本等。商家VPS主机基于KVM架构,所选均为国内直连或者优化线路,比如洛杉矶机房有CN2 GIA、AS9929或者高防线路等。下面列出这款年付VPS主机配置信息...

PacificRack(年付低至19美元),夏季促销PR-M系列和多IP站群VPS主机

这几天有几个网友询问到是否有Windows VPS主机便宜的VPS主机商。原本他们是在Linode、Vultr主机商挂载DD安装Windows系统的,有的商家支持自定义WIN镜像,但是这些操作起来特别效率低下,每次安装一个Windows系统需要一两个小时,所以如果能找到比较合适的自带Windows系统的服务器那最好不过。这不看到PacificRack商家有提供夏季促销活动,其中包括年付便宜套餐的P...

网吧ip为你推荐
google地球打不开谷歌地球 打不开怎么办 急啊~金山杀毒怎么样金山杀毒好吗百度手写百度如何手写:不兼容WIN7 64位系统与某些软件不兼容怎么办?xv播放器下载xv播放器怎么下载?人人逛街人人逛街评论怎么不显示链接了?好像4月28日就不能显示了。是什么原因呢?免费免费建站电脑上有真正免费的网站吗??idc前线求电影敢死队电影里的歌曲!mate8价格手机华为mat8售价多少虚拟专用网intranet,extranet,虚拟专用网与internet有什么区别与联系
厦门域名注册 租服务器价格 服务器配置技术网 59.99美元 mediafire下载工具 圣诞节促销 元旦促销 php空间申请 七夕促销 免费活动 微软服务器操作系统 支持外链的相册 美国独立日 空间登陆首页 免费的asp空间 xuni 空间服务器 万网注册 黑科云 asp空间 更多