Re: How to configure a DHCP + (2nd) Static address (eg on eth0+eth0:0)?
- From: "Derek Atkins" <derek ihtfp com>
- To: "Dan Williams" <dcbw redhat com>
- Cc: networkmanager-list gnome org
- Subject: Re: How to configure a DHCP + (2nd) Static address (eg on eth0+eth0:0)?
- Date: Wed, 30 Sep 2015 16:42:04 -0400
One more thing...
On Wed, September 30, 2015 3:28 pm, Derek Atkins wrote:
Dan,
On Wed, September 30, 2015 12:44 pm, Dan Williams wrote:
On Wed, 2015-09-30 at 12:25 -0400, Derek Atkins wrote:
Dan,
Dan Williams <dcbw redhat com> writes:
I.e., just to make sure I understand correctly, in order to get what I
want I should just create /etc/sysconfig/network-scripts/ifcfg-eth0:0
and let NM manage my alias that way? Do I need to do anything special
to get NM to notice it, or it will do so automagically on the next
restart/reboot?
There are some alias examples here, FWIW:
http://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/src/settings/plugins/ifcfg-rh/tests/network-scripts
And all that's really required is "nmcli con reload", you shouldn't ever
need to restart NetworkManager to get config changes taken into account.
I added this config file but it's not bringing up eth0:0.
# cat /etc/sysconfig/network-scripts/ifcfg-eth0:0
DEVICE=eth0:0
IPADDR=192.168.x.y (yes, x.y are numbers)
BOOTPROTO=none
ONBOOT=yes
IPV6INIT=no
#
What am I missing? Do I need the base ifcfg-eth0 file, too? (That file
was not created by anaconda). Or do I need some additional fields because
there is no ifcfg-eth0? Or do I need to tell NM to bring it up?
Even after I add this file, I can't even manually "ifup" the interface!
# nmcli con
NAME UUID TYPE
DEVICE
Wired connection 1 3a02edd8-e82d-4dca-a336-933e9177f4cd 802-3-ethernet
eth0
# ifup eth0:0
Error: no device found for connection 'System eth0:0'.
# nmcli con
NAME UUID TYPE
DEVICE
System eth0:0 81ad1dc6-9516-a6cf-73d9-600036a810a1 802-3-ethernet --
Wired connection 1 3a02edd8-e82d-4dca-a336-933e9177f4cd 802-3-ethernet
eth0
# nmcli con reload
# nmcli con
NAME UUID TYPE
DEVICE
Wired connection 1 3a02edd8-e82d-4dca-a336-933e9177f4cd 802-3-ethernet
eth0
Even if I add a line NAME="System eth0:0" to the ifcfg-eth0:0 file, it
still doesn't work...
-derek
--
Derek Atkins 617-623-3745
derek ihtfp com www.ihtfp.com
Computer and Internet Security Consultant
[
Date Prev][Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]