Difference between revisions of "Rocky Linux Installation previously CentOS"

m
no edit summary
m
m
Line 95: Line 95:
For things like Webmin, seems to work OK.  Shorewall and other deeper IP stuff, perhaps not so much
For things like Webmin, seems to work OK.  Shorewall and other deeper IP stuff, perhaps not so much


'''Tips if it is necessary to use it;'''
'''Helpful Tips'''


* Show Physical NICs and match them to their "logical" name;
** lspci
** lshw -class network -short (notice the Device name)
** lshw -class network (notice the logical name)
** ...and for detailed information on as specific adapter: ethtool WhatEverLogicalNameOfAdapter
'''NetworkManager (if it is necessary to use it);'''
*Configuration: /etc/NetworkManger
*GUI: nm-connection-editor
*GUI: nm-connection-editor
*Text Based Editor: nmtui
*Text Based Editor: nmtui
Line 109: Line 118:


'''Disabling NetworkManager'''
'''Disabling NetworkManager'''
Because there seem to be so many different fashions (70-persistent-net.rules, udev, HWADDR) in how Linux in general and Rocky Linux 8 and 9 do things, here's a way to things for a server that has several NICs
* Pick a NIC port, assign an 'outlandish' (IE, you're not going to use it in the future) IP Address to it, make sure it works and then WHACK all the other ethernet devices / interfaces , using Webmin (handy if there are a bunch of NICs) or via command line.
* Rename Interfaces if desired (AKA getting rid of the freaky Rocky8 Network Interface names), see below example where enp2s0 is renamed to eth0;
** <code>ifdown enp2s0</code>
**<code>ip link set enp2s0 name eth0</code>
**<code>mv /etc/sysconfig/network-scripts/ifcfg-enp2s0 /etc/sysconfig/network-scripts/ifcfg-eth0/</code>
**<code>nano /etc/sysconfig/network-scripts/ifcfg-eth0: DEVICE=eth0 (NAME Directive too if present)</code>
**above is from: https://tekneed.com/how-to-rename-nic-in-linux-centos-rhel-7-8/
**...and check with above noted "Hardware Commands": lshw -class network -short


*From Here: https://www.thegeekdiary.com/centos-rhel-7-how-to-disable-networkmanager/amp/
*From Here: https://www.thegeekdiary.com/centos-rhel-7-how-to-disable-networkmanager/amp/
Line 117: Line 137:
**service network restart OR systemctl restart network
**service network restart OR systemctl restart network
***If needed: yum install network-scripts
***If needed: yum install network-scripts
 
**...and in /etc/NetworkManager/NetworkManager.conf: plugins=ifcfg-rh,keyfile (with keyfile second)
Renaming and Interface (AKA getting rid of the freaky Rocky8 Network Interface names), in this example Old Name=;
 
*<code>ifdown enp2s0</code>
*<code>ip link set enp2s0 name eth0</code>
*<code>mv /etc/sysconfig/network-scripts/ifcfg-enp2s0 /etc/sysconfig/network-scripts/ifcfg-eth0/</code>
*<code>nano /etc/sysconfig/network-scripts/ifcfg-eth0: DEVICE=eth0</code>
*From: https://tekneed.com/how-to-rename-nic-in-linux-centos-rhel-7-8/


'''Disabling IPv6 (hint, it's in the GRUB configuration file);'''
'''Disabling IPv6 (hint, it's in the GRUB configuration file);'''