camyd
作者camyd·2012-10-11 10:15
数据库管理员·中储粮

aix双网卡绑定

字数 15856阅读 8290评论 0赞 0
1、删除网卡地址 rmdev -dl etX(不一定要做这一步)
2、smitty
   Devices - Communication - Ethernet Adapter - EtherChannel / IEEE 802.3ad Link Aggregation -  Add An EtherChannel / Link Aggregation
   
        Available Network Interfaces                       |
       |                                                                          |
       | Move cursor to desired item and press Esc+7.                             |
       |     ONE OR MORE items can be selected.                                   |
       | Press Enter AFTER making all selections.                                 |
       |                                                                          |
       |   >ent0                                                                   |
       |   >ent1                                                                   |
       |                                                                          |
       | F1=Help                 F2=Refresh              F3=Cancel                |
       | Esc+7=Select            Esc+8=Image             Esc+0=Exit               |
       | Enter=Do                /=Find                  n=Find Next              |
按ESC+7选择要绑定网卡,回车。
                        Add An EtherChannel / Link Aggregation

Type or select values in entry fields.
Press Enter AFTER making all desired changes.
  
                                                        [Entry Fields]
  EtherChannel / Link Aggregation Adapters            ent0,ent1                        +
  Enable Alternate Address                            no                               +
  Alternate Address                                  []                                +
  Enable Gigabit Ethernet Jumbo Frames                no                               +
  Mode                                                standard                         +
  Hash Mode                                           default                          +
  Backup Adapter                                                                       +
       Automatically Recover to Main Channel          yes                              +
       Perform Lossless Failover After Ping Failure   yes                              +
  Internet Address to Ping                           []
  Number of Retries                                  []                                +#
  Retry Timeout (sec)                                []                                +#
            
F1=Help               F2=Refresh             F3=Cancel             F4=List        
Esc+5=Reset           Esc+6=Command          Esc+7=Edit            Esc+8=Image   
Esc+9=Shell           Esc+0=Exit             Enter=Do
  直接回车。

     COMMAND STATUS

Command: OK        stdout: yes           stderr: no

Before command completion, additional instructions may appear below.
绑定完成

3、# lsdev -Cc if
en0 Defined   03-08 Standard Ethernet Network Interface
en1 Defined   03-09 Standard Ethernet Network Interface
en2 Available       Standard Ethernet Network Interface   绑定物理网卡
et0 Defined   03-08 IEEE 802.3 Ethernet Network Interface
et1 Defined   03-09 IEEE 802.3 Ethernet Network Interface
et2 Defined         IEEE 802.3 Ethernet Network Interface
lo0 Available       Loopback Network Interface

4、smitty chinet    (配置网卡)      
                       Available Network Interfaces                       |
       |                                                                          |
       | Move cursor to desired item and press Enter.                             |
       |                                                                          |
       |   en0   03-08   Standard Ethernet Network Interface                      |
       |   en1   03-09   Standard Ethernet Network Interface                      |
       |   en2           Standard Ethernet Network Interface                      |
       |   et0   03-08   IEEE 802.3 Ethernet Network Interface                    |
       |   et1   03-09   IEEE 802.3 Ethernet Network Interface                    |
       |   et2           IEEE 802.3 Ethernet Network Interface                    |
       |                                                                          |
       | F1=Help                 F2=Refresh              F3=Cancel                |
       | Esc+8=Image             Esc+0=Exit              Enter=Do                 |
       | /=Find                  n=Find Next
选中“en2”。
             Change / Show a Standard Ethernet Interface

     Type or select values in entry fields.
     Press Enter AFTER making all desired changes.

                                                        [Entry Fields]
  Network Interface Name                              en2
  INTERNET ADDRESS (dotted decimal)                  [192.168.22.11]
  Network MASK (hexadecimal or dotted decimal)       [255.255.255.0]
  Current STATE                                       up                               +
  Use Address Resolution Protocol (ARP)?              yes                              +
  BROADCAST ADDRESS (dotted decimal)                 []
  Interface Specific Network Options
     ('NULL' will unset the option)
    rfc1323                                          []
    tcp_mssdflt                                      []
    tcp_nodelay                                      []
    tcp_recvspace                                    []
    tcp_sendspace                                    []
  Apply change to DATABASE only                       no                               +
              
F1=Help               F2=Refresh             F3=Cancel             F4=List        
Esc+5=Reset           Esc+6=Command          Esc+7=Edit            Esc+8=Image   
Esc+9=Shell           Esc+0=Exit             Enter=Do

删除捆绑网卡
rmdev -dl ent2(捆绑后网卡en2、et2的名称)

如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!

0

添加新评论0 条评论

Ctrl+Enter 发表

作者其他文章

相关文章

相关问题

X社区推广