|
| 秋意正浓 回复于:2004-10-23 17:52:39
|
3.2. Linux
3.2.1. Broadcom 网卡
1. 先正确安装Broadcom 网卡
2. 在光盘中间linux目录下找到安装程序,复制到 redhad 下
3. 执行命令
rpm -i basplnx-{version}.src.{arch}.rpm
4. 编译驱动(8.0以上用rpmbuild命令)
% cd /usr/src/{redhat or packages}
% rpm -bb SPECS/basplnx.spec or rpmbuild -bb SPECS/basplnx.spec
5.安装新的RPM包
% rpm -i RPMS/i386/basplnx-{version}.{arch}.rpm
5. 加载驱动,完成安装
% insmod basp
6. 配置之前请确认/etc/sysconfig/network-scripts目录下每个网卡都有如下属性,文件为ifcfg-eth(*)
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
7.拷贝例子配置文件"/etc/basp/samples" 目录到 "/etc/basp" 目录
修改配置文件确定teaming 类型
TEAM_ID: this number uniquely identifies a team
TEAM_TYPE: 0 = SLB, 1 = Generic Trunking/GEC/FEC, 2 = 802.3ad
TEAM_NAME: ascii name of the team
TEAM_PAx_NAME: ascii name of the physical interface x, where x can be 0 to 7
TEAM_PAx_ROLE: role of the physical interface x 0 = Primary, 1 = Hot-standby.This field must be 0 for Generic Trunking/GEC/FEC team.
TEAM_VAx_NAME: ascii name of the virtual interface x, where x can be 0 to 63
TEAM_VAx_VLAN: 802.1Q VLAN ID of the virtual interface x.For untagged virtual interface, i.e., without VLAN enable, set it to 0. The valid VLAN ID can be 0 to 4094.
TEAM_VAx_IP: IP address of the virtual interface x. The format should be aa.bb.cc.dd.
TEAM_VAx_NETMASK: Subnet mask of the virtual interface x. The format should mm.nn.oo.pp
8.启动teaming 程序
% /etc/init.d/basp start
|
| 秋意正浓 回复于:2004-10-23 17:58:29
|
3.2.2. Intel 网卡
1. 以 root身份登陆
2. Copy iANS-x.x.x.tar.gz 一个目录下(本文件可以在光盘中linux目录下找到)
3. tar xzf iANS-x.x.x.tar.gz 解压缩
4. 进入 iANS-x.x.x/src 目录
5. 运行make编译文件
6. 运行make install 完成安装
7. 运行ianstool来配置teaming,出现菜单如下
1) Adding a team
2) Deleting an existing team
3) Viewing an existing team’s status
4) Configuring an existing team’s topology
5) Saving the current topology
或者可以通过以下方法手动配置teaming
用ifconfig 把所有网卡down掉 #ifconfig ethx down
调用模块#insmod ians
用ianscfg 命令配置teaming,具体命令格式参考man
#man ianscfg
激活teaming
#ifconfig <vadapter_name> <IPaddr> [netmask <NETMASK>] [broadcast <BROADCAST>]
用ianscfg命令保存teaming配置
如果想每一次重新起动都自动运行,用如下命令,调用上一部保存的配置文件
ianscfg –b [-f <file name>]
编辑 /etc/sysconfig/network-scripts里面的网络文件ifcfg-<vadapter_name >
使得文件中包含如下内容
DEVICE="<vadapter_name>"
BOOTPROTO="none"
ONBOOT="yes"
IPADDR="<IP_address>"
NETMASK="<netmask>"
配置实例
modules.conf
#alias eth0 eepro100
#alias eth1 eepro100
#alias eth2 eepro100
alias eth0 e100
alias eth1 e100
alias eth2 e100
alias parport_lowlevel parport_pc
alias scsi_hostadapter aic7xxx
Script for Setting up AFT Mode with VLANs: (two PRO/100 adapters)
insmod e100
insmod ians
ianscfg -a -t team1 -M AFT -V
ianscfg -at team1 -m eth0 -p primary
ianscfg -at team1 -m eth1 -p secondary
ianscfg -at team1 -v vadapt1 -i 10
ianscfg -at team1 -v vadapt2 -i 15
ianscfg -c team1
ianscfg -s
ifconfig vadapt1 192.168.1.1 netmask 255.255.255.0
ifconfig vadapt2 192.168.2.1 netmask 255.255.255.0
|
| 秋意正浓 回复于:2004-10-23 17:59:13
|
4. 相关资源
1. 从哪里可以得到broadcom的光盘
ftp://ftp.software.ibm.com/pc/pccbbs/options/v678-cd.exe
2. 从哪里可以得到Intel nic 的光盘
ftp://ftp.software.ibm.com/pc/pccbbs/options/v82-cd.exe
4. 访问Broadcom网址
http://www.broadcom.com
5. 访问Intel 网址
http://www.intel.com
5. 注释
1, 可以是服务器集成的和后添加的网卡,也可以是不通生产商生产的网卡
2, 有关IP地址的说明请参考TCP/IP协议有关解释
3, 本文档如果没有特殊说明都是针对Broadcom网卡的配置
4, 网卡的物理地址,可以通过ipconfig /all (windows) 或者ifconfig –a (linux)查看
5, 通过交换机内部的操作系统来配置,如Cisco 的IOS系统,可以通过串口线,或者网络telnet命令登陆交换机的操作系统
|
| han_xu 回复于:2004-10-24 00:34:13
|
好东东,以前只知道有这个东东,现在好了看如此的详细说明,就差没有实物了!
|
| cnriver 回复于:2004-10-25 20:03:04
|
千兆电口很普及,目前很多笔记本就是千兆的。
而且网卡 做冗余,意义也不大!
个人意见,仅供参考。
|
| 秋意正浓 回复于:2004-10-26 00:04:46
|
[quote:09cc5ec9b8="cnriver"]千兆电口很普及,目前很多笔记本就是千兆的。
而且网卡 做冗余,意义也不大!
个人意见,仅供参考。[/quote:09cc5ec9b8]
网卡冗余主要是用于服务器上,PC和笔记本就没有必要了。
|
| cnriver 回复于:2004-10-26 12:57:29
|
服务器吗,都会用成熟、稳定的产品,一般都做cluster的。
|
| 秋意正浓 回复于:2004-10-26 17:19:55
|
[quote:3dc6a09e78="cnriver"]服务器吗,都会用成熟、稳定的产品,一般都做cluster的。[/quote:3dc6a09e78]
cluster不会起到负载均衡的作用。
而且在一台服务器上双网卡做冗余或者负载均衡,在本地又起了一层保护。 :em03:
|
| 狼寅 回复于:2004-10-28 11:18:15
|
有搞头,有机会我也练练!!!
谢了
|
| zhangyan_ou 回复于:2004-10-31 18:14:21
|
Novell下配置网络(intel)
load ce1000 slot=1 frame=ethernet_802.2 name=ce1000_1_e82
load ce1000 slot=2 frame=ethernet_802.2 name=ce1000_2_e82
load ians frame=ethernet_802.2 name=ans_e82
bind ians ce1000_1_e82
bind ians ce1000_2_e82
load ians commit probes=on mode=aft
bind ipx ans_e82 net=1
|
| ghg123456 回复于:2005-01-06 20:25:49
|
老大那个程序目前ibm不提供了,我们那里下载啊
|
| dindy 回复于:2005-01-06 21:17:09
|
对我是新事物,学习中
|
| nopalh 回复于:2005-01-06 22:12:31
|
很实用
|
| shimu 回复于:2005-01-07 08:52:01
|
[quote:dc98a39075="cnriver"]服务器吗,都会用成熟、稳定的产品,一般都做cluster的。[/quote:dc98a39075]
一般的cluster象sun cluster ,ibm hacmp都要做类teaming的 :)
|
| ghhbswhszx 回复于:2005-02-12 05:02:01
|
不错~!~~!支持~!
先收
|
| 河外星系 回复于:2005-03-21 14:34:53
|
ibm基于broadcom NetXtreme 网卡的软件CD
其中有broadcom advanced control suite2!!
地址:http://www-900.ibm.com/cn/support/download/driver/detail?DocId=FROG-66K67V
|
| keyinwind 回复于:2005-04-05 13:44:09
|
我就是在我们的刀片服务器上每个服务刀片上用team功能,只为了增大带宽,在windows下使用basp的team很容易,下了那个软件安装后建立team后,就显示只有一个NIC了,且是1st NIC的MAC address,但是在linux下也按照readme上说的make then install ,然后按照configure的说明配置了那个script file,就是用的samples里的team-gec文件,根据实际我将eth0和eth1外加一个sw0的虚拟if做成一个team, finally /etc/init.d/basp start了,lsmod也看到basp了,ifconfig也确实看到eth0和eth1都变成了同一个MAC地址,这时只有一个接口可用了,另一个显示未连接,连接的那个的IP是以前eth0的那个,以为这样就成功,但是却发现根本ping 不通啊......
之后只能stop掉basp,此时两个接口都显示未连接,于是重新连接,后还是恢复以前的样子,但是再尝试做team还是一样,显示确实共用一个MAC地址,却怎么也ping不通,望楼主指教,急啊,拜谢!
|
| biejia 回复于:2005-04-08 16:17:12
|
本人也在Linux下也碰到了楼上同样的问题,请高手指教
|