Find the answer to your Linux question:
Results 1 to 5 of 5
Here is the situation: i connect to internet through router. The problem is i dont know how to set it up so i can choose my own ip. Here is ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2008
    Posts
    8

    Problem about ip configuration


    Here is the situation: i connect to internet through router.
    The problem is i dont know how to set it up so i can choose my own ip.

    Here is what i've done so far
    in rc.inet1.conf i modified
    IPADDR[0]="IP i want to have"
    NETMASK[0]="255.255.255.0"
    USE_DHCP=""

    GATEWAY="My routers IP"
    The rest of the file was left unchanged.

    IThis should be correct. The problem comes when i need to configure DNS.
    I have played around with resolv.conf, but with no succes. So what do i have to do set up desired ip?

  2. #2
    Linux Engineer Freston's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    1,049
    Welcome to the forums!

    Part of the problem here is the router. Did you set it up through the web interface to accept static IP addresses?

    DNS, indeed, is configured through /etc/resolv.conf. Once you stop using DHCP you will probably need to configure this manually. Perhaps the old config still is in place though, then you can skip this.
    Otherwise you can try this:
    Code:
    # OpenDNS
    nameserver 208.67.222.220
    nameserver 208.67.220.222
    But as said, the most important thing is to tell the router to accept static IP-addresses rather than DHCP.
    Can't tell an OS by it's GUI

  3. #3
    Just Joined!
    Join Date
    Nov 2008
    Posts
    8
    thank you it worked.

    Also aquick question:
    How can you test net configuration withouth restarting pc?

  4. #4
    Linux Engineer Freston's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    1,049
    Quote Originally Posted by Bojevnik
    thank you it worked.


    Quote Originally Posted by Bojevnik
    Also aquick question:
    How can you test net configuration withouth restarting pc?
    Just restarting the services:
    Code:
    /etc/rc.d/rc.inetd restart        # This one isn't always necessary
    /etc/rc.d/rc.inet1 restart
    Can't tell an OS by it's GUI

  5. #5
    Just Joined!
    Join Date
    Nov 2008
    Posts
    8
    Thanks again

Posting Permissions

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