Re: multiple IP's - 1 NIC
From: Charles LaCour (nospam_at_lacour.homelinux.com)
Date: 01/17/04
- Next message: linuxquestion_at_yahoo.com: "Re: Grub did not install on dual boot machine."
- Previous message: Kadaitcha Man: "Re: Grub did not install on dual boot machine."
- In reply to: Paul Roddy: "multiple IP's - 1 NIC"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 17 Jan 2004 03:25:01 GMT
Paul Roddy wrote:
> I've done some investigating into how to add multiple IP's to a box and
> found a few ways. My question lies with the ifup-aliases way of adding
> IP's.
>
> I tried adding the following to the file ifcfg-eth0-range1
> 192.168.1.101
> 192.168.1.111
> 0
>
> When I execute ifup script I get the following error:
> /etc/sysconfig/network-scripts/ifup-aliases: line 1: 192.168.1.101: command
> not found
> /etc/sysconfig/network-scripts/ifup-aliases: line 2: 192.168.1.111: command
> not found
> /etc/sysconfig/network-scripts/ifup-aliases: line 3: 0: command not found
> error in ifcfg-eth0-range1: IPADDR_START greater than IPADDR_END
>
> I have been able to bring up the interfaces with adding an ifcfg-eth0:x for
> each IP I want to add but I would rather use the alias file since it does
> not require a file for each IP. Anyone know what I am doing wrong?
>
>
Take a look at
https://listman.redhat.com/archives/valhalla-list/2002-October/msg00098.html
It looks like you should have the following in the file:
IPADDR_START="192.168.1.101"
IPADDR_END="192.168.1.111"
CLONENUM_START="0"
Not just the numbers.
-- Thanks Charles LaCour
- Next message: linuxquestion_at_yahoo.com: "Re: Grub did not install on dual boot machine."
- Previous message: Kadaitcha Man: "Re: Grub did not install on dual boot machine."
- In reply to: Paul Roddy: "multiple IP's - 1 NIC"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|