Hi folks, I'm a bit confused about how to set up two network cards in different LANS in C8. I've done this multiple times in Centos6 and lower, but in the NetworkManager/systemd world I'm all at sea without any charts. (I'm sure there's a HKLM in there somewhere -sorry ;-)) and my Googlefoo is failing me this evening.
Via the GUI it will let me configure one device or the other but not both :-(
Anyway I want one NIC with IP 10.100.0.2/24 and GW 10.100.0.1 and the other with IP 10.2.0.2/24 and no gateway.
I've seen a method that removes NetworkManager and installs network-scripts then configures the ifcfg-eth0 and ifcfg-eth1 scripts. Interestingly the devices seem to be still called eth0 & 1 on this system which happens to be a VM. When I use this method the systemctl start network appears not to be able to find eth1.
Is there a recommended way to do this? I'd prefer to use 'approved' techniques rather than work arounds.
Any suggestions?
Thanks
Ken
On 7/15/21 2:39 PM, Ken Smith via CentOS wrote:
Hi folks, I'm a bit confused about how to set up two network cards in different LANS in C8. I've done this multiple times in Centos6 and lower, but in the NetworkManager/systemd world I'm all at sea without any charts. (I'm sure there's a HKLM in there somewhere -sorry ;-)) and my Googlefoo is failing me this evening.
Via the GUI it will let me configure one device or the other but not both :-(
Anyway I want one NIC with IP 10.100.0.2/24 and GW 10.100.0.1 and the other with IP 10.2.0.2/24 and no gateway.
I've seen a method that removes NetworkManager and installs network-scripts then configures the ifcfg-eth0 and ifcfg-eth1 scripts. Interestingly the devices seem to be still called eth0 & 1 on this system which happens to be a VM. When I use this method the systemctl start network appears not to be able to find eth1.
Is there a recommended way to do this? I'd prefer to use 'approved' techniques rather than work arounds.
Any suggestions?
https://linuxconfig.org/rhel-8-configure-static-ip-address
https://www.tecmint.com/set-static-ip-address-in-rhel-8/
Both of those go over the 3 basic ways to set up IP addresses manually (edit the script, use command line tool called nmcli, or use the curses based TUI tool called nmtui.
Thanks, Johnny Hughes
Johnny Hughes wrote:
On 7/15/21 2:39 PM, Ken Smith via CentOS wrote:
Hi folks, I'm a bit confused about how to set up two network cards in different LANS in C8. I've done this multiple times in Centos6 and lower, but in the NetworkManager/systemd world I'm all at sea without any charts. (I'm sure there's a HKLM in there somewhere -sorry ;-)) and my Googlefoo is failing me this evening.
Via the GUI it will let me configure one device or the other but not both :-(
Anyway I want one NIC with IP 10.100.0.2/24 and GW 10.100.0.1 and the other with IP 10.2.0.2/24 and no gateway.
I've seen a method that removes NetworkManager and installs network-scripts then configures the ifcfg-eth0 and ifcfg-eth1 scripts. Interestingly the devices seem to be still called eth0 & 1 on this system which happens to be a VM. When I use this method the systemctl start network appears not to be able to find eth1.
Is there a recommended way to do this? I'd prefer to use 'approved' techniques rather than work arounds.
Any suggestions?
https://linuxconfig.org/rhel-8-configure-static-ip-address
https://www.tecmint.com/set-static-ip-address-in-rhel-8/
Both of those go over the 3 basic ways to set up IP addresses manually (edit the script, use command line tool called nmcli, or use the curses based TUI tool called nmtui.
Thanks, Johnny Hughes _______________________________________________ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
All fixed - awesome - thank you :-)
On 7/15/21 2:39 PM, Ken Smith via CentOS wrote:
Hi folks, I'm a bit confused about how to set up two network cards in different LANS in C8. I've done this multiple times in Centos6 and lower, but in the NetworkManager/systemd world I'm all at sea without any charts. (I'm sure there's a HKLM in there somewhere -sorry ;-)) and my Googlefoo is failing me this evening.
Via the GUI it will let me configure one device or the other but not both :-(
Anyway I want one NIC with IP 10.100.0.2/24 and GW 10.100.0.1 and the other with IP 10.2.0.2/24 and no gateway.
I've seen a method that removes NetworkManager and installs network-scripts then configures the ifcfg-eth0 and ifcfg-eth1 scripts. Interestingly the devices seem to be still called eth0 & 1 on this system which happens to be a VM. When I use this method the systemctl start network appears not to be able to find eth1.
Is there a recommended way to do this? I'd prefer to use 'approved' techniques rather than work arounds.
Any suggestions?
This is for Debian, but it must be the same in CentOS. Being in Debian a "beginner" who fled CentOS, this one operation (configuring second network card) is the last only operation which I still use GUI for, not command line tools or Better editing config files...
Start network manager editor (on Debian the command is: nm-connection-editor)
Click Ethernet
click "+" choose "Ethernet" as connection type.
change name of new connection to "Wired connection 2"
and configure all parameters, make sure you choose correct ethernet adapter in one of dro-downs.
I hope, this helps.
Valeri
Thanks
Ken