澳门威利斯人_威利斯人娱乐「手机版」

来自 网络资讯 2019-10-06 05:41 的文章
当前位置: 澳门威利斯人 > 网络资讯 > 正文

三种方法解决,解决方法

今天用CentOS7 昂科拉DO方式安装Openstack,文书档案上说要disable NetworkManager, 用 network服务才行。


明日获得客商两笼刀片机,举行福特ExplorerHEL6U3系统的安装操作,准备安装完第一台刀片之后,将其配置成KICKSTART服务器对别的刀片进行互联网安装。

可是自个儿用 service network start命令运行时报错:

多谢朋友扶助本博客。应接共同切磋调换。因为技艺和时间有限,错误之处难于避免。款待指正!
只要转发。请保留笔者音讯。
博客地址:

有关阅读

[root@localhost network-scripts]# service network start

原博文地址:

大切诺基HEL互连网安装刀片服务器  http://www.linuxidc.com/Linux/2013-10/91262.htm

Starting network (via systemctl):  Job for network.service failed. See 'systemctl status network.service' and 'journalctl -xn' for details.[FAILED][root@localhost network-scripts]# systemctl status network.servicenetwork.service - LSB: Bring up/down networking  Loaded: loaded (/etc/rc.d/init.d/network)  Active: failed (Result: exit-code) since Sat 2015-03-07 02:53:12 EST; 6s ago  Process: 8596 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)Mar 07 02:53:12 localhost.localdomain network[8596]: RTNETLINK answers: File ...Mar 07 02:53:12 localhost.localdomain network[8596]: RTNETLINK answers: File ...Mar 07 02:53:12 localhost.localdomain network[8596]: RTNETLINK answers: File ...Mar 07 02:53:12 localhost.localdomain network[8596]: RTNETLINK answers: File ...Mar 07 02:53:12 localhost.localdomain network[8596]: RTNETLINK answers: File ...Mar 07 02:53:12 localhost.localdomain network[8596]: RTNETLINK answers: File ...Mar 07 02:53:12 localhost.localdomain systemd-sysctl[8913]: Overwriting earli...Mar 07 02:53:12 localhost.localdomain systemd[1]: network.service: control pr...Mar 07 02:53:12 localhost.localdomain systemd[1]: Failed to start LSB: Bring ...Mar 07 02:53:12 localhost.localdomain systemd[1]: Unit network.service entere...Hint: Some lines were ellipsized, use -l to show in full.

《—》

而是,安装完第一片刀之后,对其进行IP的安装。

然后互连网搜是因为没加HWADD福睿斯....那一个本身真的给删了....

1、运营 service network restart 出现上边错误

  1. 首先查看有微微个网卡
    [root@blog01 ~]# ip a
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 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: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
        link/ether 38:ea:a7:a1:fd:66 brd ff:ff:ff:ff:ff:ff
        inet6 fe80::3aea:a7ff:fea1:fd66/64 scope link
          valid_lft forever preferred_lft forever
    3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
        link/ether 38:ea:a7:a1:fd:6a brd ff:ff:ff:ff:ff:ff
    4: eth2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
        link/ether 38:ea:a7:a1:fd:68 brd ff:ff:ff:ff:ff:ff
    5: eth3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
        link/ether 38:ea:a7:a1:fd:6c brd ff:ff:ff:ff:ff:ff
    6: eth4: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
        link/ether 38:ea:a7:a1:fd:69 brd ff:ff:ff:ff:ff:ff
    7: eth5: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
        link/ether 38:ea:a7:a1:fd:6d brd ff:ff:ff:ff:ff:ff
    8: eth6: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
        link/ether 38:ea:a7:a1:fd:6e brd ff:ff:ff:ff:ff:ff
    9: eth7: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
        link/ether 38:ea:a7:a1:fd:72 brd ff:ff:ff:ff:ff:ff

先看log里说哪些网卡未有UP起来:

Restarting network (via systemctl):  Job for network.service failed. See 'systemctl status network.service' and 'journalctl -xn' for details.

  1. 查看哪些网卡是三回九转平常的
    [root@blog01 ~]# for i  in `seq 0 7`
    > do
    > res=`ethtool eth$i |grep Link |awk -F: '{print $2}'`
    > echo "eth$i  Link $res"
    > done
    eth0  Link  yes
    eth1  Link  yes
    eth2  Link  no
    eth3  Link  no
    eth4  Link  no
    eth5  Link  no
    eth6  Link  no
    eth7  Link  no

  2. 能够看出eth0,eth1是连连成功的

  3. 对eth0配置IP地址
    从客户获得的IP设置限制是10.196.28.0/24 ,该网段端口被设置成了Trunk方式。
    5.手动将eth0加入vlan id为528的VLAN,并配置IP
    [root@blog01 ~]# vconfig  add eth0 528
    [root@blog01 ~]# ifconfig eth0.528 10.196.28.43 netmask 255.255.255.0
    [root@blog01 ~]# ping  -W1 -c2 10.196.28.254
    PING 10.196.28.254 (10.196.28.254) 56(84) bytes of data.
    64 bytes from 10.196.28.254: icmp_seq=1 ttl=255 time=1.14 ms
    64 bytes from 10.196.28.254: icmp_seq=2 ttl=255 time=1.15 ms
    --- 10.196.28.254 ping statistics ---
    2 packets transmitted, 2 received, 0% packet loss, time 1002ms
    rtt min/avg/max/mdev = 1.149/1.154/1.159/0.005 ms

[root@localhost network-scripts]# cat /var/log/messages | grep network

2、依附上边的提醒,运维“systemctl status network.service”输出上面包车型客车切近消息:

6.写入网卡配置文件
为了使得系统重启后,IP配置照旧生效,写入系统布局文件
另外本机必要作为KVM设想化平台,故须要制造桥接设备br0

Mar  7 03:05:18 localhost kernel: drop_monitor: Initializing network drop monitor serviceMar  7 03:05:19 localhost systemd-udevd[413]: renamed network interface eth1 to enp1s0f1Mar  7 03:05:19 localhost systemd-udevd[416]: renamed network interface eth5 to enp8s0f3Mar  7 03:05:19 localhost systemd-udevd[421]: renamed network interface eth3 to enp8s0f1Mar  7 03:05:19 localhost systemd-udevd[429]: renamed network interface eth4 to enp8s0f2Mar  7 03:05:19 localhost systemd-udevd[411]: renamed network interface eth0 to enp1s0f0Mar  7 03:05:19 localhost systemd-udevd[419]: renamed network interface eth2 to enp8s0f0Mar  7 03:05:25 localhost systemd-udevd[412]: renamed network interface eth1 to enp3s0f1Mar  7 03:05:25 localhost systemd-udevd[414]: renamed network interface eth3 to enp131s0f1Mar  7 03:05:25 localhost systemd-udevd[411]: renamed network interface eth0 to enp3s0f0Mar  7 03:05:25 localhost systemd-udevd[413]: renamed network interface eth2 to enp131s0f0Mar  7 03:05:25 localhost systemd-udevd[415]: renamed network interface eth4 to enp134s0f0Mar  7 03:05:25 localhost systemd-udevd[416]: renamed network interface eth5 to enp134s0f1Mar  7 03:05:30 localhost systemd: Starting Import network configuration from initramfs...Mar  7 03:05:30 localhost systemd: Started Import network configuration from initramfs.Mar  7 03:05:40 localhost systemd: Starting Rollback uncommitted netcf network config change transactions...Mar  7 03:05:40 localhost systemd: Started Rollback uncommitted netcf network config change transactions.Mar  7 03:05:43 localhost systemd: Starting LSB: Bring up/down networking...Mar  7 03:05:45 localhost network: Bringing up loopback interface:  [  OK  ]Mar  7 03:05:45 localhost network: Bringing up interface br0:  ERROR    : [/etc/sysconfig/network-scripts/ifup-eth] Device br0 does not seem to be present, delaying initialization.Mar  7 03:05:45 localhost /etc/sysconfig/network-scripts/ifup-eth: Device br0 does not seem to be present, delaying initialization.Mar  7 03:05:45 localhost network: [FAILED]Mar  7 03:05:45 localhost network: Bringing up interface enp1s0f0:  [  OK  ]Mar  7 03:05:45 localhost network: Bringing up interface enp8s0f0:  ERROR    : [/etc/sysconfig/network-scripts/ifup-eth] Device  does not seem to be present, delaying initialization.Mar  7 03:05:45 localhost /etc/sysconfig/network-scripts/ifup-eth: Device  does not seem to be present, delaying initialization.Mar  7 03:05:45 localhost network: [FAILED]Mar  7 03:05:45 localhost network: Bringing up interface enp8s0f1:  ERROR    : [/etc/sysconfig/network-scripts/ifup-eth] Device  does not seem to be present, delaying initialization.Mar  7 03:05:45 localhost /etc/sysconfig/network-scripts/ifup-eth: Device  does not seem to be present, delaying initialization.Mar  7 03:05:45 localhost network: [FAILED]Mar  7 03:05:45 localhost systemd: network.service: control process exited, code=exited status=1Mar  7 03:05:45 localhost systemd: Failed to start LSB: Bring up/down networking.Mar  7 03:05:45 localhost systemd: Unit network.service entered failed state.Mar  7 03:05:48 localhost xinetd[1863]: xinetd Version 2.3.15 started with libwrap loadavg labeled-networking options compiled in.

[root@localhost ~]# systemctl status network.service

[root@blog01 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
TYPE=Ethernet
BOOTPROTO=none
[root@blog01 ~]#cat /etc/sysconfig/network-scripts/ifcfg-eth0.528
DEVICE=eth0.528
ONBOOT=yes
BOOTPROTO=none
VLAN=yes
TYPE=Ethernet
BRIDGE=br0
[root@blog01 ~]#cat /etc/sysconfig/network-scripts/ifcfg-br0
DEVICE=br0
ONBOOT=yes
BOOTPROTO=none
TYPE=Bridge
IPADDR=10.196.28.43
NETMASK=255.255.255.0
GATEWAY=10.196.28.254

图片 1

network.service - LSB: Bring up/down networking

更加多详细情况请继续阅读第2页的源委:http://www.linuxidc.com/Linux/2013-10/91261p2.htm 

ip addr查看那俩网卡的MAC:

   Loaded: loaded (/etc/rc.d/init.d/network)

图片 2

[root@localhost network-scripts]# ip addr

   Active: failed (Result: exit-code) since三 2014-11-05 15:30:10 CST; 1min 5s ago

1: lo: 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      valid_lft forever preferred_lft forever    inet6 ::1/128 scope host       valid_lft forever preferred_lft forever2: enp1s0f0: mtu 1500 qdisc mq master br0 state UP qlen 1000    link/ether 00:25:90:64:a9:30 brd ff:ff:ff:ff:ff:ff    inet6 fe80::225:90ff:fe64:a930/64 scope link       valid_lft forever preferred_lft forever3: enp1s0f1: mtu 1500 qdisc noop state DOWN qlen 1000    link/ether 00:25:90:64:a9:31 brd ff:ff:ff:ff:ff:ff4: enp8s0f0: mtu 1500 qdisc noop state DOWN qlen 1000    link/ether 00:0c:bd:05:4e:cc brd ff:ff:ff:ff:ff:ff5: enp8s0f1: mtu 1500 qdisc noop state DOWN qlen 1000    link/ether 00:0c:bd:05:4e:cd brd ff:ff:ff:ff:ff:ff6: enp8s0f2: mtu 1500 qdisc noop state DOWN qlen 1000    link/ether 00:0c:bd:05:4e:ce brd ff:ff:ff:ff:ff:ff7: enp8s0f3: mtu 1500 qdisc noop state DOWN qlen 1000    link/ether 00:0c:bd:05:4e:cf brd ff:ff:ff:ff:ff:ff

 

下一场把那俩网卡的mac写到配置文件里:

11月 05 15:30:10 localhost.localdomain network[2920]: RTNETLINK answers: File exists

/etc/sysconfig/network-scripts/ifcfg-enp8s0f0

11月 05 15:30:10 localhost.localdomain network[2920]: RTNETLINK answers: File exists

/etc/sysconfig/network-scripts/ifcfg-enp8s0f1

11月 05 15:30:10 localhost.localdomain network[2920]: RTNETLINK answers: File exists

添加:

11月 05 15:30:10 localhost.localdomain network[2920]: RTNETLINK answers: File exists

HWADDR=00:0c:bd:05:4e:cc​

11月 05 15:30:10 localhost.localdomain network[2920]: RTNETLINK answers: File exists

下一场再次开动network,就OK啦!

11月 05 15:30:10 localhost.localdomain network[2920]: RTNETLINK answers: File exists

本文由澳门威利斯人发布于网络资讯,转载请注明出处:三种方法解决,解决方法

关键词: 澳门威利斯人