Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to understand the binding technology of AIX5.3 dual network cards

2025-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article introduces you how to understand the AIX5.3 dual network card binding technology, the content is very detailed, interested friends can refer to, hope to be helpful to you.

In the AIX operating system, users can configure multiple EtherChannel (network card binding). Before AIX 5.2, we could only choose either active/active EtherChannel mode or bound Nic in active/standby EtherChannel mode. Therefore, a new network card backup mode is introduced in AIX 5.2. users can specify a backup network card for the whole EtherChannel, which will automatically replace the function of EtherChannel when the whole EtherChannel fails. This is very different from the backup mode of EtherChannel network card before AIX 5.2.Therefore, a more complex binding mode of compound network card can appear after 5.2.Therefore, the backup mode of EtherChannel network card is very different from the backup mode of EtherChannel network card before 5.2.Therefore, a more complex binding mode of compound network card can appear after 5.2.This is very different from the backup mode of EtherChannel network card before 5.2.Therefore, there can be a more complex binding mode of compound network card.

There can be 2 to 8 network cards in an EtherChannel, and multiple EtherChannel can be configured in an AIX operating system. But keep in mind that each EtherChannel is a new Ethernet interface, and users may need to adjust the value of the ifsize parameter through the no command to ensure that the total number of Ethernet cards and EtherChannel does not exceed the default value of 8 for ifsize,ifsize.

You can use any network card supported by the AIX system to build the EtherChannel. However, the same channel member Nic of the EtherChannel must be connected to a switch that supports EtherChannel, and the backup channel can be connected to another switch for the failed takeover of the primary channel. All member network cards of EtherChannel should be set to the same speed and operating mode, such as 1000 megabit full duplex. Network cards to be used as members of EtherChannel cannot be configured with IP addresses, and if they are already configured, you must delete these configurations before you start configuring EtherChannel.

After Aix5.2, let's look at three typical configurations

1. Dual-channel or multi-channel common active mode, in which all NICs are in active state, that is, each Nic is working, and they share an IP address and MAC address. However, the target of all NICs must be on the same switch, and the corresponding port of the switch must be bound.

The biggest advantage of this is that when one of the network cards fails, or a network cable fails, it does not affect the work of the whole network, and the network fails only when all the network card channels fail. Moreover, when multiple network cards work at the same time, the network bandwidth can be increased. However, it should be noted that the default allocation method is to assign which network card to use according to the Ip of the target machine. If there is only one target machine, it is not suitable to use the default setting. In this mode, the biggest problem is that all network card targets must be on the same switch and bound together, which can not prevent the failure of the target switch.

2. Active/standby mode. In this mode, a network card is connected to the primary switch and a network card is connected to the standby switch. When the active channel fails, it automatically switches to the standby channel. When the primary channel returns to normal, it automatically switches to the primary channel (whether to switch back here is configurable). The biggest advantage of this approach is that it can prevent the failure of the switch.

3. Compound configuration, which combines the advantages of the above two methods. For example, in an environment with three network cards, we can configure two of the network cards in dual active mode to increase network bandwidth and network reliability. The other network card is connected to another switch as a backup mode. When the first two network cards fail, or when the switch connected to the first two network cards fails, switch to the backup network card. As shown in the figure:

Let's take a look at the detailed steps:

If you want to bind or unbind, you can do it with smit etherchannel. If you want to bind ent1 and ent2, then:.

# chdev-l en1-a netaddr= "- a netmask="

# chdev-l en2-a netaddr= "- a netmask="

# chdev-l en1-a state='detach'

# chdev-l en2-a state='detach'

Note: the above command is necessary, the subnet card first cancel the existing IP address, and must be in the detach state, note, if you connect to the host through en1 or en2, operate the above command, your network may be interrupted immediately, so, the above operation is recommended to be completed through other network cards, or on the HMC. Then we start binding.

# smit etherchannel

Choice

Add An EtherChannel / Link Aggregation

Select the network card here

EtherChannel / Link Aggregation Adapters ent1,ent2

Enter to execute:

Command: OK stdout: yes stderr: no

Before command completion, additional instructions may appear below.

Ent4 Available

Finally, it will prompt the generation of a new network card, which is the available bound network card. You can use lsattr to view its properties or lsdev-Cc adapter to see all the network card properties.

# lsattr-El ent4

Adapter_names ent1,ent2 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

Mode standard EtherChannel mode of operation True

Netaddr Address to ping 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

In this way, the bound network card is dual-channel, that is to say, both network cards are active. Note that you still need the cooperation of the switch to finally connect the two network cards. For the settings of the network switch, you can contact your system administrator.

We can also set up a standby network card, which is usually not active and is in a standby takeover state. if there is a problem with the primary channel, we can switch to the standby channel, so that it can be connected to two different switches for switch redundancy.

The backup network card is the backup_adapter above, which can be accessed through the

# smit chgethch

Or

# smit etherchannel

Choice

Change / Show Characteristics of an EtherChannel / Link Aggregation

Choose again.

Add Backup Adapter to finish it. Add the bound Nic of the backup Nic. Compared with the above, there will be the following differences:

# lsattr-El ent4

Adapter_names ent1,ent2 EtherChannel Adapters True

Alt_addr 0x000000000000 Alternate EtherChannel Address True

Auto_recovery yes Enable automatic recovery after failover True

Backup_adapter ent3 Adapter used when whole channel fails True

Hash_mode default Determines how outgoing adapter is chosen True

Mode standard EtherChannel mode of operation True

Netaddr Address to ping 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

As for the working status of the Nic, you can also check it through netstat-v, such as:

# netstat-v ent4

ETHERNET STATISTICS (ent4):

Device Type: EtherChannel

Hardware Address: 00:14:5e:b7:26:88

.

Number of adapters: 3

Active channel: primary channel

Operating mode: Standard mode

Hash mode: Destination IP address

.

ETHERNET STATISTICS (ent1):

Link Status: Up

Media Speed Selected: Auto negotiation

Media Speed Running: 1000 Mbps Full Duplex

.

ETHERNET STATISTICS (ent2):

Link Status: Up

Media Speed Selected: Auto negotiation

Media Speed Running: 1000 Mbps Full Duplex

.

Backup adapter-ent3:

= =

Link Status: Up

Media Speed Selected: Auto negotiation

Media Speed Running: 1000 Mbps Full Duplex

.

If you want to unbind, do the same

# smit etherchannel

Choice

Remove An EtherChannel / Link Aggregation

Select the network card you need to cancel, such as the ent4 above, and press enter to execute.

Command: OK stdout: yes stderr: no

Before command completion, additional instructions may appear below.

Ent4 deleted

If the above results are obtained, the binding is cancelled successfully. Successful results can be obtained by lsdev-Cc adapter before and after comparison.

About AIX5.3 dual network card binding technology how to understand to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report