SEA创建、网卡聚合

来源:互联网 发布:c语言file的使用方法 编辑:程序博客网 时间:2024/05/22 08:43

查看物理及虚拟以太网口
#lsdev -Cc adapter|grep ent
ent0      Available 04-00 4-Port Gigabit Ethernet PCI-Express Adapter (e414571614102004)
ent1      Available 04-01 4-Port Gigabit Ethernet PCI-Express Adapter (e414571614102004)
ent2      Available 04-02 4-Port Gigabit Ethernet PCI-Express Adapter (e414571614102004)
ent3      Available 04-03 4-Port Gigabit Ethernet PCI-Express Adapter (e414571614102004)
ent4      Available 08-00 Int Multifunction Card w/ SR Optical 10GbE (a219100714100904)
ent5      Available 08-01 Int Multifunction Card w/ SR Optical 10GbE (a219100714100904)
ent6      Available 08-04 Int Multifunction Card w/ Base-TX 10/100/1000 1GbE (a21910071410d203)
ent7      Available 08-05 Int Multifunction Card w/ Base-TX 10/100/1000 1GbE (a21910071410d203)
ent8      Available 0A-00 4-Port Gigabit Ethernet PCI-Express Adapter (e414571614102004)
ent9      Available 0A-01 4-Port Gigabit Ethernet PCI-Express Adapter (e414571614102004)
ent10     Available 0A-02 4-Port Gigabit Ethernet PCI-Express Adapter (e414571614102004)
ent11     Available 0A-03 4-Port Gigabit Ethernet PCI-Express Adapter (e414571614102004)
ent12     Available       Virtual I/O Ethernet Adapter (l-lan)
ent13     Available       Virtual I/O Ethernet Adapter (l-lan)
ent15     Available       EtherChannel / IEEE 802.3ad Link Aggregation
ent17     Available       Shared Ethernet Adapter
ent18     Available       VLAN
ent19     Available       VLAN
ent20     Available       VLAN
ent21     Available       VLAN
查看聚合网卡信息,可以看出ent15由ent1和ent9物理网卡聚合而成。
# lsattr -El ent15
adapter_names   ent1,ent9      EtherChannel Adapters                           True
alt_addr        0x000000000000 Alternate EtherChannel Address                  True
auto_recovery   yes            Enable automatic recovery after failover        True
backup_adapter  NONE           Adapter used when whole channel fails           True
hash_mode       default        Determines how outgoing adapter is chosen       True
interval        long           Determines interval value for IEEE 802.3ad mode True
mode            standard       EtherChannel mode of operation                  True
netaddr         0              Address to ping                                 True
noloss_failover yes            Enable lossless failover after ping failure     True
num_retries     3              Times to retry ping before failing              True
retry_time      1              Wait time (in seconds) between pings            True
use_alt_addr    no             Enable Alternate EtherChannel Address           True
use_jumbo_frame no             Enable Gigabit Ethernet Jumbo Frames            True
查看SEA共享以太网卡信息,可以看到SEA ent17由聚合网口ent15映射到虚拟以太网口ent13配置而成。
# lsattr -El ent17
accounting    disabled Enable per-client accounting of network statistics                 True
adapter_reset yes      Reset real adapter on HA takeover                                  True
ctl_chan               Control Channel adapter for SEA failover                           True
gvrp          no       Enable GARP VLAN Registration Protocol (GVRP)                      True
ha_mode       disabled High Availability Mode                                             True
hash_algo     0        Hash algorithm used to select a SEA thread                         True
jumbo_frames  no       Enable Gigabit Ethernet Jumbo Frames                               True
large_receive no       Enable receive TCP segment aggregation                             True
largesend     1        Enable Hardware Transmit TCP Resegmentation                        True
lldpsvc       no       Enable IEEE 802.1qbg services                                      True
netaddr       0        Address to ping                                                    True
nthreads      7        Number of SEA threads in Thread mode                               True
pvid          505      PVID to use for the SEA device                                     True
pvid_adapter  ent13    Default virtual adapter to use for non-VLAN-tagged packets         True
qos_mode      disabled N/A                                                                True
queue_size    8192     Queue size for a SEA thread                                        True
real_adapter  ent15    Physical adapter associated with the SEA                           True
send_RARP     yes      Transmit Reverse ARP after HA takeover                             True
thread        1        Thread mode enabled (1) or disabled (0)                            True
virt_adapters ent13    List of virtual adapters associated with the SEA (comma separated) True
指定虚拟共享以太网口SEA PVID,每个虚拟以太网口都必须指定,这个SEA PVID,这个ID必须和VIO创建的信息一致(该ID属于非LAN,不能对外访问)。
# mkvdev -sea ent15 -vadapter ent13 -default ent13 -defaultid 505
查看创建好后的SEA、VLAN、聚合网口信息
#lsdev -Cc adapter|grep ent
ent0      Available 04-00 4-Port Gigabit Ethernet PCI-Express Adapter (e414571614102004)
ent1      Available 04-01 4-Port Gigabit Ethernet PCI-Express Adapter (e414571614102004)
ent2      Available 04-02 4-Port Gigabit Ethernet PCI-Express Adapter (e414571614102004)
ent3      Available 04-03 4-Port Gigabit Ethernet PCI-Express Adapter (e414571614102004)
ent4      Available 08-00 Int Multifunction Card w/ SR Optical 10GbE (a219100714100904)
ent5      Available 08-01 Int Multifunction Card w/ SR Optical 10GbE (a219100714100904)
ent6      Available 08-04 Int Multifunction Card w/ Base-TX 10/100/1000 1GbE (a21910071410d203)
ent7      Available 08-05 Int Multifunction Card w/ Base-TX 10/100/1000 1GbE (a21910071410d203)
ent8      Available 0A-00 4-Port Gigabit Ethernet PCI-Express Adapter (e414571614102004)
ent9      Available 0A-01 4-Port Gigabit Ethernet PCI-Express Adapter (e414571614102004)
ent10     Available 0A-02 4-Port Gigabit Ethernet PCI-Express Adapter (e414571614102004)
ent11     Available 0A-03 4-Port Gigabit Ethernet PCI-Express Adapter (e414571614102004)
ent12     Available       Virtual I/O Ethernet Adapter (l-lan)
ent13     Available       Virtual I/O Ethernet Adapter (l-lan)
ent15     Available       EtherChannel / IEEE 802.3ad Link Aggregation
ent17     Available       Shared Ethernet Adapter
ent18     Available       VLAN
ent19     Available       VLAN
ent20     Available       VLAN
ent21     Available       VLAN

 

网卡聚合命令

$mkvdev -lnagg eth1,eth9

如果这个命令失效的话,则可以在oem_setup_env下执行smit etherchannel 命令配置网口聚合。

0 0