Re: Multiple IP with one nic

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

 



Mike McGrath:
>> create file:
>>
>> /etc/sysconfig/network-scripts/ifcfg-eth0:0
>>
>> in it put:
>>
>> #######
>> DEVICE=eth0:0
>> BOOTPROTO=static
>> BROADCAST=10.10.0.255
>> IPADDR=10.10.0.150
>> NETMASK=255.255.255.0
>> NETWORK=10.10.0.0
>> ONBOOT=yes
>> TYPE=Ethernet


Christopher K. Johnson:
> Actually these aliased interface definitions inherit settings from the 
> parent interface defined by ifcfg-eth0
> So all you need in ifcfg-eth0:0 etcetera are the changed settings, e.g.
> 
> DEVICE=eth0:0
> IPADDR=10.10.0.150

I'm keen on doing something similar, but I notice that there's several
apparent duplicates of these files:

  /etc/sysconfig/network-scripts/ifcfg-eth0
  /etc/sysconfig/networking/devices/ifcfg-eth0
  /etc/sysconfig/networking/profiles/default/ifcfg-eth0

Should one be modified and the rest left alone?  Should they all be the
same as each other?

(Though in my case the file's named "ifcfg-lan" since it seemed to be
using that sort of naming scheme, instead of device naming.)

-- 
Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux