[ale] vips in rhel/centos 7

Jim Kinney jim.kinney at gmail.com
Tue Sep 30 15:00:04 EDT 2014


So the new NetworkManager has the ability to do much, MUCH more than the
old on in 6.5 (which was turned off by default by me).

The IPV4 section will add as manay additional IPs as needed creating a file
like this:

TYPE=Ethernet
BOOTPROTO=none
IPADDR0=170.140.61.59
PREFIX0=24
GATEWAY0=170.140.61.2
IPADDR1=192.168.100.1
PREFIX1=24
DNS1=170.140.1.1
DNS2=170.140.2.1
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=no
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=enp0s25
UUID=f00e6346-be4c-40ce-b1db-17f926a8edba
DEVICE=enp0s25
ONBOOT=yes
HWADDR=00:26:B9:8E:73:29

Yes. ifconfig is now dead (<sob>). Must learn new tool that give craptons
of data in either pretty or terse format.


nmcli d show  (give loads in terse format).

nmcli  d show
GENERAL.DEVICE:                         enp0s25
GENERAL.TYPE:                           ethernet
GENERAL.HWADDR:                         00:26:B9:8E:73:29
GENERAL.MTU:                            1500
GENERAL.STATE:                          100 (connected)
GENERAL.CONNECTION:                     enp0s25
GENERAL.CON-PATH:
/org/freedesktop/NetworkManager/ActiveConnection/2
WIRED-PROPERTIES.CARRIER:               on
IP4.ADDRESS[1]:                         ip = 170.140.61.59/24, gw =
170.140.61.2
IP4.ADDRESS[2]:                         ip = 192.168.100.1/24, gw =
170.140.61.2
IP4.DNS[1]:                             170.140.1.1
IP4.DNS[2]:                             170.140.2.1
IP6.ADDRESS[1]:                         ip = fe80::226:b9ff:fe8e:7329/64,
gw = ::

GENERAL.DEVICE:                         lo
GENERAL.TYPE:                           loopback
GENERAL.HWADDR:                         00:00:00:00:00:00
GENERAL.MTU:                            65536
GENERAL.STATE:                          10 (unmanaged)
GENERAL.CONNECTION:                     --
GENERAL.CON-PATH:                       --
IP4.ADDRESS[1]:                         ip = 127.0.0.1/8, gw = 0.0.0.0
IP6.ADDRESS[1]:                         ip = ::1/128, gw = ::


nmcli -p  d show
===============================================================================
                           Device details (enp0s25)
===============================================================================
GENERAL.DEVICE:                         enp0s25
-------------------------------------------------------------------------------
GENERAL.TYPE:                           ethernet
-------------------------------------------------------------------------------
GENERAL.HWADDR:                         00:26:B9:8E:73:29
-------------------------------------------------------------------------------
GENERAL.MTU:                            1500
-------------------------------------------------------------------------------
GENERAL.STATE:                          100 (connected)
-------------------------------------------------------------------------------
GENERAL.CONNECTION:                     enp0s25
-------------------------------------------------------------------------------
GENERAL.CON-PATH:
/org/freedesktop/NetworkManager/ActiveConnection/2
-------------------------------------------------------------------------------
WIRED-PROPERTIES.CARRIER:               on
-------------------------------------------------------------------------------
IP4.ADDRESS[1]:                         ip = 170.140.61.59/24, gw =
170.140.61.2
IP4.ADDRESS[2]:                         ip = 192.168.100.1/24, gw =
170.140.61.2
IP4.DNS[1]:                             170.140.1.1
IP4.DNS[2]:                             170.140.2.1
-------------------------------------------------------------------------------
IP6.ADDRESS[1]:                         ip = fe80::226:b9ff:fe8e:7329/64,
gw = ::
-------------------------------------------------------------------------------

===============================================================================
                              Device details (lo)
===============================================================================
GENERAL.DEVICE:                         lo
-------------------------------------------------------------------------------
GENERAL.TYPE:                           loopback
-------------------------------------------------------------------------------
GENERAL.HWADDR:                         00:00:00:00:00:00
-------------------------------------------------------------------------------
GENERAL.MTU:                            65536
-------------------------------------------------------------------------------
GENERAL.STATE:                          10 (unmanaged)
-------------------------------------------------------------------------------
GENERAL.CONNECTION:                     --
-------------------------------------------------------------------------------
GENERAL.CON-PATH:                       --
-------------------------------------------------------------------------------
IP4.ADDRESS[1]:                         ip = 127.0.0.1/8, gw = 0.0.0.0
-------------------------------------------------------------------------------
IP6.ADDRESS[1]:                         ip = ::1/128, gw = ::
-------------------------------------------------------------------------------


On Tue, Sep 30, 2014 at 2:07 PM, Jim Kinney <jim.kinney at gmail.com> wrote:

> I did a direct file edit and no luck. I did do old-school one file per IP.
> I'll go try again with NetworkManager. I see it has a way to add additional
> IPs in the gui.
>
> This is for a simple issue: new switch has a 192.168.100.X IP. Need to be
> able to connect to it to get it set up so I can install more bit-slinging
> happy toys in a rack.
>
> On Tue, Sep 30, 2014 at 1:23 PM, Lightner, Jeff <JLightner at dsservices.com>
> wrote:
>
>>   Did you do the setup using the config tool or did you do it by editing
>> a file from command line?
>>
>>
>>
>> Haven’t done it on RHEL7 yet but on later versions of RHEL6 it was using
>> the Network Manager rather than the network to do configurations and I
>> noticed that alias IPs (along with the primary IP) had to be configured in
>> the main ifcfg-eth0 file in /etc/sysconfig/network-scripts rather than in a
>> separate ifcfg-eth0:1 file as they did previously.   In RHEL6 we disabled
>> Network Manager to return to previous functionality mainly because we
>> couldn’t see the aliases with the old tool (there was a newer one to see
>> them but it annoyed others).
>>
>>
>>
>> My note at the time said:
>>
>> You can’t see the aliases with ifconfig but can with nm-tool
>>
>>
>>
>> This link is the one I found that helped me and I added comments when I
>> worked on it that may be helpful:
>>
>> https://access.redhat.com/site/solutions/32652
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *From:* ale-bounces at ale.org [mailto:ale-bounces at ale.org] *On Behalf Of *Jim
>> Kinney
>> *Sent:* Tuesday, September 30, 2014 12:09 PM
>> *To:* Atlanta Linux Enthusiasts - Yes! We run Linux!
>> *Subject:* [ale] vips in rhel/centos 7
>>
>>
>>
>> Anyone running virtual IPs in RHEL/Centos 7? I set up a new desktop and
>> did my usual eth0 -> eth0:1 vip setup (OK so it's enp0s25 -> enp0s25:1) and
>> a restarting of NetworkManager shows no new virtual interface.
>>
>>
>> --
>>
>> --
>> James P. Kinney III
>>
>> Every time you stop a school, you will have to build a jail. What you
>> gain at one end you lose at the other. It's like feeding a dog on his own
>> tail. It won't fatten the dog.
>> - Speech 11/23/1900 Mark Twain
>>
>> * http://heretothereideas.blogspot.com/
>> <http://heretothereideas.blogspot.com/>*
>>
>>
>>
>> Athena®, Created for the Cause™
>>
>> Making a Difference in the Fight Against Breast Cancer
>>
>> _________________________________________________________
>>
>> CONFIDENTIALITY NOTICE: This e-mail may contain privileged
>>
>> or confidential information and is for the sole use of the intended
>>
>> recipient(s). If you are not the intended recipient, any disclosure,
>>
>> copying, distribution, or use of the contents of this information
>>
>> is prohibited and may be unlawful. If you have received this electronic
>>
>> transmission in error, please reply immediately to the sender that
>>
>> you have received the message in error, and delete it. Thank you.
>>
>>
>> _______________________________________________
>> Ale mailing list
>> Ale at ale.org
>> http://mail.ale.org/mailman/listinfo/ale
>> See JOBS, ANNOUNCE and SCHOOLS lists at
>> http://mail.ale.org/mailman/listinfo
>>
>>
>
>
> --
> --
> James P. Kinney III
>
> Every time you stop a school, you will have to build a jail. What you gain
> at one end you lose at the other. It's like feeding a dog on his own tail.
> It won't fatten the dog.
> - Speech 11/23/1900 Mark Twain
>
>
> *http://heretothereideas.blogspot.com/
> <http://heretothereideas.blogspot.com/>*
>



-- 
-- 
James P. Kinney III

Every time you stop a school, you will have to build a jail. What you gain
at one end you lose at the other. It's like feeding a dog on his own tail.
It won't fatten the dog.
- Speech 11/23/1900 Mark Twain


*http://heretothereideas.blogspot.com/
<http://heretothereideas.blogspot.com/>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20140930/0088b7fe/attachment.html>


More information about the Ale mailing list