openbsd下的trunk模式和配置.
2009-05-13 03:44:06来源:未知 阅读 ()
openbsd支持trunk的三种模式: roundrobin (the de-fault), failover, none.
trunk的配置 可以参考 man trunk.
喜欢它的文档.有必要养成看文档的习惯, 即使是E文.
我的设备有4块网卡 fxp0,fxp1,fxp2,fxp3
前两块做adsl负载均衡,那么后两块网卡做 failover.
有条件试试, 脚本要小改一下.本质问题就是pf是否支持trunk网口 ^_^
#man trunk
TRUNK(4) OpenBSD Programmer's Manual TRUNK(4)
NAME
trunk - link aggregation and link failover interface
SYNOPSIS
pseudo-device trunk [count]
DESCRIPTION
The trunk interface allows aggregation of multiple network interfaces as
one virtual trunk interface.
A trunk interface can be created using the ifconfig trunkN create com-
mand. It can use different link aggregation protocols specified using
the trunkproto proto option. Child interfaces can be added using the
trunkport child-iface option and removed using the -trunkport child-iface
option.
The driver currently supports the trunk protocols roundrobin (the de-
fault), failover, and none. The roundrobin protocol distributes outgoing
traffic using a round-robin scheduler through all active ports; the
failover protocol sends outgoing traffic only through the master or the
next active port. Both protocols receive traffic from all attached
ports. The interface link state is used to validate if the port is ac-
tive or not. The none protocol is intended to do nothing: it disables
any traffic without disabling the trunk interface itself.
The configuration can be done at runtime or by setting up a
hostname.if(5) configuration file for netstart(8).
EXAMPLES
Create a simple round robin trunk with two bge(4) Gigabit Ethernet inter-
faces:
# ifconfig bge0 up
# ifconfig bge1 up
# ifconfig trunk0 trunkport bge0 trunkport bge1 \
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
上一篇:试着做个双adsl负载均衡
下一篇:Tomcat+JSP经典配置实例
- 有没有FreeBSD内核配置文件的中文版解释文档呢? 2009-05-13
- freebsd的目录结构 2009-05-13
- nfs配置 2009-05-13
- 【转载】freebsd sysctl.conf配置说明 2009-05-13
- FreeBSD与VIA C3的启动问题 2009-05-13
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash