<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I've been doing more tinkering and I'm getting better at this, but
there are still issues...<br>
<br>
Ok, here's my setup for my rhel 6 box:<br>
<br>
Two interfaces: eth0 (public) and eth1 (private)<br>
The configuration for eth0 looks like this:<br>
DEVICE="eth0"<br>
NM_CONTROLLED="yes" <-- I actually don't have NetworkManager
installed, I use the network service<br>
ONBOOT=yes<br>
HWADDR=00:50:56:A9:17:C8<br>
TYPE=Ethernet<br>
BOOTPROTO=none<br>
IPADDR=156.56.241.83<br>
PREFIX=24<br>
GATEWAY=156.56.241.254<br>
DNS1=129.79.1.1<br>
DNS2=129.79.5.100<br>
DOMAIN=dlib.indiana.edu<br>
DEFROUTE=yes<br>
IPV4_FAILURE_FATAL=yes<br>
IPV6INIT=no<br>
NAME="System eth0"<br>
UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03<br>
<br>
the eth1 setup is similar -- except it doesn't have gateway, dns, or
domain. For my aliases, I have ifcfg-eth0:x (x=0-5) which look like
this:<br>
DEVICE=eth0:0<br>
BOOTPROTO=static<br>
BROADCAST=156.56.241.255<br>
IPADDR=156.56.241.26<br>
NETMASK=255.255.255.0<br>
NETWORK=156.56.241.0<br>
ONBOOT=yes<br>
<br>
When I do an equivalent setup on RHEL7 (and I change the device
names to ens32 and ens33) I get a "no device found for connection
'ens32:0'.<br>
<br>
So I don't know how to set up a second address to the first
interface using that method. In some attempts it was overwriting
the private network's address with the alias address, and on
occasion a new "Wired connection n" would appear.<br>
<br>
So I tried using nmcli to add a secondary address to the interface:<br>
nmcli con edit ens32<br>
goto ipv4<br>
goto addresses<br>
add 156.56.241.201/24<br>
back<br>
save<br>
activate<br>
Everything looks ok: There is a secondary address on the ens32
interface, my route looks ok, and everything is the way I want it.<br>
<br>
It appears that 'activate' doesn't disturb existing connections, so
that's good, although I worry a little about all of my network
addresses on that interface going through the same configuration --
it seems like a potential problem spot.<br>
<br>
I reboot the system to make sure everything is good.<br>
<br>
It doesn't: The default route is gone and the link-local route got
added. The secondary addresses are there, though -- as is a brand
new ens32 entry, with a different uuid. The newly created one is
active and it is missing all of the gateway information for the ip
addresses.<br>
<br>
I can delete the uuid and up the old one and everything comes back
to the way it was before the reboot.<br>
<br>
So...did I do something that causes networkmanager to get confused?
Did I find a bug? Is there an easier (and less fragile!) way to do
what I want to do?<br>
<br>
<br>
Brian<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">On 01/13/2014 11:31 AM, Stephen John
Smoogen wrote:<br>
</div>
<blockquote
cite="mid:CANnLRdgLBj6Tm2VOj3G9th1ON-hQEg_NwsfxTTG7N8cCOWx+ZA@mail.gmail.com"
type="cite">
<div dir="ltr"><br>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On 13 January 2014 08:45, Brian
Wheeler <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:bdwheele@indiana.edu" target="_blank">bdwheele@indiana.edu</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> Is it just me or is
basically impossible to manage networks using nmcli?
I've not been able to find any documentation that helps.<br>
<br>
Here's what I've got -- My site is pretty traditional:
static IPs, default gateways, and alias addresses. On
RHEL6 I'd just use the ifcfg-eth0 and ifcfg-eth0:0 style
of managing it, but in RHEL 7 that doesn't seem to work
and I keep getting duplicate interfaces that are
configured but not active, the route disappears on
reboot, and I can't add and remove aliases as needed
without bringing down the entire interface.<br>
<br>
Does anyone know of a good resource for dealing with
NetworkManager for this style of configuration? The
RHEL 7 Networking guide isn't terribly helpful because
it seems like >90% is wifi, teaming, vpn, bridging,
and how to use the gui -- none of which are applicable
to my use case (but I do recognize their importance)<br>
<br>
Between nmcli and firewall-cmd it is almost like I've
been sucked back in time to the days when I was an AIX
admin where you had to use the tools to maintain
active/configured settings and you couldn't just edit
the config files.<br>
<br>
</div>
</blockquote>
<div><br>
</div>
<div>Do not worry. It hates everyone with the malevolence of
a million demons being made to tell the truth.</div>
<div><br>
</div>
<div>So what are you needing on this? 2 Ip addresses off of
one physical adapter? Could you send what you have tried
or used in the past so I can see what might be needed to
be different?</div>
<div><br>
</div>
<div><br>
</div>
</div>
<div><br>
</div>
-- <br>
<div dir="ltr">Stephen J Smoogen.<br>
<br>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
rhelv6-beta-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rhelv6-beta-list@redhat.com">rhelv6-beta-list@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/rhelv6-beta-list">https://www.redhat.com/mailman/listinfo/rhelv6-beta-list</a></pre>
</blockquote>
<br>
</body>
</html>