How do I set static address?

Discussion in 'General' started by Leow, Jan 2, 2009.

  1. Leow

    Leow New Member

    Hello,

    I was following this how-to. As I reach the network configuration part, I have tried putting in his example address, netmask, network, broadcast and gateway address. It turned out to be not working for me.

    How do I know my details? I have searched in my Belkin wireless G-router website at 192.168.2.1 but there was no such details. By the way, I use dhcp. I am not sure if I can change tha in my server to a static address.

    Can anyone help here?

    Thanks, greatly.

    :)
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Try 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
    auto eth0
    iface eth0 inet static
            address 192.168.2.100
            netmask 255.255.255.0
            network 192.168.2.0
            broadcast 192.168.2.255
            gateway 192.168.2.1
     
  3. Leow

    Leow New Member

    Hi Falko, Thank you.

    I will try it later, as I am fixing the partitioning part with my hard drive 0. Earlier it was okay, now I am just arranging my partitions again so it is easier to manage.

    Thanks a lot for your help. :) I will definitely post back if it works or not.

    Thanks, again.
     
    Last edited: Jan 5, 2009
  4. Leow

    Leow New Member

    Hi Falko,

    It works. Thank you very much.

    :)
     
  5. falko

    falko Super Moderator ISPConfig Developer

    Is your system in a local network?
     

Share This Page