| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 5365 人关注过本帖
标题:学习中。。。绑定双网卡,然后重启网络服务,一直报错,找不到原因,求大神 ...
只看楼主 加入收藏
gerald1236
Rank: 1
等 级:新手上路
帖 子:18
专家分:0
注 册:2012-7-8
结帖率:16.67%
收藏
 问题点数:0 回复次数:1 
学习中。。。绑定双网卡,然后重启网络服务,一直报错,找不到原因,求大神指教,先谢过了
network.service - LSB: Bring up/down networking
   Loaded: loaded (/etc/rc.d/init.d/network)
   Active: failed (Result: exit-code) since Wed 2019-06-19 15:15:57 CST; 17s ago
  Process: 3362 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)

Jun 19 15:15:57 network[3362]: RTNETLINK answers: File exists
Jun 19 15:15:57 network[3362]: RTNETLINK answers: File exists
Jun 19 15:15:57 network[3362]: RTNETLINK answers: File exists
Jun 19 15:15:57 network[3362]: RTNETLINK answers: File exists
Jun 19 15:15:57 network[3362]: RTNETLINK answers: File exists
Jun 19 15:15:57 network[3362]: RTNETLINK answers: File exists
Jun 19 15:15:57 network[3362]: RTNETLINK answers: File exists
Jun 19 15:15:57 systemd[1]: network.service: control process exi...1
Jun 19 15:15:57 systemd[1]: Failed to start LSB: Bring up/down n....
Jun 19 15:15:57 systemd[1]: Unit network.service entered failed ....
Hint: Some lines were ellipsized, use -l to show in full.
搜索更多相关主题的帖子: network failed com File exists 
2019-06-19 15:38
606liutong
Rank: 2
等 级:论坛游民
威 望:2
帖 子:740
专家分:94
注 册:2006-10-9
收藏
得分:0 
刚好前几天配过HPC 的服务器双网卡
reboot

#install team sofeware
yum install teamd -y
 
 
#Configuring teaming with nmcli
 
#check team configuration
nmcli con show
nmcli con delete ifcfg-enp6s0f0

#Next we create a team called 'team0'.
nmcli con add type team con-name team0
 
#Now if we show the connections again we should see team0 listed as device 'nm-team'.
nmcli con show
 
#This team is not yet doing anything, so we next add in our two interfaces.
nmcli con add type team-slave ifname enp6s0f0 master team0
nmcli con add type team-slave ifname enp6s0f1 master team0
 
 
cat /etc/sysconfig/network-scripts/ifcfg-team0
cat /etc/sysconfig/network-scripts/ifcfg-team-slave-enp6s0f0
cat /etc/sysconfig/network-scripts/ifcfg-team-slave-enp6s0f1
 
 
#add ip address to team0
nmcli con mod team0 ipv4.method manual
nmcli con mod team0 ipv4.addresses XX.XX.XX.XX/24
nmcli con mod team0 ipv4.gateway XX.XX.XX.XX
nmcli connection modify team0 ipv4.gateway "XX.XX.XX.XX"
nmcli connection modify team0 ipv4.method manual

--(如果Manual报错  则在team0中手动添加
--TEAM_CONFIG="{\"runner\": {\"name\": \"activebackup\"}}")

#Enabling the team
nmcli connection up team-slave-enp6s0f0
 
nmcli connection up team-slave-enp6s0f1
 
 
ip ad sh
 
 
teamdctl nm-team state

Service network restart

前程——漆黑如这落寞的夜,苦苦守望,却总也望不到那泛着点点苍白的黎明!期望与希冀!无奈与魂殇!
獨自壹個人,望著大海淚流.
愛情,不敢奢望...
2019-10-16 19:11
快速回复:学习中。。。绑定双网卡,然后重启网络服务,一直报错,找不到原因,求 ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.018398 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved