In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Linux system how to achieve double network card binding, 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.
The work is mainly based on SuSE. Network, as one of the most important links in the whole high availability architecture, is generally bound by dual network cards physically, and the default mode=1 (active-backup) is usually used as the active / standby relationship.
In the production server that recently tested big data, considering the priority of performance, the binding mode is set to mode=6 (balance-alb), and the traffic is doubled using load balancer. At the same time, in the testing process of SuSE HA architecture from Skybility HA to Corosync/Openais+Pacemaker, mode=0 (balance-rr) is adopted in cooperation with network switch Port Channel link aggregation, and network interruption 0 packet loss is realized by means of balanced polling.
Basic configuration information
Three commonly used Bond modes
The configuration process takes mode=6 as an example. For the other 7 modes, please refer to the extension.
Mode=0: load balancing mode, with automatic backup, but requires "Switch" support and setting. Mode=1: automatic backup mode. If one line is disconnected, the other lines will be backed up automatically. Mode=6: load balancing mode, automatic backup, no need for "Switch" support and setting.
Physical interface
CentOS version
The code is as follows:
Datanode01:~ > cat / etc/redhat-release
CentOS release 6.4 (Final)
Disable NetworkManager
The code is as follows:
# disable NetworkManager immediately and disable boot self-startup
/ etc/init.d/NetworkManager stop
Chkconfig NetworkManager off
/ etc/init.d/network restart
Close iptables and selinux (optional)
The code is as follows:
# close iptables immediately and disable boot self-startup
/ etc/init.d/iptables stop
Chkconfig iptables off
# close selinux immediately and disable it permanently
Setenforce 0
Sed-I's Union SELINUXPRENTENTFORCING sed'/ etc/selinux/config
Modify hostname
The code is as follows:
Vi / etc/sysconfig/network
NETWORKING=yes
HOSTNAME=namenode01
# refresh takes effect
Hostname namnode01
Source / etc/sysconfig/network
Configure IP
Private address
The code is as follows:
Cd / etc/sysconfig/network-scripts
[root@datanode09 network-scripts] # cat ifcfg-eth4
DEVICE=eth4
ONBOOT=yes
BOOTPROTO=none
IPADDR=10.129.46.19
NETMASK=255.255.255.0
IPV6INIT=no
USERCTL=no
Double network card binding
The code is as follows:
Cd / etc/sysconfig/network-scripts
# Editing eth0
Cat > ifcfg-eth0 ifcfg-eth3 ifcfg-bond0 / etc/modprobe.conf > / etc/rc.local
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.