重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3103|回复: 0
打印 上一主题 下一主题

rhel7.0下面 systemctl status network 报 Failed to start LSB: Bring up/down ne

[复制链接]
跳转到指定楼层
楼主
发表于 2015-6-10 11:37:37 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

如下:

[root@rac1 ~]# systemctl status network.service
network.service - LSB: Bring up/down networking
   Loaded: loaded (/etc/rc.d/init.d/network)
   Active: failed (Result: exit-code) since 三 2015-06-10 11:16:42 CST; 16s ago
  Process: 10278 ExecStop=/etc/rc.d/init.d/network stop (code=exited, status=0/SUCCESS)
  Process: 10404 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)

6月 10 11:16:41 rac1 network[10404]: Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo'
6月 10 11:16:41 rac1 network[10404]: [  确定  ]
6月 10 11:16:41 rac1 network[10404]: 正在打开接口 自动以太网: [  确定  ]
6月 10 11:16:42 rac1 network[10404]: 正在打开接口 自动以太网-1: [  确定  ]
6月 10 11:16:42 rac1 network[10404]: 正在打开接口 配置_1: 错误:激活连接失败:Connection 'dhcp-eth0' is already active on eno33554992
6月 10 11:16:42 rac1 network[10404]: [失败]
6月 10 11:16:42 rac1 systemd-sysctl[10609]: Overwriting earlier assignment of kernel/shmall in file '/etc/sysctl.d/99-sysctl.conf'.
6月 10 11:16:42 rac1 systemd[1]: network.service: control process exited, code=exited status=1
6月 10 11:16:42 rac1 systemd[1]: Failed to start LSB: Bring up/down networking.
6月 10 11:16:42 rac1 systemd[1]: Unit network.service entered failed state.

 

问题原因是:

     /etc/sysconfig/network-script/ifcfg-xxx 文件中没有mac地址的原因

 

解决办法:

     1.使用ip a 获得网卡的mac地址

        [root@rac1 ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eno16777736: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:0c:29:6c:c1:8b brd ff:ff:ff:ff:ff:ff
    inet 192.168.133.120/24 brd 192.168.133.255 scope global eno16777736
    inet6 fe80::20c:29ff:fe6c:c18b/64 scope link
       valid_lft forever preferred_lft forever
3: eno33554992: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:0c:29:6c:c1:95 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.218/24 brd 192.168.0.255 scope global eno33554992
    inet6 fe80::20c:29ff:fe6c:c195/64 scope link
       valid_lft forever preferred_lft forever
4: eno50332224: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:0c:29:6c:c1:9f brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.120/24 brd 192.168.0.255 scope global eno50332224

 

    2.修改 /etc/sysconfig/network-script/ifcfg-xxx 加上

       HWADDR=00:0c:29:6c:c1:95

   

    3.重新去执行 systemctl status network.service

      systemctl restart network.service

     

network.service - LSB: Bring up/down networking
   Loaded: loaded (/etc/rc.d/init.d/network)
   Active: active (exited) since 三 2015-06-10 11:30:34 CST; 1s ago
  Process: 10278 ExecStop=/etc/rc.d/init.d/network stop (code=exited, status=0/SUCCESS)
  Process: 11566 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=0/SUCCESS)

6月 10 11:30:34 rac1 network[11566]: RTNETLINK answers: File exists
6月 10 11:30:34 rac1 network[11566]: RTNETLINK answers: File exists
6月 10 11:30:34 rac1 network[11566]: RTNETLINK answers: File exists
6月 10 11:30:34 rac1 network[11566]: RTNETLINK answers: File exists
6月 10 11:30:34 rac1 network[11566]: RTNETLINK answers: File exists
6月 10 11:30:34 rac1 network[11566]: RTNETLINK answers: File exists
6月 10 11:30:34 rac1 network[11566]: RTNETLINK answers: File exists
6月 10 11:30:34 rac1 systemd-sysctl[11782]: Overwriting earlier assignment of kernel/shmall in file '/etc/sysctl.d/99-sysctl.conf'.
6月 10 11:30:34 rac1 systemd-sysctl[11782]: Overwriting earlier assignment of kernel/shmmax in file '/etc/sysctl.d/99-sysctl.conf'.
6月 10 11:30:34 rac1 systemd[1]: Started LSB: Bring up/down networking.

 

 

    已经正常。

 

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-11-28 22:14 , Processed in 0.095357 second(s), 21 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表