Chinaunix首页 | 论坛 | 博客
  • 博客访问: 120159
  • 博文数量: 12
  • 博客积分: 369
  • 博客等级: 一等列兵
  • 技术积分: 600
  • 用 户 组: 普通用户
  • 注册时间: 2012-09-02 08:26
文章分类

全部博文(12)

文章存档

2013年(1)

2012年(11)

分类: 服务器与存储

2012-11-05 13:50:36


1, Netapp 网卡设定类别:
    a. single mode 通常2个接口作single mode,分别连接外部2台交换机,同一时刻只有一个端口有数据流.(NA自己的single mode冗余作用)
    b.multi mode  通常2个接口做multi mode,与外部1台或stack 2台交换机相连,同一时刻,2个端口都有数据流.(双端口线路冗余)
    c.lacp mode   通常2个或4个接口作multi mode 与外部1台或stack2台交换机相连接,同一时刻所有端口都有数据流.(双端口线路冗余)
    d.single与multi mode 混用,通常4个接口,可以先2,2multi 在做single mode,用于同外部两台交换机相连,统一时刻只有multi mode 的那2个端口有数据流.
    所以看出,如果条件允许,使用stack 交换机是最好不过,否这只能靠STP来冗余
lacp 的设定举例
NAS01> rdfile /etc/rc
#Regenerated by registry Sat Apr 28 16:53:19 CDT 2012
#Auto-generated by cifs setup Thu Mar  3 16:29:45 CST 2011
#Auto-generated by setup Thu Mar  3 03:25:47 GMT 2011
hostname NAS01
vif create lacp vifa -b ip e2a e2b e3a e3b                                                               #将NAS网络口使用lacp 协议绑定 使用标准802.3AD.
vlan create vifa 2 3                                                                                             #创建vlan
ifconfig vifa partner vifb                                                                                       #指定cluster partner vifb
ifconfig vifa-2 `hostname`-vifa-2 netmask 255.255.255.0 mtusize 9000 partner vifb-2  #指定vlan接口, ip(由hostname 中解析)子网掩码,MTU,partner 接口
ifconfig vifa-3 `hostname`-vifa-3 netmask 255.255.255.0 mtusize 9000 partner vifb-3
route add default 192.168.1.1                                                                             #添加默认路由
routed on                                                                                                         #开启路由功能
options dns.enable on
options dns.domainname gcn.mediatek.inc
options nis.enable on
options nis.domainname mcdswrd
savecore
 
single 与multi mode 的举例
NAS01> rdfile /etc/rc
#Regenerated by registry Mon Dec 05 13:02:51 CDT 2011
#Auto-generated by cifs setup Thu Mar  3 16:29:45 CST 2011
#Auto-generated by setup Thu Mar  3 03:25:47 GMT 2011
hostname NAS01
vif create multi vif2 -b ip e2b e2a                                                                            #将e2a,e2b 做成multi mode vif2      
vif create multi vif3 -b ip e3a e3b                                                                            #将e3a,e3b 做成multi mode vif3
vif create single vifa vif2 vif3                                                                                  #将vif2,vif3 做成single mode vifa
 
ifconfig vifa partner vifb                                                                                        #指定cluster partner vifb
vlan create vifa 2 3                                                                                              #创建vlan
ifconfig vifa-2 192.168.2.1 netmask 255.255.255.0 partner vifb-2                               #指定vlan接口, IP,子网掩码,MTU,partner 接口
ifconfig vifa-3 192.168.3.1 netmask 255.255.255.0 partner vifb-3
route add default 192.168.1.1 routed on
options dns.enable on
options dns.domainname gcn.mediatek.inc
options nis.enable on
options nis.domainname mcdswrd
savecore
阅读(1814) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~