What's the right way to assign an IP alias to an ethernet interface that you want to bring up and down manually, not on boot?
I tried the old way of making an ifcfg-eth3:0 file and it does work with the ifup, ifdown commands, but even though I specified onboot=no, it activated at boot-up.
Am 04.03.2014 00:24, schrieb Les Mikesell:
What's the right way to assign an IP alias to an ethernet interface that you want to bring up and down manually, not on boot?
I tried the old way of making an ifcfg-eth3:0 file and it does work with the ifup, ifdown commands, but even though I specified onboot=no, it activated at boot-up.
/usr/share/doc/initscripts-9.03.40/sysconfig.txt
ONBOOT=yes|no (not valid for alias devices; use ONPARENT) ONPARENT=yes|no Whether to bring up the device when the parent device is brought up. Default: yes
Alexander
On 3/3/2014 4:34 PM, Alexander Dalloz wrote:
Am 04.03.2014 00:24, schrieb Les Mikesell:
What's the right way to assign an IP alias to an ethernet interface that you want to bring up and down manually, not on boot?
I tried the old way of making an ifcfg-eth3:0 file and it does work with the ifup, ifdown commands, but even though I specified onboot=no, it activated at boot-up.
If I'm understanding the question correctly...
to bring the link up: # ifconfig eth0:4 xxx.xxx.xxx.xxx broadcast xxx.xxx.xxx.xxx netmask 255.255.255.xxx up
to bring the link down: # ifconfig eth0:4 xxx.xxx.xxx.xxx broadcast xxx.xxx.xxx.xxx netmask 255.255.255.xxx down
and don't forget about adding new routing... # route add -host xxx.xxx.xxx.xxx dev eth0:4
adjust interface names to match your install.
On Mon, Mar 3, 2014 at 5:34 PM, Alexander Dalloz ad+lists@uni-x.org wrote:
What's the right way to assign an IP alias to an ethernet interface that you want to bring up and down manually, not on boot?
I tried the old way of making an ifcfg-eth3:0 file and it does work with the ifup, ifdown commands, but even though I specified onboot=no, it activated at boot-up.
/usr/share/doc/initscripts-9.03.40/sysconfig.txt
ONBOOT=yes|no (not valid for alias devices; use ONPARENT) ONPARENT=yes|no Whether to bring up the device when the parent device is brought up. Default: yes
That worked, thanks! I was trying to find it in the RedHat online docs but it was mostly about NetworkManger.