Debian Question

Discussion in 'Installation/Configuration' started by AngelDrago, Oct 25, 2005.

  1. AngelDrago

    AngelDrago Member

    hi everyone with all the problems i was having i deceide to give debian a try the wired thing is it found my domain name and my nameservers :confused: anyway my question is this... if i understand it right from the perfect setup for debian

    for addional ip's i need to change this from the original (below)
    127.0.0.1 localhost.localdomain localhost server1
    192.168.0.100 server1.example.com server1
    192.168.0.101 virtual-ip1.example.com virtual-ip1

    to this...
    127.0.0.1 localhost.localdomain localhost server1
    192.168.0.100 server1.mydomain.com server1
    192.168.0.101 virtual-ip1.mydomain.com virtual-ip1
    192.168.0.102 virtual-ip2.mydomain.com virtual-ip2
    192.168.0.103 virtual-ip3.mydomain.com virtual-ip3

    mydomain= primary domain and not new domain :confused:

    Correct!!!

    anyhelp is alway very appriciated
    Thank you all
    AngelDrago
     
  2. falko

    falko Super Moderator Howtoforge Staff

    What's your exact question?
     
  3. AngelDrago

    AngelDrago Member

    i got five ip's that i need to implement and i never used the debian before and i do not like to make mistakes... it guess i like to get conformation i'm doing it right.. if i'm not please advice me.. it's seems so much easier in suse(LOL)

    Thank you
    AngelDrago
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Yes, looks ok.
     
  5. themachine

    themachine New Member HowtoForge Supporter

    I believe what your looking for is how to configure the IP address on your network device.

    Networking info is found in the file '/etc/network/interfaces' file. In order to add IP's you need to edit this file. For example, it probably looks like:

    Code:
    auto lo
    iface lo inet loopback
    
    auto eth0
    iface eth0 inet static
    address 10.1.1.10
    netmask 255.0.0.0
    gateway 10.1.1.1
    
    Generally, when you are adding additional IP addresses... you create them as "alias" devices to eth0 (unless you want to add them to a second interface card). Aliases are in the form of "eth0:0, eth0:1, etc". So, you will need to add something like the following for *each* additional IP address:

    Code:
    auto eth0:0
    iface eth0:0 inet static
    address 10.1.1.100
    netmask 255.0.0.0
    
    auto eth0:1
    iface eth0:1 inet static
    address 10.1.1.101
    netmask 255.0.0.0
    
    ...etc

    Then of course restart networking and verify...

    Code:
    /etc/init.d/networking restart
    
    ifconfig -a
    

    Hope that helps.
     
    Last edited: Oct 25, 2005
  6. AngelDrago

    AngelDrago Member

    thank you themachine... i understood that one but was not sure with the other one and thank you falko for clarification for the above...

    Peace
    AngelDrago
     
  7. stlshawn

    stlshawn New Member

    I must be doing something wrong

    OK, so i'm trying to assign three ip's to this machine on the same nic card, so i go into /etc/network/interfaces and alther things there.

    I don't know why, but when i change eth0 to eth0:0 things go badly.
    Here's how it sets now,

    now if i change the first eth0 to eth0:0 the machine is unreachable.
    This is a debian install, if that makes a difference.
    Is there something else i should be doing, is there some other file that needs altered?:eek:
     
  8. stlshawn

    stlshawn New Member

    WOO HOO! got it to work

    :D
    OK, so i needed to make a change.....
    I had to leave the part that said eth0 as eth0 and add one for eth0:0, eth0:1, and so forth.

    here's the final one.
    Code:
    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).
    
    # The loopback network interface
    auto lo
    iface lo inet loopback
    
    # The primary network interface
    auto eth0
    iface eth0 inet static
            address 24.182.139.77
            netmask 255.255.255.248
            network 24.182.139.72
            broadcast 24.182.139.79
            gateway 24.182.139.73
            # dns-* options are implemented by the resolvconf package, if installed
            dns-nameservers 24.217.0.5
            dns-search arwenspets.com
    
    auto eth0:0
    iface eth0:0 inet static
            address 24.182.139.76
            netmask 255.255.255.248
            network 24.182.139.72
            broadcast 24.182.139.79
            gateway 24.182.139.73
            # dns-* options are implemented by the resolvconf package, if installed
            dns-nameservers 24.217.0.5
            dns-search arwenspets.com
    
    auto eth0:1
    iface eth0:1 inet static
            address 24.182.139.75
            netmask 255.255.255.248
            network 24.182.139.72
            broadcast 24.182.139.79
            gateway 24.182.139.73
            # dns-* options are implemented by the resolvconf package, if installed
            dns-nameservers 24.217.0.5
            dns-search arwenspets.com
    ahh, searching for answers, that's what life's all about. I'm lovin' this whole linux thing.

    ISPConfig is a wonderful thing, as is the whole linux revolution. I'm having more fun learning than i have in years.

    Be Happy!
    Shawn
     
    Last edited: Jan 18, 2006
  9. falko

    falko Super Moderator Howtoforge Staff

    Yes, that's right. :)
     

Share This Page