Mailinglist Archive: opensuse (4547 mails)

< Previous Next >
Re: [SLE] double ip address on the same ethernet card: is it possible?
  • From: Doomtrooper <doom.trooper@xxxxxxx>
  • Date: Fri, 14 May 2004 22:43:32 +0200
  • Message-id: <200405142243.32216.doom.trooper@xxxxxxx>
Another way to temporary add more IP's to the same interface:

ip addr add <anyip/netmaskbits.in.decimal> dev <devicename> label
<devicename:number>
ip link set dev <devicename:number> up

One question: if the mentioned "first method" with separate "ifcfg-eth..."
files for each IP will be obsolete, how can you configure different
bootprotocols in one ifcfg-eth0 file?
BOOTPROTO_1='static'
BOOTPROTO_2='dhcp'

--
____ _
| _ \ ___ ___ _ __ ___ | |_ _ __ ___ ___ _ __ ___ _ __
| | | |/ _ \ / _ \| '_ ` _ \| __| '__/ _ \ / _ \| '_ \ / _ \ '__|
| |_| | (_) | (_) | | | | | | |_| | | (_) | (_) | |_) | __/ |
|____/ \___/ \___/|_| |_| |_|\__|_| \___/ \___/| .__/ \___|_|
|_|


< Previous Next >