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 set the binding of suse linux dual Nic

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Suse linux dual network card binding how to set, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.

Dual Nic binding can achieve redundancy and high availability. It is different to set dual Nic binding in suse linux 10 and redhat linux 5. Here is a detailed description of dual Nic binding under suse linux:

1. First, make sure that the cables are connected to the two network cards and work properly, then create a new file vi ifcfg-bond0 under cd / etc/sysconfig/network, and enter the following contents to save.

BOOTPROTO='static'

BROADCAST=''

IPADDR='172.29.141.130/25' # ip address to bind

Mask of the NETMASK='255.255.255.128'# segment

NETWORK=''

STARTMODE='auto'

BONDING_MASTER='yes'

BONDING_MODULE_OPTS='mode=1 miimon=100 use_carrier=0'

# mode=1 is the active / standby mode mode=0 is the balanced mode

BONDING_SLAVE0='eth-id-68:B5:99:77:3C:66' # mac address of the first network card

BONDING_SLAVE1='eth-id-68:B5:99:77:3C:68' # mac address of the second network card

ETHTOOL_OPTIONS=''

MTU=''

NAME=''

REMOTE_IPADDR=''

USERCONTROL='no'

2. Use yast to enter the configuration interface of the network card, and set the original two network cards to have no ip

3. Pay attention to the configuration of the gateway. Use yast to enter the routing settings interface, where you can configure the gateway.

4. Then type rcnetwork restart to restart the network service

5. Then enter cat / proc/net/bonding/bond0 to see the working status of the network card and ok when you see that the bond0,eth0,eth2 is normal.

6. Enter ifconfig to see that bond0 is already running.

7. Unplug any network cable on the two network cards, find that the network is connected, and automatically switch between the two network cards.

Note: there is no need to manually load the bonding module in SUSE

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

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