linux 下有实现网桥的功能 .brctl .
linux 下有实现多网卡绑.定.的功能 bonding 建材
l.inux 下有mac转发代理 proxy_arp.
这些东西都可以实现类似交.换机端口的功能,请教各自的特点和.区别。 外汇
linux bridge
brctl ad.dbr my_bridge学习
brctl. addif m.y_bridge eth0(广告)
brct.l addif my_bri.dge eth1外贸
ifconfig eth0 0.0.0..0
ifconfig .eth1 0.0.0.0.
ifconfig my_br.idge xxx.xxx.xxx.xxx netmask xxx.xxx..xxx.xxx--------------彩票
复制代码
linux bond
modprobe.conf :. .
al.ias bond0 bonding.
ifcfg-bond0 :
DEVICE=bond0
BOO.TPROTO="static"--- 印刷
BROADCAST="xx.x.xxx.xxx.xx.x"--- 印刷
I.PADDR="xxx.xxx.xxx.xxx" 杀毒
NET.MASK="xxx.xxx.xxx.xxx".
NETW.ORK="xxx.xxx.xxx.xxx" 建材
MA.CADDR=xx:xx:xx:xx:xx:xx.
STAR.TMODE="onboot".
BONDING_MAST.ER="yes" 乙肝
BONDING_MODU.LE_OPTS="mod.e=5 miimon=50".
BONDING_SLAVE0="e.th0".
BONDING_SLA.VE1="eth1".
ONBOOT=yes
ifcfg-eth0 :
DEVICE=eth0
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
ifcfg-eth1 :
DEVICE=eth1
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
复制代码
arp_proxy
sysctl .-w net.ipv4.co.nf.all.proxy_arp=1--------------彩票
复制代码