eth端口聚合
㈠ 服务器双网卡绑定然后接在一台S5720上,交换机端口聚合怎么做
首先要确定 你服务器用的是什么模式的网卡聚合 如果是LACP才需要在交换机上配置聚合命令,以下是华为交换机配置命令可供参考
interface eth-trunk1 #创建eth-trunk1的聚合端口
port link-type access #接口模式access
port default vlan 5 #服务器段VLAN5
mode lacp #聚合模式LACP
interface g 0/0/1
eth-trunk1 #将端口G1划到聚合组中,该接口下不要配置别的命令
interface g 0/0/2
eth-trunk1 #将端口G2划到聚合组中,改接口下不要配置别的命令
q #退出
save #保存
纯手打 望采纳
㈡ 没有划分VLAN,可以做端口聚合吗
我晕,端口汇聚吧,这个可以呀,但是你做之前要把每一个端口的模式与速度改为一样的,比如都是全双工,都是强制100MB,这样才能汇聚,不然的话,是不能汇聚的,
eth 0/1 进行端口1
plex full 设置为全双工
speed 100 设置为强制100兆
eth 0/2 进行端口2
plex full 设置为全双工
speed 100 设置为强制100兆
link-aggregation ethernet0/1 to ethernet0/2 both 汇聚端口
display link-aggregation ethernet0/1 查看端口汇聚
㈢ 华为S5700千兆的交换机,想做端口汇聚怎么操作呢
之前有人配置过的话那么你需要确认后面两个端口的trunk信息是否被清除!!!如果不清除不能在添加命令好像是 int gig0/1 clear conf this
㈣ linux服务器端口聚合怎么设置
基础配置信息
常用的三种Bond模式
配置过程以mode=6为例,其它7种模式请参考扩展阅读
mode=0:平衡负载模式,有自动备援,但需要”Switch”支援及设定。 mode=1:自动备援模式,其中一条线若断线,其他线路将会自动备援。 mode=6:平衡负载模式,有自动备援,不必”Switch”支援及设定。
物理接口
2015610165454336.jpg (274×145)
CentOS版本
复制代码代码如下:
datanode01:~>cat /etc/redhat-release
CentOS release 6.4 (Final)
禁用NetworkManager
复制代码代码如下:
#立即关闭禁用NetworkManager并禁用开机自启动
/etc/init.d/NetworkManager stop
chkconfig NetworkManager off
/etc/init.d/network restart
关闭iptables和selinux(可选)
复制代码代码如下:
#立即关闭iptables并禁用开机自启动
/etc/init.d/iptables stop
chkconfig iptables off
#立即关闭selinux并永久禁用
setenforce 0
sed -i ‘s/SELINUX=enforcing/SELINUX=disabled/‘ /etc/selinux/config
修改主机名
复制代码代码如下:
vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=namenode01
#刷新生效
hostname namnode01
source /etc/sysconfig/network
配置IP
私有地址
复制代码代码如下:
cd /etc/sysconfig/network-scripts
[root@datanode09 network-scripts]# cat ifcfg-eth3
DEVICE=eth3
ONBOOT=yes
BOOTPROTO=none
IPADDR=10.129.46.19
NETMASK=255.255.255.0
IPV6INIT=no
USERCTL=no
双网卡绑定
复制代码代码如下:
cd /etc/sysconfig/network-scripts
#编辑eth0
cat > ifcfg-eth0 << EOF
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
MASTER=bond0
EOF
#编辑eth2
cat > ifcfg-eth2 << EOF
DEVICE=eth2
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
MASTER=bond0
EOF
#编辑bond0
cat > ifcfg-bond0 << EOF
DEVICE=bond0
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=none
IPADDR=10.3.3.214
NETMASK=255.255.255.0
GATEWAY=10.3.3.1
IPV6INIT=no
USERCTL=no
EOF
#设置bond参数,注意mode选择
cat > /etc/modprobe.conf << EOF
alias bond0 bonding
options bond0 miimon=100 mode=6
EOF
#加入开机自启动参数
cat >> /etc/rc.local << EOF
ifenslave bond0 eth0 eth2
EOF
#重启网卡
service network restart
#使绑定网卡立即生效
ifenslave bond0 eth0 eth2
#测试绑定网络
ping 10.3.3.1
常用3种网卡绑定模式对比
mode=0
中断任意一条链路或恢复链路,网络0丢包
优点:流量提高1倍
缺点:需要接入同一交换机做聚合配置,无法保证物理交换机高可用(Cisco似乎有解决方案?)
mode=1
中断任意一条链路丢失1-3个包(秒),恢复链路时0丢包
优点:交换机无需配置
缺点:如上
mode=6
中断任意一条链路0丢包,恢复链路时丢失10-15个包(秒)
优点:交换机无需配置,流量提高1倍
㈤ 华为三层交换机连接服务器怎么做端口聚合
1、使用system-view命令,进入[]模式。
㈥ 华为交换机如何做端口聚合
[Huawei]sysnamesw1
[sw1]interfaceeth-trunk1
[sw1-Eth-Trunk1]modelacp-static
[sw1-Eth-Trunk1]load-balancesrc-dst-ip//根据源目的ip逐流负载分担
[sw1-Eth-Trunk1]maxactive-linknumber2//最大激活2条链路
[sw1-Eth-Trunk1]lacppreemptenable//开启抢占模式,故障恢复后优先的链路才可恢复通信
[sw1-Eth-Trunk1]bpenable
[sw1-Eth-Trunk1]portlink-typetrunk
[sw1-Eth-Trunk1]porttrunkallow-passvlanall
[sw1-Eth-Trunk1]q
[sw1]lacppriority100//系统优先级默认32768,越小越优先,据此确定主动端
[sw1]inte0/0/1
[sw1-Ethernet0/0/1]eth-trunk1
Info:.Pleasewaitforamoment...done.
[sw1-Ethernet0/0/1]lacppriority100//端口优先级默认32768,小好,据此确定哪个端口链路处于selected
[sw1-Ethernet0/0/1]q
[sw1]inte0/0/2
[sw1-Ethernet0/0/2]eth-trunk1
[sw1-Ethernet0/0/2]lacppriority100
[sw1-Ethernet0/0/2]q
[sw1]
[sw1]inte0/0/3
[sw1-Ethernet0/0/3]eth-trunk1
[sw1-Ethernet0/0/3]lacppriority300
[sw1-Ethernet0/0/3]q
sw2配置:
[sw2]interfaceeth-trunk1
[sw2-Eth-Trunk1]modelacp-static
[sw2-Eth-Trunk1]bpenable
[sw2-Eth-Trunk1]portlink-typetrunk
[sw2-Eth-Trunk1]porttrunkallow-passvlanall
[sw2-Eth-Trunk1]q
[sw2]lacppriority300
[sw2]inte0/0/1
[sw2-Ethernet0/0/1]eth-trunk1
[sw2-Ethernet0/0/1]q
[sw2]inte0/0/2
[sw2-Ethernet0/0/2]eth-trunk1
[sw2-Ethernet0/0/2]q
[sw2]inte0/0/3
[sw2-Ethernet0/0/3]eth-trunk1
[sw2-Ethernet0/0/3]q
㈦ 交换机端口汇聚如何配置
华为系列
interface Eth-Trunk1 创建汇聚1口
description no 备注
port link-type trunk 用trunk模式可以通过多个vlan
undo port trunk allow-pass vlan 1 拒绝vlan1通过
port trunk allow-pass vlan 100 容许vlan100通过
mode lacp-static 汇聚模式为静态模式
进入端口
interface GigabitEthernet1/0/1
eth-trunk 1 将端口加入汇聚组1
对端设定要一样才行
㈧ 交换机的端口聚合配置
端口聚合也也就是以太通道(ethernet channel),主要用于交换机之间连接。由于两个交换机之间有多条冗余链路的时候,STP会将其中的几条链路关闭,只保留一条,这样可以避免二层的环路。
配置命令如下:
eth-trunk 1
port g0/0/1
port g0/0/2
这样就把两个接口都加入ETH-TRUNK 1, 也就是链路聚合
㈨ 华为交换机端口聚合问题。
比如交换机名为a,用gigabitethernet0/0/1和0/0/2与服务器连接用console或telnet连接交换机后,进行配置system-view;进入系统[a]interfaceeth-trunk1;建个聚合端口[a-Eth-Trunk1]portlink-typetrunk;属性为透传,[a-Eth-Trunk1]porttrunkallow-passvlanxxxx/all;需要通过的vlan[a-Eth-Trunk1]q[a]interfacegigabitethernet0/0/1;进入g0/0/1端口[a-gigabitethernet0/0/1]eth-trunk1;加入Eth-Trunk1[a-gigabitethernet0/0/1]q[a]interfacegigabitethernet0/0/2;进入g0/0/2端口[a-gigabitethernet0/0/2]eth-trunk1;加入Eth-Trunk1[a-gigabitethernet0/0/2]q