Re: How to configure a DHCP + (2nd) Static address (eg on eth0+eth0:0)?
- From: Andrei Borzenkov <arvidjaar gmail com>
- To: Dan Williams <dcbw redhat com>, Derek Atkins <warlord MIT EDU>
- Cc: networkmanager-list gnome org
- Subject: Re: How to configure a DHCP + (2nd) Static address (eg on eth0+eth0:0)?
- Date: Wed, 30 Sep 2015 06:26:13 +0300
29.09.2015 20:54, Dan Williams пишет:
Basically I want to automate NM doing, effectively:
ifconfig eth0:0 192.168.x.y
Don't do this with interface aliases; the kernel is perfectly capable of
using more than one address on the same interface. Simply do:
ip addr add 192.168.x.y/24 dev eth0
and magically you'll have two.
This makes addresses invisible in ifconfig output and that may confuse
legacy software (I know about at least one such case). Adding "label
xxx" will emulate legacy aliases enough to make them appear as "normal"
interface.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]