[CentOS] how to activate the network after an installation

2019-01-21 Thread Ralf Prengel



Hallo,

I can t find the switch to activate the network after an installation  
without gui.

service network start doesn t work and I don t find any other commands.

Thanks for a hint.

Ralf

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] how to activate the network after an installation

2019-01-21 Thread Stephen John Smoogen
On Mon, 21 Jan 2019 at 11:40, Ralf Prengel  wrote:

>
> Hallo,
>
> I can t find the switch to activate the network after an installation
> without gui.
> service network start doesn t work and I don t find any other commands.
>
> Thanks for a hint.
>
>
Normally the place to configure this per a preset network would be in the
appropriate file in /etc/sysconfig/network-scripts/ifcfg-
This would have a variable called ONBOOT= which needs to be set to yes



> Ralf
>
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos
>


-- 
Stephen J Smoogen.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] how to activate the network after an installation

2019-01-21 Thread Gianluca Cecchi
On Mon, Jan 21, 2019 at 11:40 AM Ralf Prengel 
wrote:

>
> Hallo,
>
> I can t find the switch to activate the network after an installation
> without gui.
> service network start doesn t work and I don t find any other commands.
>
> Thanks for a hint.
>
> Ralf
>
>
>
Possibly during install you set the network connection but you didn't check
the auto start check box, that is in the first label at the left of the
network configuration page for that interface.
If this is the case, if you are connected from console, and you defaulted
to use NetworkManager (you can verify with "systemctl status
NetworkManager"), these would be the commands:

You have devices and connections, that are different things; in my case an
automatic install has created a device named ens192 and also a connection
with the same name.

- device information
[root@c7 ~]# nmcli dev status
DEVICE  TYPE  STATE  CONNECTION
virbr0  bridgeconnected  virbr0
ens192  ethernet  connected  ens192
lo  loopback  unmanaged  --
virbr0-nic  tun   unmanaged  --
[root@c7 ~]#

Last column gives connection name; one device could have many connections
associated to it and you decide which is started in automatic for example

- connections information
[root@c7 ~]# nmcli con show
NAMEUUID  TYPEDEVICE
ens192  9fb1de04-fda3-4db9-820e-d266e151ac73  802-3-ethernet  ens192
virbr0  343ede6f-b7b0-4f73-a6f7-2bc9aee34d4a  bridge  virbr0
[root@c7 ~]#

- configuration of start type for the connection ens192
[root@c7 ~]# nmcli con show ens192 | grep -i connection.auto
connection.autoconnect: yes
connection.autoconnect-priority:0
connection.autoconnect-slaves:  -1 (default)
[root@c7 ~]#

- set to auto if it is not so yet
[root@c7 ~]# nmcli con mod ens192 autoconnect yes

- down and up
[root@c7 ~]# nmcli con down ens192
[root@c7 ~]# nmcli con up ens192

- reboot to verify that autoconnects

HIH,
Gianluca
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] how to activate the network after an installation

2019-01-21 Thread Harald Dunkel

Hi Ralf,

On 1/21/19 11:39 AM, Ralf Prengel wrote:


Hallo,

I can t find the switch to activate the network after an installation without 
gui.
service network start doesn t work and I don t find any other commands.



If the setuptool package is not installed, then I would suggest to
use ip or ifconfig to temporarily assign a network configuration.
Then use yum to install the setuptool package.

Use "setup" to configure network devices, directory services and
runtime services in your favorite terminal window.


Good luck
Harri
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos