Results 1 to 6 of 6

Thread: Multiple IP's

  1. #1

    Default Multiple IP's

    I am trying to setup a range of ip's on one of the Nics on my Suse box. It will be our new plesk server. Can someone point me in the direction to add this range of IP's to the nic. Like I would like to have for instance 192.168.1.5 to 192.168.1.50 on the NIC. Thanks in advance for any help.

  2. #2

    Default Re: Multiple IP's

    I guess you don't set this at your NIC level but at your router/server level??
    How does a linux geek make love??

    - rtfm; unzip; strip; touch; finger; mount; fsck; more; yes; umount; zip; sleep;

  3. #3

    Default Re: Multiple IP's

    Although you can restrict possible IP's by setting it to a static address and add that range (you can't actually put a range but you can put every IP You want it to have). I guess to have it working you'd need to setup the default route and change the IP. If nothing is restricting Your connection like a router/dhcp server then it should work just fine.
    How does a linux geek make love??

    - rtfm; unzip; strip; touch; finger; mount; fsck; more; yes; umount; zip; sleep;

  4. #4
    Camalen NNTP User

    Default Re: Multiple IP's

    lunchboxfl wrote:

    > I am trying to setup a range of ip's on one of the Nics on my Suse box.
    > It will be our new plesk server. Can someone point me in the direction
    > to add this range of IP's to the nic. Like I would like to have for
    > instance 192.168.1.5 to 192.168.1.50 on the NIC. Thanks in advance for
    > any help.


    IIRC, YaST network card module should allow you to get that.

    At least when using "ifup" (traditional method) this option is available
    under nic's configuration. Not sure if the same option is available when
    using netwokmanager, though :-?.

    Greetings,

    --
    Camalen

  5. #5
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: Multiple IP's

    You can bind multiple IPs to a NIC. There are some comments in /etc/sysconfig/network/ifcfg.template that suggest that what you need to do is add lines like this to /etc/sysconfig/network/ifcfg-eth0 of the form:

    IPADDR_1=192.168.1.5
    IPADDR_2=192.168.1.6

    and so on. BTW it doesn't have to be _1, _2, etc, just unique suffixes. I haven't tried this, but it should be easy to verify.

    Another way might simply be to add an init script that runs after the interface comes up and calls the "ip" utility to bind additional addresses in a bash loop.

  6. #6
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    10,833
    Blog Entries
    2

    Default Re: Multiple IP's

    I have done this through YAST as Camalen suggests.

    Just list the IP addresses you wish to bind.
    Configure your Default router (Gateway router)
    Don't forget to configure your DNS servers and to check the option to update your Hosts file with the Hostname you enter.

    Afterwards, verify both the Hosts file entry and run ifconfig.

    HTH,
    Tony

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •