IP adres range for server in datacenter

Discussion in 'Installation/Configuration' started by Appie Thrasher, Dec 14, 2009.

  1. Appie Thrasher

    Appie Thrasher Member HowtoForge Supporter

    Hi all,

    I am finaly moving my server from home to an data center.
    Now I have installed it (the perfect setup with Debian 5) clean untill the chancing of the ip-adres.

    At home I must use the following as stated in the howto,

    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
    #allow-hotplug eth0
    #iface eth0 inet dhcp
    auto eth0
    iface eth0 inet static
            address 192.168.0.100
            netmask 255.255.255.0
            network 192.168.0.0
            broadcast 192.168.0.255
            gateway 192.168.0.1
    And chance the address to the one I used for my server.

    But now in the data center I must obvious use the ip given to me, But do i chance the network and broadcast also to the same ip range?
    Something like this:

    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
    #allow-hotplug eth0
    #iface eth0 inet dhcp
    auto eth0
    iface eth0 inet static
            address 93.140.xxx.xxx
            netmask 255.255.255.0
            network 93.140.xxx.0
            broadcast 93.140.xxx.255
            gateway 93.140.xxx.254
    Or must i leave it as the home networking ip range so 192.168.0.0 and 192.168.0.255

    TIA
     
  2. Mark_NL

    Mark_NL Member

    No, 192.168.0.x is a local range, and should not be used for WAN stuff, since the routers won't rout it at all .. anyway .. to not get to technical, from what info you give us, i think it should be something like this:

    Code:
    auto eth0
    iface eth0 inet static
            address 93.140.xxx.yyy
            netmask 255.255.255.0
            network 93.140.xxx.0
            broadcast 93.140.xxx.255
            gateway 93.140.xxx.254
    I don't know if your ISP provided you with all those fields, so the network and gateway is a guess ;-)
     
    Last edited: Dec 15, 2009
  3. Appie Thrasher

    Appie Thrasher Member HowtoForge Supporter

    Yes that's what I thought also.
    I have got provided to me the IPadres the subnetmask and the gateway but not the network and broadcast...
     
  4. Mark_NL

    Mark_NL Member

    you can actually calculate those when you have the IP and netmask ..
    so my next question: what is your ip and netmask?
     
  5. falko

    falko Super Moderator Howtoforge Staff

  6. Appie Thrasher

    Appie Thrasher Member HowtoForge Supporter

    Think I got it now with your help.

    But 1 qustion left what does it do the network & broadcast is it some kind of dhcp server??
     
  7. Appie Thrasher

    Appie Thrasher Member HowtoForge Supporter

    We had it correct the whole time i guess
    Code:
    network 93.140.xxx.0
            broadcast 93.140.xxx.255
            gateway 93.140.xxx.254
     
  8. Mark_NL

    Mark_NL Member

    Broadcastaddress can be seen as some kind of radiochannel. Everything you say on that frequency can be heared by the people who are tuned in onto that frequency. The network can be seen as the range the frequency can get (f.e. you cannot a get spanish radio channel in your country).

    http://compnetworking.about.com/cs/protocolsdhcp/g/bldef_dhcp.htm

    http://compnetworking.about.com/od/workingwithipaddresses/a/subnetmask.htm
     

Share This Page