打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
[Freeswitch-users] Lan redundancy
Steven Ayre steveayre at gmail.com 
Sat Jun 25 15:35:46 MSD 2011


bond0 becomes your single network interface. eth0/eth1 aren't used anylonger - they're still there but they're just slaves of bond0.That means you get a single IP on bond0 (eth0/eth1 don't have an IP) whichis the one FS/softphones would use.If you're planning to have two independant networks with eth0 on one andeth1 on the other that'll cause you problems... it's meant to provide theserver with two routes into the same network.Between devices on the LAN it'll be problematic - in active-backup onedevice will be active and the others disabled. There's no guarantee that allservers'll pick the same slave device though, so some might be on eth0 andothers on eth1 which'd mean they wouldn't be able to reach each other. My 2switches are connected together and use RSTP to avoid routing loops to avoidthat, which is why I mentioned it in the 1st email.For the routing to the WAN it'll mean different routers so different IPs,which'll drop calls with NAT on switchover, and force you to listen to bothpublic IPs on bond0 / FS if you're not using NAT which'll also mean droppedcalls on switching over.Our network setup is here: http://pastebin.freeswitch.org/16587, how youconnect to the WAN really will depend on your ISP/Data Centre though.-SteveOn 25 June 2011 11:55, Alessandro <a.luppi at seletech.com> wrote:> **> Very interesting,>> I was thinking to something similar.. I thought to create e third virtual> interface... So I'll have to use network bonding to all the pc in the> network...> The two networks will have switch/router (i think hircshmann) so the two> networks will be the specular image of the other. In the interface named> bond0 will be configured on the same network of the two network interface or> I have to create an virtual third network? On the softphone for the server> proxy I'll set the address of the interface bond0 of the server freeswitch> right?>> Thanks>> Alessandro Luppi>>> Il 25/06/2011 12:07, Steven Ayre ha scritto:>> The way I do this is to use ethernet bonding in active-backup mode:>> http://www.kernel.org/doc/Documentation/networking/bonding.txt> http://wiki.debian.org/Bonding>> You get a virtual network interface named bond0 which is assigned your IP.> This effectively replaces your eth0. That simplifies the configuration of> everything like FreeSWITCH since you then get a single IP to listen on. The> bonding driver monitors the slave devices (eth0,eth1,etc) and uses an active> one. If a device goes down it automatically switches over to the other.>> You can also have different profiles on different IPs, with a profile for> each device, but if a device fails any calls going to that IP will fail> because the signalling/media is still trying to go to that address. Bonding> avoids that problem.>> Bonding will probably be enough for you, but for some extra information my> setup is a little more complex than that... that there's redundancy on the> network too - 2 network switches each with 100MBit internet feeds from the> data centre, and interconnected with a 2Gbit trunk, running RSTP. Each> server has one device going to one switch and the other going to the 2nd. It> means that if any switch, device, or cable fails the whole thing will find> another route (even between switches via the data centre's switch if> necessary). A stacked switch would be better, but isn't currently within> budget.>> -Steve>>>>>> On 25 June 2011 10:10, Alessandro <a.luppi at seletech.com> wrote:>>>  Hi,>>>> I'm going to install freeswitch in a system with LAN redundancy>> (duplicated). All the pc have double LAN interfaces. How can I configure>> Freeswitch to work with this configuration? Actually in vars, the variable>> Domains has this value>>>> <X-PRE-PROCESS cmd="set" data="domain=$${local_ip_v4}"/>>>>>>> I have to set one ip of the two network interface? I need to set the>> sub-net mask? (example domain=192.168.2.101/255.255.255.0)>>>> Second question:>>>> All the PC with softphone will be connect at two LAN and the two LAN are>> on different Network. (Example one LAN is on network 192.168.2.0 and the>> other in the LAN 192.168.1.0).>> I bind the address of one of the two network to freeswitch.>> I will add the extension in the internal profile. How does freeswitch>> understand that an extension is in the local network? All the softphone>> should stay on the same network, right?>> What happens if an extension configured in the internal profile, try to>> contact FS from a different network?>>>> Best Regards>>>> Alessandro Luppi>>>> -->> Ing. Alessandro Luppi>> Software development>> Seletech srl>> Via Collodi 8, 20052 Monza (MI) - Italy>> Tel: +39.039.5962000 - Fax: +39.039.9716905>> email: a.luppi at seletech.com - Web: www.seletech.com   or   www.seletech.eu>>>>>> _______________________________________________>> Join us at ClueCon 2011, Aug 9-11, Chicago>> http://www.cluecon.com 877-7-4ACLUE>>>> FreeSWITCH-users mailing list>> FreeSWITCH-users at lists.freeswitch.org>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users>> http://www.freeswitch.org>>>>>> _______________________________________________> Join us at ClueCon 2011, Aug 9-11, Chicagohttp://www.cluecon.com 877-7-4ACLUE>> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org>>>> --> Ing. Alessandro Luppi> Software development> Seletech srl> Via Collodi 8, 20052 Monza (MI) - Italy> Tel: +39.039.5962000 - Fax: +39.039.9716905> email: a.luppi at seletech.com - Web: www.seletech.com   or   www.seletech.eu>>> _______________________________________________> Join us at ClueCon 2011, Aug 9-11, Chicago> http://www.cluecon.com 877-7-4ACLUE>> FreeSWITCH-users mailing list> FreeSWITCH-users at lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org>>-------------- next part --------------An HTML attachment was scrubbed...URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110625/9c78756a/attachment.html 


More information about the FreeSWITCH-users mailing list

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Linux Bonding (合併網卡) 實作
RedHat网络配置方法
Linux下的多网卡冗余实现方法
linux 单网卡绑定多IP
【网络】CentOS6.5下设置静态IP
linux中IP地址的配置
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服