Re: IP Aliasing
"Russ Kunkler" <[email protected]>
| Newsgroups | gmane.linux.redhat.release.enigma |
|---|---|
| Message-ID | <00f901c2e27f$4491b940$7f2501cf@russ> |
That was the answer I was looking for.... I did not have linuxconf loaded on this server so I used the second part of this email and now i'm up and running... Thanks for the help!!!!! Russ ----- Original Message ----- From: "Antonio Galea" <[email protected]> To: "Enigma List" <[email protected]> Sent: Thursday, February 27, 2003 10:48 AM Subject: Re: IP Aliasing > On Thu, 27 Feb 2003, Antonio Galea wrote: > > > In /etc/sysconfig/network-scripts/ you need the 2 files ifcfg-eth0 and > > ifcfg-eth0:0. In the first you define the primary address for the interface, > > and the boot options, like this: > > > > #ifcfg-eth0 > > DEVICE=eth0 > > BOOTPROTO=static > > IPADDR=192.168.1.1 > > NETMASK=255.255.255.0 > > ONBOOT=yes > > > > In the second you just place the IP range, like this: > > > > #ifcfg-eth0:0 > > IPADDR="192.168.1.1-20" > > NETMASK="255.255.255.0" > > > > Then 'service network restart' to reload the config files, and 'ifconfig' to > > see the effect. > > > > Sorry, this stuff only works with linuxconf installed. If you wish to use the > generic range style, look at the comments at the beginning of the file > /etc/sysconfig/network-scripts/ifup-aliases: > > ---------------------------- excerpt ---------------------------------------- > # range specification files: > # > # One can specify ranges of alised ipaddress using ifcfg-$DEV-range* files. > # Specify multiple ranges using multiple files, such as ifcfg-eth0-range0 and > # ifcfg-eth0-range1, etc. In these files, the following configuration variables > # specify the range: > # > # IPADDR_START -- ipaddr to start range at. eg "192.168.30.1" > # IPADDR_END -- ipaddr to end range at. eg "192.168.30.254" > # CLONENUM_START -- interface clone number to start using for this range. > # eg "0" > # The above example values create the interfaces eth0:0 through eth0:253 using > # ipaddrs 192.168.30.1 through 192.168.30.254, inclusive. > # > # Other configuration variables such as NETMASK and BROADCAST may be specified > # in the range file and will apply to all of the ipaddresses in the range. > # Range files also inherit configuration from the ifcfg-$DEV file just like > # normal. > # > # Note that IPADDR_START and IPADR_END are required to be in the same class-c > # block. I.e. IPADDR_START=192.168.30.1 and IPADDR_END=192.168.31.255 is > # not valid. > ---------------------------- excerpt ---------------------------------------- > > Ant9000 > > -- > ____________________________________________________________________________ _ > Dr. Antonio Galea N e t W i s e http://www.netwise.it > Sviluppo tecnico Tecnologie per il Web Tel 0461.421016 Fax 0461.426021 > -------------------------------------------------------------------------- --- > May the Source be with you > -------------------------------------------------------------------------- --- > -- > > > > _______________________________________________ > enigma-list mailing list > [email protected] > https://listman.redhat.com/mailman/listinfo/enigma-list >