Author Topic: Cannot Set a Static IP Address.  (Read 1407 times)

Offline Magickman

  • Full Member
  • ***
  • Posts: 114
Cannot Set a Static IP Address.
« on: December 14, 2011, 06:02:24 PM »
I am all about internet security, and PL Linux seems to be the most secure distro I have ran so far. I was reading in here that you could set a static IP in Network Center, Configure, and change "Get DNS servers from DHCP" I changed this to 127.0.0.1, and Gateway configured automatically. But, upon a reboot, I could not go online with this configuration. I am looking for a way to configure a static IP, with port 80 open for internet and synaptic, and masking my real IP address. Anyone?
« Last Edit: December 17, 2011, 02:01:59 PM by Magickman »

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Cannot Set a Static IP Address.
« Reply #1 on: December 14, 2011, 06:16:36 PM »
I believe you need to be assigned a static IP from your ISP.     
You might try setting up a proxy server. Use "proxy server" as your search term.     
http://www.pclinuxos.com/forum/index.php?action=search     

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11688
  • ----IOFLU----
Re: Cannot Set a Static IP Address.
« Reply #2 on: December 14, 2011, 06:21:38 PM »
Magickman:

127.0.0.1 is the localhost address of every computer, by definition. You need to set an IP address that is unique on your local network. Typically this would be 192.168.0.<whatever>. It should also be a number out of the range in which DHCP numbers are assigned.

My router is set to assign up to 50 addresses starting with 192.168.1.100. My static address is 192.168.1.99, so as not to interfere with other computers using DHCP addressing. It could have been any address outside of the DHCP range. I just happened to choose this one.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline AS

  • Hero Member
  • *****
  • Posts: 4098
  • Have a nice ... night!
Re: Cannot Set a Static IP Address.
« Reply #3 on: December 14, 2011, 06:38:20 PM »
I am all about internet security, and PL Linux seems to be the most secure distro I have ran so far. I was reading in here that you could set a static IP in Network Center, Configure, and change "Get DNS servers from DHCP" I changed this to 127.0.0.1, and Gateway configured automatically. But, upon a reboot, I could not go online with this configuration. I am looking for a way to configure a static IP, with port 80 open for internet and synaptic, and masking my real IP address. Anyone?

Look like there is a bit of confusion:
Code: [Select]
+--------------+                     +-----------------------------------------+
| COMPUTER     |<------------------> |            ROUTER (xDSL ?)              | <-------------------> INTERNET
| private IP   |                     | Private IP         |     Public IP      |
| 192.168.0.1  |                     | 192.168.0.254      |  xxx.yyy.zzz.kkk   |
+--------------+                     +-----------------------------------------+

the Public IP, that one assigned to your router external interface, will be assigned from your ISP, either static or dynamic depending on your agreement with the ISP.

the private IPs could be either static or dynamic. Generally the router have a fix IP address, and act like DHCP server so it can distribute IP addresses to the computers connected to your LAN.

You router will get DNS addresses from your ISP, or you may configure the DNS addresses in your router.
Your router may (or may not) work as DNS server for your computer, if yes, in your computer you will need to use 192.168.0.254 as DNS address.
Your router, from your computer point of view is also the default gateway = 192.168.0.254

What are you trying to do ?   Do you want a web server running on your computer to be reachable from internet ?


Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 11054
  • MLUs Forever!
Re: Cannot Set a Static IP Address.
« Reply #4 on: December 14, 2011, 07:03:21 PM »
It really depends on whether one is using a router between the PC and the 'wild wild web' or maybe the PC is connected directly to the ISP .......  and then can depend on the ISP and what arrangement they have in place for issuing IP addresses to their customers.

@Magickman, a full description of your connection devices would allow a more accurate answer to your question.

Nonetheless the 127.0.0.1  address will not work .....  you need an address a router recognises or if connected directly one which the ISP issues.
MLUs rule the roost!

Linux XPS 3.4.48-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6266
Re: Cannot Set a Static IP Address.
« Reply #5 on: December 14, 2011, 07:33:31 PM »
Quote
[ink@mtz ~]$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1
[ink@mtz ~]$

There are instructions on this forum on how to set up DNS cache using dnsmasq and bind and the default DNS address is 127.0.0.1 for dnsmasq. I remember reading a thread here that says bind does not like that address so i assume his problem is a misconfigured dsnmasq.

I think he could not go online with his configuration because he did not set his dns cache service to start at boot time.

Original poster, could you post the threads you read up on how to do what attempted to do? You can set up static ip address if you are connected to a local network. If your computer is connected directly to the internet, you will need to contact your internet service provide and ask for it and they will probably charge you extra.

what does this command give you? This is the easiest way we can tell if you are on a local network and can set static ip address without asking anybody for permission

ifconfig
« Last Edit: December 14, 2011, 07:36:25 PM by muungwana »
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline Magickman

  • Full Member
  • ***
  • Posts: 114
Re: (Solved) Cannot Set a Static IP Address.
« Reply #6 on: December 16, 2011, 09:59:11 PM »
Thanks for the useful advice, friends. I have it now, my IP is static with my real IP. My internet is faster now. I wonder.....

Offline Magickman

  • Full Member
  • ***
  • Posts: 114
Re: (Solved) Cannot Set a Static IP Address.
« Reply #7 on: December 17, 2011, 02:05:04 PM »
Thanks for the useful advice, friends. I have it now, my IP is static with my real IP. My internet is faster now. I wonder.....

All of yesterday I used this static address, then shut down. This morning I booted, and was showing a connection with Knemo, and could not go online with Firefox, or Thunderbird. I didn't try Synaptic. I checked, the IP address showing in configuration is the same as the one showing in Knemo. What am I doing wrong? Is it a script I need to run?

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11688
  • ----IOFLU----
Re: (Solved) Cannot Set a Static IP Address.
« Reply #8 on: December 17, 2011, 02:17:16 PM »
Thanks for the useful advice, friends. I have it now, my IP is static with my real IP. My internet is faster now. I wonder.....

All of yesterday I used this static address, then shut down. This morning I booted, and was showing a connection with Knemo, and could not go online with Firefox, or Thunderbird. I didn't try Synaptic. I checked, the IP address showing in configuration is the same as the one showing in Knemo. What am I doing wrong? Is it a script I need to run?

We don't know what you may, or may not, have done wrong, because you didn't tell us exactly what you did. You also didn't answer the questions about how it is you are connected to the internet; what hardware... is a router involved, or just a modem, and what sort of modem?

Read your posts again, and note, your rather shy on details. ;)
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline Magickman

  • Full Member
  • ***
  • Posts: 114
Re: Cannot Set a Static IP Address.
« Reply #9 on: December 17, 2011, 02:41:28 PM »
OK. I have a Time Warner Cable Modem. My Motherboard has an nVidia Corporation MCP 61 Ethernet onboard modem.
I opened the Wired Ethernet Configuration, clicked on Manual, and entered my correct IP address, Gateway, and Netmask. I reboot. Knemo and Ethernet shows an active connection, but none of my internet programs work. I reset to Automatic IP, reboot, everything now works. I also tried setting DNS Server 1 as the name of my host. Nothing doing.

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11688
  • ----IOFLU----
Re: Cannot Set a Static IP Address.
« Reply #10 on: December 17, 2011, 02:58:45 PM »
OK. I have a Time Warner Cable Modem. My Motherboard has an nVidia Corporation MCP 61 Ethernet onboard modem.
I opened the Wired Ethernet Configuration, clicked on Manual, and entered my correct IP address, Gateway, and Netmask. I reboot. Knemo and Ethernet shows an active connection, but none of my internet programs work. I reset to Automatic IP, reboot, everything now works. I also tried setting DNS Server 1 as the name of my host. Nothing doing.

In a terminal, enter ifconfig        <Enter>

What IP address does it show?
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline kernowyon

  • Full Member
  • ***
  • Posts: 222
Re: Cannot Set a Static IP Address.
« Reply #11 on: December 17, 2011, 03:02:38 PM »
The whole question seems to be a bit muddled.

Are you looking for a static IP for your internet connection (cable, router or whatever) or your own computer or another on your local network?

An IP address will be issued to you by your ISP. That address may be a static one - i.e it never changes - or it may be dynamic, which will change from time to time (usually when you unplug the router or whatever).

A static IP address for your own personal PC at home (the local address if you like - which will probably be 192.168.x.x or 10.x.x.x) will not make any difference to security. It is mostly used for those of us who either run a little home network with stuff being shared for example - or, for the more technical, for folks running a webserver on aDMZ behind a firewall of some sort.

A static IP issued by your ISP equally will not improve security. It will be handy if you want to run a server, access your machine remotely or similar, but that convenience also makes it more likely scumbags will locate your network and run various attacks against it.

If I was in your position, and wanted maximum security, I would go for a good firewall, ideally a dynamically issued IP from your ISP. There are plenty of good websites which can help to get to grips with the basics of networking - and it is time well spent to have a nose through those. Setting DNS servers and fiddling with settings is a sure way to lose connectivity unless you know what you are doing. Each case is different and it isn't easy to give specific instructions to those individual cases without all the details.
Registered Linux User #337641