当前位置:网站首页>Record of problems encountered in dual network card binding
Record of problems encountered in dual network card binding
2022-06-22 13:36:00 【weixin_ forty-one million five hundred and sixty-one thousand n】
Project background
After relocation of machine room , All servers need to be bound with dual network cards to access the network . Although the dual network card binding is relatively simple , But there are still some episodes , So here's a record .
Dual network card configuration
At present, the operating system we use is mainly divided into two versions :centos/redhat6 and centos/redhat7, The configuration mode is consistent with the process , All use bond To configure and manage , This is the configuration case of two versions .
[[email protected] network-scripts]# cat /etc/modprobe.d/dist.conf
alias bond0 bonding
options bond0 miimon=100 mode=4
[[email protected] network-scripts]# cat /etc/rc.local
#!/bin/bash
touch /var/lock/subsys/local
ifenslave bond0 enp21s0f1 enp21s0f2
centos/redhat6
[[email protected] network-scripts]# cat ifcfg-bond0
DEVICE=bond0
IPADDR=10.176.50.26
NETMASK=255.255.255.0
GATEWAY=10.176.50.254
ONBOOT=yes
BOOTPROTO=static
[[email protected] network-scripts]# cat ifcfg-enp21s0f1
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp21s0f1
UUID=8418798d-8dc3-4dec-b72d-0b4591f858b8
DEVICE=enp21s0f1
ONBOOT=yes
MASTER=bond0
SLAVE=yes
[[email protected] network-scripts]# cat ifcfg-enp21s0f2
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp21s0f2
UUID=5df9e7e6-15ee-49c4-84e4-02b5a40fe185
DEVICE=enp21s0f2
ONBOOT=yes
BOOTPROTO=none
MASTER=bond0
SLAVE=yes
centos/redhat7
[email protected] network-scripts]# cat ifcfg-bond0
DEVICE=bond0
IPADDR=10.176.50.29
NETMASK=255.255.255.0
GATEWAY=10.176.50.254
BONDING_OPTS=“bond0 mode=4 miimon=100”
ONBOOT=yes
[[email protected] network-scripts]#
[[email protected] network-scripts]# cat ifcfg-enp21s0f0
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp21s0f0
UUID=ef45c4b7-f8be-4156-9d22-f31f1df618e7
DEVICE=enp21s0f0
ONBOOT=yes
#IPADDR=10.176.50.29
#PREFIX=24
#GATEWAY=10.176.50.254
IPV6_PRIVACY=no
MASTER=bond0
SLAVE=yes
[[email protected] network-scripts]# cat ifcfg-enp21s0f2
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp21s0f2
UUID=218fa44e-8778-43df-b2f7-068c3ef54c8f
DEVICE=enp21s0f2
ONBOOT=yes
MASTER=bond0
SLAVE=yes
Problems encountered
1、 Parameter input error causes the binding of dual network cards to fail
2、 The firewall problem causes the dual network card configuration to fail after successful configuration ping adopt
3、 The dual network card binding failed due to the switch configuration problem ( about mode4 Pattern , The switch needs to be configured 802.3ad)
4、NetworkManager The service failed to bind the dual network card
Investigation thought
After configuring dual network cards , The troubleshooting idea of network impassability is as follows :
Configuration policy of switch ( Prepare a new switch test )—》 Ethernet cable —》 so (etltool)—》bond Configuration parameters —> service (NetworkManager、 A firewall )
summary
1、 The configuration of dual network cards is not complicated , Mainly small details . For example, the firewall is turned on after the server is reset, or a word is input incorrectly , It is easy to solve as long as we check carefully .
边栏推荐
- Triggers in MySQL
- Redis active / standby configuration dockercompose version
- Problème de sous - séquence / substrat leetcode
- Rigid demand of robot direction → personal thinking ←
- vs code
- "N'osez pas douter du Code, vous devez douter du Code" notez une analyse de délai de demande réseau
- leetcode 968. Monitoring binary tree
- 260. Single Number III
- Leetcode 297 match de la semaine
- 基於SSM的小區垃圾分類和運輸管理系統,高質量畢業論文範例(可直接使用),源碼,數據庫脚本,項目導入運行視頻教程,論文撰寫教程
猜你喜欢

Getting started with shell Basics

别再用 System.currentTimeMillis() 统计耗时了,太 Low,StopWatch 好用到爆!

AcWing第53场周赛

leetcode 1579. Ensure that the graph can be completely traversed

基於SSM的小區垃圾分類和運輸管理系統,高質量畢業論文範例(可直接使用),源碼,數據庫脚本,項目導入運行視頻教程,論文撰寫教程

Redis password modification, startup, view and other operations

leetcode-背包问题

leetcode每日一题202110

130. Surrounded Regions

Windows下MySQL 8.0.29的详细安装教程,解决找不到VCRUNTIME140_1.dll、plugin caching_sha2_password could not be loaded
随机推荐
Acwing week 54
Detailed installation tutorial of MySQL 8.0.29 under windows to solve the problem that vcruntime140 cannot be found_ 1.dll、plugin caching_ sha2_ password could not be loaded
leetcode 968. Monitoring binary tree
"N'osez pas douter du Code, vous devez douter du Code" notez une analyse de délai de demande réseau
934. Shortest Bridge
Shell基础入门
leetcode 99. Restore binary search tree
448. Find All Numbers Disappeared in an Array
Linux setting enables Oracle10g to start automatically
测试方法论——数据驱动测试
RCE&代码执行漏洞
leetcode-子序列/子串问题
47. Permutations II
693. Binary Number with Alternating Bits
openGauss数据库源码解析系列文章—— 密态等值查询技术详解
310. Minimum Height Trees
leetcode 968.监控二叉树
PHP deserialization & Magic method
257. Binary Tree Paths
If the programmer tells the truth during the interview