How to fix a dead network connection on fedora 26 in 2 examples

I have one server that refuse to have a functioning network connection after a restart.

I can ping out and some http seems to work, but not as it should, but here is how I solved it the last two restarts.

/etc/init.d/network stop

systemctl restart NetworkManager

Now it should work but if it doesn't work you can try this way:

Do this command: ifconfig
Now you can see the configurations of all network cards on the computer.
In the beginning you can see the network-cards name here is an ex.

<code>enp55s9: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.2.109 netmask 255.255.255.0 broadcast 192.168.2.255
inet6 fe80::1117:ab6e:8aa9:f80f prefixlen 64 scopeid 0x20<link>
ether 00:1b:21:4d:a3:fb txqueuelen 1000 (Ethernet)
RX packets 673888 bytes 173394352 (165.3 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 688196 bytes 49994720 (47.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
</code>

The name is "enp55s9"

Now you can stop the card with: ifdown enp55s9
And restart it with: ifup enp55s9

Now you should have a working network-card!