服务器安装系统绑定网卡,服务器网卡多网卡绑定及vlan划分配置方法.pdf

欢访问 服务器服务器网卡网卡多网卡多网卡绑定绑定及及 vlan 支持支持 版本:版本: 1.0 原理:原理: 利用 802.3ad 协议,实现多网卡的绑定。 利用 802.31p 协议,实现服务器对多 vlan 的支持。 结果:结果: 通过 netperf 测试,双网卡绑定流量可以达到 1.5G 以上。 通过对 vlan 的支持,服务器可以绑定多个 vlan 的 ip。 软件环境:软件环境: broadcom 网卡网卡 windows 2003 windows 2008 Dotnet3.5 broadcom 管理软件 BACS intel 网卡网卡 windows 2003 windows 2008 最新驱动包 hp 服务器服务器 最新驱动包,hp 网卡管理工具 linux centos 6.2 注意事项:注意事项: 1) 一定要确定交换机端口和服务器网卡的对应关系。 2) 配置的时候,交换机端口关闭,待服务器和交换机全部完成配置后,再开 启端口,否则可能导致交换机端口自动阻塞。 3) 配置的时候网卡 ip 信息会丢失,如果是远程操作,会造成连接丢失,请 做预案。 操作步骤:操作步骤: 1. 交换机配置交换机配置 多网卡绑定支持 假设 3,4 端口做 port-channel,相关配置如下: snda-intel-lab-2960s-250#sh running-config int port-channel 1 Building configuration. Current configuration : 55 bytes ! interface Port-channel1 switchport mode access end snda-intel-lab-2960s-250#sh running-config int g0/3 Building configuration. Current configuration : 137 bytes ! interface GigabitEthernet0/3 switchport mode access spanning-tree portfast channel-protocol lacp channel-group 1 mode passive end snda-intel-lab-2960s-250#sh running-config int g0/4 Building configuration. Current configuration : 137 bytes ! interface GigabitEthernet0/4 switchport mode access spanning-tree portfast channel-protocol lacp channel-group 1 mode passive end vlan 支持,交换机接服务器端口做支持,交换机接服务器端口做 truak 配置配置 interface GigabitEthernet0/15 switchport mode trunk 2. 软件安装软件安装 Windows 系统 1) intel 网卡在 intel 网站下载最新的网卡驱动安装就可以。 2) broadcom 网卡在 broadcom 网站下载最新驱动,并下载网卡管理工具,目前能下载到 的管理工具只支持 windows server 2008,如果需要支持 windows server 2003 请在 dell ibm 等厂家网站支持页面下载比较老的版本。 3) hp 服务器安装最新的网卡驱动和管理工具,hp 的设置方法和 broadcom 设置类似,多 网卡绑定介绍 broadcom 管理工具使用,网卡 vlan 介绍 hp 网卡的使用。 Linux 系统不需要安装特殊软件 3. 配置网卡端口绑定配置网卡端口绑定 Windows 系统 broadcom 网卡网卡 添加一个端口组 下一步 输入一个名字 选择第二项 802.3ad 添加要绑定的网卡 配置 vlan,一般没有的,跳过 完成 需要几分钟的配置 网卡需要几分钟和交换机协商,完成后,可以看到两块网卡开始正常工作 intel 网卡网卡 选择网卡属性 选择分组—将此适配器与其他适配器组合—新组 选择网卡 创建成功,将 Ip 绑定到新建的组上。 Linux 系统 [[email protected]]# cat /etc/sysconfig/network-scripts/ifcfg-bond0 DEVICE=bond0 BOOTPROTO=none IPADDR=172.16.1.248 NETMASK=255.255.255.0 GATEWAY=172.16.1.1 TYPE=Ethernet BONDING_OPTS=“mode=4 miimon=100“ [[email protected]]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=none ONBOOT=yes TYPE=Ethernet MASTER=bond0 SLAVE=yes [[email protected]]# cat /etc/sysconfig/network-scripts/ifcfg-eth1 DEVICE=eth1 ONBOOT=yes BOOTPROTO=none TYPE=Ethernet MASTER=bond0 SLAVE=yes [[email protected]]# cat /etc/modprobe.d/bond0.conf alias bond0 bonding 4. 配置网卡对配置网卡对 vlan 的支持的支持 Windows 系统 Intel 网卡 选择网络连接属性---网卡配置 点击 vlan 按钮 新建一个 vlan,输入 vlan id 名字---确定 过一会就可以在网络管理器看到两个网卡, 如果需要创建多个 vlan,可以同样设置。 Broadcom 网卡网卡 以 hp 服务器为例,dell ibm 使用 broadcom 的管理工具,配置过程类似 选择需要配置 vlan 的网卡,点击 vlan 按钮 添加一个 vlan100 等待配置生效 完成后可以看到生成一个网卡,vlan100,如果需要生成多个 vlan,可以重复操作: Linux 系统系统 配置对 vlan100 的支持 [[email protected]]# cat ifcfg-eth1 DEVICE=eth1 HWADDR=E4:1F:13:B7:8F:56 ONBOOT=yes BOOTPROTO=none TYPE=Ethernet [[email protected]]# cat ifcfg-eth1.100 DEVICE=eth1.100 ONBOOT=yes BOOTPROTO=none TYPE=Ethernet VLAN=yes IPADDR=*.*.*.* NETMASK=255.255.255.0 附附 1:: Linux 系统中参数及其意义 mode= Allows you to specify the bonding policy. The can be one of: balance-rr or 0 — Sets a round-robin policy for fault tolerance and load balancing. Transmissions are received and sent out sequentially on each bonded slave interface beginning with the first one available. active-backup or 1 — Sets an active-backup policy for fault tolerance. Transmissions are received and sent out via the first available bonded slave interface. Another bonded slave interface is only used if the active bonded slave interface fails. balance-xor or 2 — Sets an XOR (exclusive-or) policy for fault tolerance and load balancing. Using this method, the interface matches up the incoming request's MAC address with the MAC address for one of the slave NICs. Once this link is established, transmissions are sent out sequentially beginning with the first available interface. broadcast or 3 — Sets a broadcast policy for fault tolerance. All transmissions are sent on all slave interfaces. 802.3ad or 4 — Sets an IEEE 802.3ad dynamic link aggregation policy. Creates aggregation groups that share the same speed and duplex settings. Transmits and receives on all slaves in the active aggregator. Requires a switch that is 802.3ad compliant. balance-tlb or 5 — Sets a Transmit Load Balancing (TLB) policy for fault tolerance and load balancing. The outgoing traffic is distributed according to the current load on each slave interface. Incoming traffic is received by the current slave. If the receiving slave fails, another slave takes over the MAC address of the failed slave. balance-alb or 6 — Sets an Active Load Balancing (ALB) policy for fault tolerance and load balancing. Includes transmit and receive load balancing for IPV4 traffic. Receive load balancing is achieved through ARP negotiation. 附附 2: Linux 系统中绑定失败的处理一例 insmod /lib/modules/2.6.18-164.el5/kernel/net/ipv6/ipv6.ko disable=1 insmod /lib/modules/2.6.18-164.el5/kernel/drivers/net/bonding/bonding.ko

展开阅读全文

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值