Re: nmcli, pppoe (ADSL login and password)



On Tue, 2015-05-26 at 10:10 +0300, Mihamina Rakotomandimby wrote:
Hi all,

My target is: CentOS 7 on a X less gateway
My internet provider provides a pppoe connection with a login and a
password

On CentOS6, I used to setip it up with rp-pppoe wizzard and it works:
it sets up the needed things to make the network init script launch
the connection at boot.
I would like to learn how to do it with NM and CentOS 7.

How to invoke nmcli in order to have it connected at boot?

Hi,


With nmcli you can edit a connection.

See `man nmcli-examples` and `man nmcli`.

See `man nm-settings` for a description of the properties.

or also
  $ nmcli connection edit NAME
  nmcli> help
  nmcli> describe connection.autoconnect



First you need a pppoe connection... If you don't have it already,
add one with

  $ nmcli connection add type pppoe con-name NAME ...

  and then edit it...

  $ nmcli connection edit NAME
  $ nmcli connection modify NAME ...

Inspect the connection with

  $ nmcli connection show NAME



Whether it connects at boot is the "connection.autoconnect" property.

  $ nmcli connection modify NAME connection.autoconnect yes





Thomas


Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]