Re: ifcfg-ethX voodoo for a second IP on the same interface

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

 



On Fri, Apr 20, 2012 at 8:20 PM, Sam Varshavchik <mrsam@xxxxxxxxxxxxxxx> wrote:
> For testing purposes I need to add a second IP address to eth0.
>
> eth0 is managed by NetworkManager, and uses dhcp.
>
> I know that if I get rid of NetworkManager and put static IP addresses in
> ifcfg-eth0, I can also sprinkle some magic dust into ifcfg-eth0:1, and have
> the second IP address come up together with the first one.
>
> This does not seem to work with a NetworkManager-managed DHCP-based
> interface.
>
> Basically, is there some voodoo I can throw in a file somewhere that would
> perform the equivalent of:
>
> ip addr add 192.168.0.5 dev eth0 label eth0:1
>
> when eth0 comes up via DHCP, by NetworkManager?
>
>

How about:

#file ifcfg-eth0
#UUID
#HWADDR
#device
ONBOOT=yes
BOOTPROTO=dhcp
NM_CONTROLLED=yes

#file ifcfg-eth0:1
#UUID
#HWADDR
#device
ONBOOT=yes
BOOTPROTO=none
NM_CONTROLLED=no
# static IP settings...
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux