Find the answer to your Linux question:
Results 1 to 4 of 4
Is there a way to set a static IP in linux?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2005
    Posts
    29

    Static IP


    Is there a way to set a static IP in linux?

  2. #2
    Just Joined!
    Join Date
    Jul 2005
    Posts
    28
    OfCourse you can. the way depends on your distro.
    What is it?

  3. #3
    Linux Newbie
    Join Date
    Jun 2005
    Location
    Dhaka, Bangladesh.
    Posts
    150
    Now a days, Most of the version of linux has own graphical tools to configure network.
    Which distro linux you are using?
    S. M. Ibrahim
    Registered Linux User # 394440

    Pentium-IV 3.00 Ghz(Cache -2MB, 64 bit), 512 MB RAM , 128 MB agp, 160 GB Hdd (SATA)

  4. #4
    Linux Guru
    Join Date
    May 2004
    Location
    forums.gentoo.org
    Posts
    1,817
    Try
    Code:
    ifconfig <ipaddress> netmask <netmask> gw <gateway> eth0
    I don't think you need to include the 'gw <gateway>' if you only have one way to the internet (only one NIC and no modem). '<netmask>' must match the netmask of the network it's connected to. Example:
    Code:
    ifconfig 192.168.128.18 netmask 255.255.255.240 eth0
    /IMHO
    //got nothin'
    ///this use to look better

Posting Permissions

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