Etherchannel环境下更换网卡
Etherchannel环境下更换网卡
环境:
AIX OSLevel:5304CSP
Etherchannel配置模式:标准,backup模式。
此处Etherchanel的虚拟网卡为ent4,物理主网卡为ent2,物理备网卡为ent3
步骤:
1. 使用命令entstat -d ent4查看当前Etherchannel状态
查看当前Etherchannel网卡的状态,例如:
# entstat -d ent4 | egrep -e "ETHERNET|Link Status|Active channel|Media Speed" ETHERNET STATISTICS (ent4) :
Active channel: primary channel
ETHERNET STATISTICS (ent2) :
Link Status : Up
Media Speed Selected: 100 Mbps Full Duplex
Media Speed Running: 100 Mbps Full Duplex
ETHERNET STATISTICS (ent3) :
Link Status : Down
Media Speed Selected: 100 Mbps Full Duplex
Media Speed Running: Unknown
注意当前“Active channel”是Primary Channel还是Secondary Channel
查看ent2和ent3的link status是Up还是Down
2. 如果需要更换的是主网卡ent2,而当前“Active Channel”仍是Primary Channel,则当前ent2上还有网络流量,需要首先进行链路的主备网卡切换,确保需要更换的主网卡ent2上没有网络流量
# /usr/lib/methods/ethchan_config -f ent4
更换主网卡ent2:
1.从etherchannel删除主网卡
/usr/lib/methods/ethchan_config -d ent4 ent2
2.删除并热插拔主网卡
3.添加主网卡到etherchannel
/usr/lib/methods/ethchan_config -a ent4 ent2
3. 如果需要更换的是备网卡ent3,而当前“Active Channel”是Secondary Channel,则当前ent3上还有网络流量,需要首先进行链路的主备网卡切换,确保需要更换的备网卡ent3上没有网络流量
# /usr/lib/methods/ethchan_config -f ent4
更换备网卡ent3:
1.从etherchannel删除备网卡
/usr/lib/methods/ethchan_config -d ent4 ent3
2.删除并热插拔备网卡
3.添加备网卡到etherchannel
/usr/lib/methods/ethchan_config -a -b ent4 ent3
完!
附录 ethchan_config命令说明
man ethchan_config
Commands Reference, Volume 2, d - h
ethchan_config Command
Purpose
Adds adapters to an EtherChannel or removes adapters from an EtherChannel.
Syntax
ethchan_config { -a [ -b ] | -d } EtherChannel Adapter
ethchan_config -c EtherChannel Attribute NewValue
ethchan_config -f EtherChannel
Description
This command adds adapters to an EtherChannel or removes adapters from an EtherChannel. This command can also be used to
modify EtherChannel attributes. These additions, deletions or modifications can take place even if the EtherChannel's
interface is currently configured; that is, it is not necessary to detach the EtherChannel's interface to add or remove
adapters or modify most EtherChannel attributes.
Flags
-a
Adds the specified Adapter to the specified EtherChannel. If the adapter must be added as a backup adapter, the -b
flag must be specified.
-b
Specifies that the Adapter is being added as a backup adapter. This flag is only valid when used with the -a flag.
-c
Changes the specified Attribute of the specified EtherChannel attribute to the specified NewValue.
-d
Deletes the specified Adapter from the specified EtherChannel. The -b flag should not be used with the -d flag.
-f
Forces a failover of the specified EtherChannel. Note that the failover will only actually occur if the adapter in the
idle channel is up: if the adapter in the idle channel is down, the EtherChannel will keep operating on the active one
and no failover will take place.
Parameters
Adapter
Specifies the adapter to add or delete.
Attribute
Specifies an attribute of the specified EtherChannel.
EtherChannel
Specifies the EtherChannel.
NewValue
Specifies the new value for the specified attribute of the specified EtherChannel.
Exit Status
The command completed successfully.
>0
An error occurred.
Examples
1 To add the adapter ent0 as the backup adapter in the EtherChannel called ent7, type:
/usr/lib/methods/ethchan_config -a -b ent7 ent0
2 To change the address to ping attribute of an EtherChannel called ent7 to 10.10.10.10, type:
/usr/lib/methods/ethchan_config -c ent7 netaddr 10.10.10.10
3 To force a failover of an EtherChannel called ent7 from the currently active channel to the idle channel, type:
/usr/lib/methods/ethchan_config -f ent7
Restrictions
The use of the use_jumbo_frame attribute cannot be modified by this command. Attempting to do so will print out an error
message.
Location
/usr/lib/methods
AIX33:/>
…… 此处隐藏:1784字,全部文档内容请下载后查看。喜欢就下载吧 ……相关推荐:
- [高中教育]电子线路高频非线性部分2.1
- [高中教育]中班美术活动——我的小手
- [高中教育]常用三极管参数大全
- [高中教育]计算机常见故障及解决办法
- [高中教育]风机基础环水平度控制方法探讨
- [高中教育]机械安全工程(专升本)阶段性作业3
- [高中教育]2009年安徽省高考语文考试说明刍议
- [高中教育]unit5 let's eat公开课教案设
- [高中教育]计算机网络原理课后习题答案
- [高中教育]2016-2022年中国新能源市场研究与投资
- [高中教育]2015-2020年中国会议行业市场评估及投
- [高中教育]经销商大会峰会主持人串词开场白
- [高中教育]2014新版北师大数学三年级上册小熊购物
- [高中教育]七年级第一学期体育与健康全套教案
- [高中教育]第三章:国际金融市场
- [高中教育]六年级下册数学单元测试-2.比例 北师大
- [高中教育]2016年上海海事大学法学院624刑法之《
- [高中教育]中国碳化钙产业竞争现状及未来五年投资
- [高中教育]网络时代,我们怎么玩
- [高中教育]圆锥曲线——高中数学基础知识与典型例
- 高集医院世界艾滋病宣传日活动方案
- 苏教版六年级英语上册期末试卷含答案
- 全民枪战生化英雄模式幽灵怎么玩 生化
- 灿烂的宋元文化一导学案
- 第2章货币资金与应收款项
- 北师大版八年级下册数学第三章《分式》
- 浅析高分子材料成型加工技术
- 华南理工大学2013年度共青团先进集体及
- 教师资格科目二小学教案模板(共合集)
- 工程扩建可研报告
- 中华人民共和国海事局2014年度招录公务
- 提高农村小学生作文能力的教学尝试
- 徒手心肺复苏术操作步骤
- 毛概试题库7-15章
- 2014-2015学年度(上)初中班主任工作计
- 企业驾驶员安全生产责任书
- 第07章 不等式测试题-2016年高考文科数
- 医疗器械经营企业工作程序
- 考研英语必背36篇_彩版_精华
- 初中9月13-15假期作业 (1)




