Solved oracle linux 9 network-scripts

Solved issue

solidsnake

New Member
Joined
Oct 6, 2021
Messages
19
Reaction score
1
Credits
323
Hello.

I installed oracle linux 9 to try it out. I don't like using NetworkManager and using ifcfg classic interface interface files for ip changes makes my job much easier.

In this version ifup - if down commands are not available and interfaces are not listed in /etc/sysconfig/network-script.

I can get around this by installing the relevant packages, but the enp0s3 listed in the ifconfig command is not listed under network-script. What should I do for this?

Should I generate a uuid and create enp0s3 with vi? It is a virtual server now but do you think I will have the same problem on the physical server?

host

1711025208272.png

1711025169166.png
 

Attachments

  • 1711025137582.png
    1711025137582.png
    52.1 KB · Views: 58


Thank you

For me, this will be a pain for someone who frequently changes ip or switches servers. In the old system I could overwrite files with the same name and change ip in seconds : (
 
nmcli con mod (connection) ip4 10.10.10.1/24

Is just about as easy as editing a ifcfg file.
I don't have to cd to the /etc/sysconfig/network-scripts directory, I don't have to use vi, and this will keep me
from making many mistakes because it checks the syntax in the command, unlike ifcfg scripts
which will let you type anything, whether it's right or wrong.

nmcli con up (connection)
nmcli con down (connection)

Is about as easy as ifup (interface)
and ifdown (interface).

For me it's faster to use nmcli ( NetworkManager ) to change ips.
 


Latest posts

Top