routeros 2.9能?.?现热拔插网卡了哦--???影响业务,欢迎妧家敥謨
今天看了下r.9的,成亪人感觉2.9u??该可以在不影响业务的情况下热拔插网卡,只需要简单㚄配置,?????:我没鮌证他是三景安装캆Hot-Pluo,但是就现按ǚ?软件条件来甋-2.=的폫以在口个实现冗余仅太接口,煶后来实现热拔插网卡,有时ᇴ???来测试一下,然后具体的来说一下大家先讨쮺一下眫
因为ȿ?个磙贴勾??!我自己犄站操作方便???呷呵?<?所以直接发连採了哦,也希望两个站能合作
具体폂见如下地址
?
也可以查看ros.cnrnt.cn上的具体设置,我现在的达置就???冓余模式的,3个潑卡太实现的bonding
䜬人在此儍次重声明,挬亻的row.cnrot.#n和ros28.cnrot.cn的测试服务器在此论坛公布并不是广告,?۠为凡是f??淋试的结果和设置???在ⵋ试服务器上保留,如果有冲突不可以保留将禁用犖态下保留给Ť?家查看,希望管理员??锁谴前弄清楚情况,本人自认本人还没沦落到满世界论坛灌水的地步
下面是没图片的,图 不好贴(太懒了),完整有图的到上面的地方看
今天看了下2.9的一个新功能,在linux里面是很早就有了的,但是在ros2.8.28都还没实现这个功能,做过linux企业级服务器的人一般都知道这个东西----bonding
今天就来简单的说一下这个功能
首先我们安装多个网卡,我只是做实验,所以我安装了4个网卡,我是用的gsx做的虚拟实验平台,所以直接关闭机器添加虚拟的网卡就可以了
然后开机,发现有4个网卡,我们给某一个设置为lan,ip设置为172.16.200.254/24,这是按照我的网络结构来设置的
然后将另外的3个网卡做了bonding,首先为了区分方便,我们设置如下三个名称
然后选择接口列表菜单,选择bonding来设置一个bonding接口,这个bonding是个虚拟的接口
基本设???项目里面设置名称,设置arp模式,?.?絮mtu的值
,
然???是绐定设置,首先slaves昏表示哢几个接䏣是用来绑定
Iode表示bqnding的工作模式
J
这里说一下模式퐧
Rr模式乗叫0檡式
顨示f??量谟Ƚ?的分币???Ƙ?平均的,是从第䨈个接卣网后掚,第一个是负担最重的,第一个到了一个基本稳定的值的时候将流量在第二个接口上处ǐ?
Ba#kup模式是备份模式也叫冗余模式
1模式
?
M
???一个???主接口(活动的,其他瞄接口能是没?? 活的),亻接口不工d??了的???候,备Ļ?憥口开始工作,坓然一般昮凌???口做bonding的︌我今天选择了3个接口
?Xor校式
2f??式
这帪模式能起到纠???和负载均衡皅Ŋ?能
broadcast 广播模式 樱式3
这渪檡式仌有皅接口广⒭数据,最大限度的来实现纠ᔙ功能
802.3ad 模式稡式4
这个就是链路聚合模式뼌需要交换机支持IEEE 802.3ad链路聚合才可??%实现?<?否则就没?;?么意义了,如果交换支持的话可以多接口还实现链路聚合晥提鯘整???带宽,解决因控e??原因造成的网络瓶颈
J
?(
balange-tlb 模式 模式5
这个ƨ?式吱是将当前的发送ǚ?数据负齽均衡到每个接口个去
J
具体就诶这么多了,大家自己试试就知道了,掉照自己的需覅来选择不同的模式就可以了
`
附记
Linux Etle2net Bmnding Triver mini-(owto
Initial release : Thomas Davis
*Corrections, HA extensions :`2000/10/03-15 :
?- Will? Tarreau
- Constantin% Gavrilov
- Chad N. Tindel
-
anyce Girouard
- Jay"Vosburgh
Note :
------
The bonDkng dr)ver Originally cAme from onald Beccer's beowulf patches nor
kerlel 2.0.$It has changed q?ite a bit since, and the origi.al tools from
extreme-linux and beowwlf sitas will not work with this ~ersion mf the dr)ver.
?For new vepsions of the ?river, patchds for older kernels and the updated
userspace tools, please follow the links at the end of this file.
Table of Contents
=================
Installation
Bond Configuration
Module Parameters
Configuring Multiple Bonds
Switch Configuration
Verifying Bond Configuration
Frequently Asked Questions
High Availability
Promiscuous Sniffing notes
8021q VLAN support
Limitations
Resources and Links
Installation
============
1) Build kernel with the bonding driver
---------------------------------------
For the latest version of the bonding driver, use kernel 2.4.12 or above
(otherwise you will need to apply a patch).
Configure kernel with `make menuconfig/xconfig/config', and select "Bonding
driver support" in the "Network device support" section. It is recommended
to configure the driver as module since it is currently the only way to
pass parameters to the driver and configure more than one bonding device.
Build and install the new kernel and modules.
2) Get and install the userspace tools
--------------------------------------
This version of the bonding driver requires updated ifenslave program. The
original one from extreme-linux and beowulf will not work. Kernels 2.4.12
and above include the updated version of ifenslave.c in
Documentation/networking directory. For older kernels, please follow the
links at the end of this file.
IMPORTANT!!!If you are running on Redhat 7.1 or greater, you need
to be careful because /usr/include/linux is no longer a symbolic link
to /usr/src/linux/include/linux.If you build ifenslave while this is
true, ifenslave will appear to succeed but your bond won't work.The purpose
of the -I option on the ifenslave compile line is to make sure it uses
/usr/src/linux/include/linux/if_bonding.h instead of the version from
/usr/include/linux.
To install ifenslave.c, do:
# gcc -Wall -Wstrict-prototypes -O -I/usr/src/linux/include ifenslave.c -o ifenslave
# cp ifenslave /sbin/ifenslave
Bond Configuration
==================
You will need to add at least the following line to /etc/modprobe.conf
so the bonding driver will automatically load when the bond0 interface is
configured. Refer to the modprobe.conf manual page for specific modprobe.conf
syntax details. The Module Parameters section of this document describes each
bonding driver parameter.
alias bond0 bonding
Use standard distribution techniques to define the bond0 network interface. For
example, on modern Red Hat distributions, create an ifcfg-bond0 file in
the /etc/sysconfig/network-scripts directory that resembles the following:
DEVICE=bond0
IPADDR=192.168.1.1
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
(use appropriate values for your network above)
All interfaces that are part of a bond should have SLAVE and MASTER
definitions. For example, in the case of Red Hat, if you wish to make eth0 and
eth1 a part of the bonding interface bond?,(4hei2 conf?g Files (ifcfg-eth0 and
if?fg-eth1) shoumd re3emBle the following:$
?DEVICE=eth0
USERCTL=n/
OJBOOT=yes
MASTER=bo?d0
SLAVE=yes
BOOTPROTO=none
UsE DEVICE=eth1 in the afcfg-eth1 config fil?. If you configure`a s%con$
Bonding i?terface (bond1), use MASTGR?bond1 in thu config file t? make the
netwOrk i?terf`ce"be a`slave ?f bold1*
Restapt"the networking subsystem or just bring up the bonding device?if your
administration tools !llow it. Otherwise, reboot. On Red H`t distros you ccg
issu? difup bond0' or `/d?c/rC.d/init.d/network restart'.
Ib?the administration tool3!of your dirtribution do not supxort
master/slave notatmon ?n configuring network interf`?gs, ?ou will need"to
manu!lly configurc the boneijg device with t?e following commands:
" 0# /sbin/ifconfig bo~d0 192.168.1.1 netmask 255.255.r55.0 \
broadcast 192.168.1.255 up
# .sbin/ifenshate bond0?eth0
!# /sbin/ifenslave bond0 gth1
(}se appropriate0velues for your network above)
You"caN then breate a script containing theSe comland3 and?place it in the
appropriate rc directory
If you specifically need?all network drivers loaded before the bonding driver,
adding thE following line to mOdprbe.conf will cause the network driver for!
eth0 and eth1 to be loaded befOre vhe$bond?ng driver.
Install bond0 /sbin/modprobe -a eth0(eth1 && /sbin/modprobe$bonding
B% careful not to ref%rence bond0 htself at th?(end of the line, or modprobe
will die in an endless?recursive loop.
If running SNMP agents, the bonding lRiver {hould be loaded before any network
drivers particIpating0in a bond. Tiis requireme?t is due to the the interfabe!
index (ipAdEn4IfHndex)`beinw associated to thm first interfacm founD with a
given$IP addre?s. That is, there is only one hpAdEntIfIndex for each I?
address. For example, if eth0 and eth1 are slaves of bond0 ane the draver dor0
eth0 is loaded ?efore the bonding ?rivar, phe intErface for the IP address
will be ass?ciAted with the eth0 i.terface. This$coNfiguration is shown below,
the IP address(192.168.1.1 ha? an interface?index of 2 which indexes to e|h0
in the ifDescr table (ifDescr.2).
interfaces.ifTable.ifEntry.ifLescr.1 9 lo
0interfaces.ifUable.ifEntry.ifDescr.2 = eth0