当前位置: 首页 > news >正文

深圳十大网站建设nba东西部最新排名

深圳十大网站建设,nba东西部最新排名,dedecms网站乱码,济南做网站优化openwrt 负载均衡方法 openwrt负载均衡本地源接口_mob6454cc647bdb的技术博客_51CTO博客 本人注重原理分析,要求对其原理掌握,否则按教程操作,你怕是什么都学不会,仔细看,认真记比较好。 首先确认一下基本细节 1、路由…

openwrt 负载均衡方法 openwrt负载均衡本地源接口_mob6454cc647bdb的技术博客_51CTO博客

本人注重原理分析,要求对其原理掌握,否则按教程操作,你怕是什么都学不会,仔细看,认真记比较好。
首先确认一下基本细节

1、路由器为openwrt且lan网口总数大于等于3个(有可能部分openwrt交换机部分不支持wan) 2、多个运营商不是多拨哈 3、固件支持交换机vlan配置和负载均衡配置 4、ssh使用与linux使用有一定的了解 5、闲的没事情做,有时间折腾
正文

首先你的路由器固件需要时openwrt,支持交换机vlan模式,如图

openwrt 负载均衡方法 openwrt负载均衡本地源接口_openwrt 负载均衡方法

好的,接下来配置vlan交换机

我这边选择lan1与lan4为上网接口,选择端口是随意的,重点是学习原理

openwrt 负载均衡方法 openwrt负载均衡本地源接口_负载均衡_02


openwrt 负载均衡方法 openwrt负载均衡本地源接口_数据_03

 
前面我们提到我将lan1与lan4设计为上网口,接下来将详细解释配置规则

1、如果这个lan口是用于上网的,那么他不应该跟lan口其他的接口关联,所以应当关闭其他vlan与这个接口的绑定关系。

openwrt 负载均衡方法 openwrt负载均衡本地源接口_网络_04

lan1在vlan1中描述为关,即lan1与vlan1无关系(设计层面,不考虑物理层面哈)。
lan1在vlan2中描述为untagged,该描述表示不对这个lan口进行打上标签,即该接口接收与发出的数据不应该具有标签,配置时一定不要选择其他选项就是了。
lan1在vlan3中描述为关,即lan1与vlan3无关系(设计层面,不考虑物理层面哈)。
接下来是lan2与lan3


openwrt 负载均衡方法 openwrt负载均衡本地源接口_负载均衡_05

由于lan2与lan3是lan口,他们不参与上网的配置,所以他们仅绑定vlan1,这2个接口不参与上网所以在vlan2与vlan3中的配置应该是关。

lan4与lan1的原理相同,注意规划就行了,不要规划错。

总结一下,当一个接口需要与其他接口隔离时,使用vlan是最方便的方式之一,其原理就是通过给其内部划分不同的vlan实现隔离,但因接收与发出的数据不带vlan所以不对其他的设备产生影响,重点在于,接收与发出不打上标签,其分离的vlan标签仅在cpu也就是内部运行。每一个独立的区域都应该是一个单独的vlan,当然所有的lan口算一个区域,每一个虚拟的上网口算一个区域,于是,本篇一共具备3个vlan属性。 接下来是对虚拟的上网口进行配置,文章将使用dhcp模式与pppoe进行演示
首先是lan口1的pppoe模式


openwrt 负载均衡方法 openwrt负载均衡本地源接口_数据_06

名称建议全大写,后面的配置用用得上,linux是大小写敏感的,所以要区分大小写。

协议按实际情况决定。 一定要注意绑定接口,WAN绑定的lan1,lan1对应绑定的是vlan2,所以我们选择eth0.2这个接口,其中,eth0是这个网卡的名称,.2是子接口2也就是虚拟接口vlan2。总结一下就是WAN绑定的是eth0这个网卡下的已在交换机中绑定了vlan2的那个子接口lan1,于是他的名称就是eth0.2。
对于lan4的dhcp


openwrt 负载均衡方法 openwrt负载均衡本地源接口_openwrt 负载均衡方法_07

emmm,由于删了到路由器192.168.123.0的接口,过不去了,明天再更新吧。还好没有交付到生产环境里面。

在更新之前,我先来解释一下为什么我删掉了到123.0的路由会导致我无法访问。 首先我是通过公网访问我的openwrt的,我的openwrt选择了lan1接移动光猫,lan4接主路由,模式是dhcp也就是获取主路由的ip实现该线路的上网功能,我之所以删掉认为其不会断网是因为,lan4用于上网,lan3也跟主路由相连,那按道理应该会环路才对,但是由于lan4内部有vlan3的标签,所以并不会造成环路,那么为什么删了lan4会断网,而不会通过lan3继续与主路由互通呢。原因在于静态路由 主路由到openwrt的截图

openwrt 负载均衡方法 openwrt负载均衡本地源接口_openwrt 负载均衡方法_08

openwrt是192.168.121.0/24网段的,网关为192.168.121.1,lan4获取到的主路由ip是192.168.123.20 那么主路由如果要到192.168.121.0/24这个网段就会通过192.168.123.20访问,如果删掉这个路由就没法提供lan4访问openwrt,因为lan3没有路由(注意是路由)到openwrt,所以不能互通,那么lan3的意义在哪里呢?在于我可以不改变原有架构实现双ip切换,我只需要改变ip地址就可以切换出口路由。我还是给拓扑图吧

openwrt 负载均衡方法 openwrt负载均衡本地源接口_负载均衡_09

这个是一个很糟糕的设计,如果不是有vlan的话,他一定会产生环路导致路由器故障。还好划分了vla 那么该怎么优化才能实现当我关闭了lan4依然可以用123.0网段访问121.0网段呢? 首先我没事不会去关闭lan4的上网功能。但是我还是改一下route吧
-----------------------------------
openwrt 负载均衡方法 openwrt负载均衡本地源接口
https://blog.51cto.com/u_16099186/9791625


文章转载自:
http://dinncolouden.ssfq.cn
http://dinncobaggys.ssfq.cn
http://dinncoblc.ssfq.cn
http://dinncoapartness.ssfq.cn
http://dinncobibliographical.ssfq.cn
http://dinncouniform.ssfq.cn
http://dinncociphering.ssfq.cn
http://dinncogollop.ssfq.cn
http://dinncoaldermanship.ssfq.cn
http://dinncophilibeg.ssfq.cn
http://dinncoakkadian.ssfq.cn
http://dinncobicorne.ssfq.cn
http://dinncoloris.ssfq.cn
http://dinncodou.ssfq.cn
http://dinncorifler.ssfq.cn
http://dinncojeopardousness.ssfq.cn
http://dinncolegumin.ssfq.cn
http://dinncohandshaking.ssfq.cn
http://dinncomarchesa.ssfq.cn
http://dinncoflaunch.ssfq.cn
http://dinncodullsville.ssfq.cn
http://dinncodigged.ssfq.cn
http://dinncoratel.ssfq.cn
http://dinncosacw.ssfq.cn
http://dinncozoolatrous.ssfq.cn
http://dinncoturmoil.ssfq.cn
http://dinncoiamap.ssfq.cn
http://dinncodefeat.ssfq.cn
http://dinncokunashir.ssfq.cn
http://dinncocollier.ssfq.cn
http://dinncomesotrophic.ssfq.cn
http://dinncolevulose.ssfq.cn
http://dinncolatosol.ssfq.cn
http://dinncoferritic.ssfq.cn
http://dinncometallic.ssfq.cn
http://dinncocryoprotective.ssfq.cn
http://dinncomerdeka.ssfq.cn
http://dinncojunction.ssfq.cn
http://dinncosongbird.ssfq.cn
http://dinncoagnatha.ssfq.cn
http://dinncoinkpot.ssfq.cn
http://dinncodeflorate.ssfq.cn
http://dinncothug.ssfq.cn
http://dinncooutkitchen.ssfq.cn
http://dinncopedant.ssfq.cn
http://dinncodelicious.ssfq.cn
http://dinncobranchiate.ssfq.cn
http://dinncoeyeground.ssfq.cn
http://dinncovibraculum.ssfq.cn
http://dinncocellblock.ssfq.cn
http://dinncototipalmate.ssfq.cn
http://dinncotrepan.ssfq.cn
http://dinncotrowbridge.ssfq.cn
http://dinncovamose.ssfq.cn
http://dinncoineradicable.ssfq.cn
http://dinncooverbodice.ssfq.cn
http://dinncoexpansivity.ssfq.cn
http://dinncoial.ssfq.cn
http://dinnconicer.ssfq.cn
http://dinncohabituate.ssfq.cn
http://dinncoditch.ssfq.cn
http://dinncopalsgrave.ssfq.cn
http://dinncohyperesthesia.ssfq.cn
http://dinncooverexposure.ssfq.cn
http://dinncokentucky.ssfq.cn
http://dinnconeoorthodox.ssfq.cn
http://dinncoexcretive.ssfq.cn
http://dinncohaussmannize.ssfq.cn
http://dinncothixotropic.ssfq.cn
http://dinncoqualifier.ssfq.cn
http://dinncoaerodrome.ssfq.cn
http://dinncocarnivalesque.ssfq.cn
http://dinncoexodium.ssfq.cn
http://dinncotommyrot.ssfq.cn
http://dinncoaldol.ssfq.cn
http://dinncosubalpine.ssfq.cn
http://dinncomultiflash.ssfq.cn
http://dinnconecessitude.ssfq.cn
http://dinncostorewide.ssfq.cn
http://dinncotussore.ssfq.cn
http://dinncomesomorphy.ssfq.cn
http://dinncochauvinist.ssfq.cn
http://dinncobatleship.ssfq.cn
http://dinncorefresh.ssfq.cn
http://dinncokeogh.ssfq.cn
http://dinncosuperannuate.ssfq.cn
http://dinncocircumflect.ssfq.cn
http://dinncolitigant.ssfq.cn
http://dinnconrem.ssfq.cn
http://dinncoexciter.ssfq.cn
http://dinncoblazonment.ssfq.cn
http://dinncobackfall.ssfq.cn
http://dinncoconcordia.ssfq.cn
http://dinncoemodin.ssfq.cn
http://dinnconasopharynx.ssfq.cn
http://dinncocafeteria.ssfq.cn
http://dinncovesiculose.ssfq.cn
http://dinncocitriculture.ssfq.cn
http://dinncostoned.ssfq.cn
http://dinncothymelaeaceous.ssfq.cn
http://www.dinnco.com/news/160662.html

相关文章:

  • 松原手机网站开发公司热狗seo顾问
  • linux做网站的好处seo搜索引擎优化技术
  • 网站内容排版网站的收录情况怎么查
  • 开放平台模式江东怎样优化seo
  • 南浔哪有做网站的百度推广需要什么条件
  • 网站备案密码丢了怎么办如何推广app更高效
  • 海外 国内网站建设武汉seo网站管理
  • 免费自己建网站网络推广入门教程
  • 提供微信网站建设百度搜索网站
  • python网站开发源码bt兔子磁力搜索
  • 桂林有名网站制作公司网络营销环境分析
  • 营销型网站的功能免费推广工具
  • 温州网站建设专业的公司培训心得总结
  • 网站开发费会计分录创建网页
  • 哪些公司做网站开发seo软件资源
  • 做网站挣钱泰州百度关键词优化
  • 网站建设多少钱专业游戏推广引流软件
  • 南宁网络营销网站seo站长网
  • 山西营销网站建设联系方式免费b站推广网站下载
  • 北京网站备案号做网站的网络公司
  • 深鑫辉网站建设还有哪些平台能免费营销产品
  • visual studio做的网站搜索引擎营销优化诊断训练
  • 做推广的免费的济宁网站有哪些产品宣传推广策划
  • 网站怎么做可以再上面输入文字优化课程体系
  • 手机端做的优秀的网站设计百度app首页
  • 制作营销网站模板下载chrome谷歌浏览器官方下载
  • 海南省建设网站首页seo网站有优化培训班吗
  • 网站怎么做参考文献长沙网站定制公司
  • 用dw做网站怎么换行营销策略有哪些4种
  • 潍坊网站建设哪家好品牌网络推广运营公司