Solved

IP ADDR

Posted on 2014-09-20
14
783 Views
Last Modified: 2014-09-24
I tried to change to a static IP address from working DHCP model. When I do a network restart I get the following:

service network restart

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


When I look for details:

Failed to start LSB: Bring up/down networking.

In my IP settings I have:

TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=eno16777736
UUID=a68ce778-9b60-4ec5-a296-eb9ec2fe471a
ONBOOT=yes
HWADDR=00:0C:29:92:73:39
PEERDNS=yes
PEERROUTES=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPADDR=192.168.0.136
NETMASK=255.255.255.0
GATEWAY=192.168.0.1

If I reboot ... seems like I can SSH so somehow its getting the network IP right.
0
Comment
Question by:Starquest321
  • 5
  • 4
  • 4
  • +1
14 Comments
 
LVL 15

Assisted Solution

by:Insoftservice
Insoftservice earned 222 total points
ID: 40334488
What is the issue . Did not got your question.
i hope your network is working right.
If no you could even neat
0
 

Author Comment

by:Starquest321
ID: 40334491
When I issue the command:

service network restart

I get the error:

Failed to start LSB: Bring up/down networking.
0
 
LVL 28

Assisted Solution

by:Jan Springer
Jan Springer earned 223 total points
ID: 40334503
This should be the first line in your config file:

DEVICE="eth0"

Change it to what your device should be called (ifconfig)

Your BOOTPROTO should = none

And is you have Network Manager installed:

NM_CONTROLLED="no"
0
 

Author Comment

by:Starquest321
ID: 40334512
Now I updated:

Still error:


DEVICE="eno16777736"
TYPE=Ethernet
BOOTPROTO=NONE
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=eno16777736
UUID=a68ce778-9b60-4ec5-a296-eb9ec2fe471a
ONBOOT=yes
HWADDR=00:0C:29:92:73:39
PEERDNS=yes
PEERROUTES=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPADDR=192.168.0.136
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
NM_CONTROLLED="no"
0
 
LVL 15

Assisted Solution

by:Insoftservice
Insoftservice earned 222 total points
ID: 40334517
DEVICE="eno16777736"
to DEVICE=eth0

use neat if you are using gui mode.

cat /etc/sysconfig/network-scripts/ifcfg-eth0
0
 
LVL 28

Accepted Solution

by:
Jan Springer earned 223 total points
ID: 40334537
if you do "ifconfig", it will show you your devices by name.
0
 

Author Comment

by:Starquest321
ID: 40334556
My device name is eno16777736 . . .so how can I just change to eno0?
Don't I need some other setup?

 ifconfig
eno16777736: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.136  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fdbc:f108:fdb1:0:20c:29ff:fe95:4e17  prefixlen 64  scopeid 0x0<global>
        inet6 fe80::20c:29ff:fe95:4e17  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:95:4e:17  txqueuelen 1000  (Ethernet)
        RX packets 5101  bytes 2403674 (2.2 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3489  bytes 628597 (613.8 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 8  bytes 660 (660.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 8  bytes 660 (660.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 28

Assisted Solution

by:Jan Springer
Jan Springer earned 223 total points
ID: 40334566
No, if 'ifconfig' picks that up then that's what you should use.

When you make the final changes:

ifdown eno16777736

and then:

ifup eno16777736

Check /var/log/messages for any errors.
0
 
LVL 15

Assisted Solution

by:Insoftservice
Insoftservice earned 222 total points
ID: 40334570
I hope NetworkManager  is enabled

systemctl status NetworkManager.service

ps aux | grep -I net   # will probably find NetworkManager still running.
chkconfig NetworkManager off

OR

systemctl stop NetworkManager.service

systemctl disable NetworkManager.service

systemctl restart network.service

systemctl enable network.service
systemctl NetworkManager disable
0
 

Author Comment

by:Starquest321
ID: 40334588
I followed this:
I hope NetworkManager  is enabled

systemctl status NetworkManager.service

ps aux | grep -I net   # will probably find NetworkManager still running.
chkconfig NetworkManager off

Then I did:


ifdown eno16777736

and then:

ifup eno16777736

Now I messed everything up:

I get on the ifup command:

The device eno16777736 has a different MAC address than expected, ignoring.

And I cannot SSH....

Urgent help
0
 

Author Comment

by:Starquest321
ID: 40334604
This command messed me up:

chkconfig NetworkManager off

I had to turn it back on and revert changes...
But I am still on dynmic
0
 
LVL 28

Assisted Solution

by:Jan Springer
Jan Springer earned 223 total points
ID: 40334627
make sure that the mac address listed for the device (via ifconfig) is the same mac address listed in your file.

so, turn NM off, update your ifcfg-eno* file and ifdown/ifup the interface.
0
 
LVL 15

Assisted Solution

by:Insoftservice
Insoftservice earned 222 total points
ID: 40334878
I mean to say that if network manager is enabled and it would not allow to connect.
After disabling your NM configure your file again and restart the service.
I thought you might have missed the point of NM and thats the reason i did not told to configure it again
0
 
LVL 61

Assisted Solution

by:gheist
gheist earned 55 total points
ID: 40335028
Why dont you set static DHCP reservation?

Minimal config file should look like this:
DEVICE="eno16777736"
BOOTPROTO=none
ONBOOT=yes
IPADDR=192.168.0.136
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
BROADCAST=192.168.0.255
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Configuring network clients can be a chore, especially if there are a large number of them or a lot of itinerant users.  DHCP dynamically manages this process, much to the relief of users and administrators alike!
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now