LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to get static ip (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-get-static-ip-626956/)

smehra24 03-10-2008 06:55 AM

How to get static ip
 
Hi,
anybody knowing hw to get static ip??

acid_kewpie 03-10-2008 07:02 AM

get? what kind of ip? inside a lan you just assign yourself a valid one. on the internet you ask your isp. Actually writing more than 8 words would help in future...

smehra24 03-10-2008 07:07 AM

Quote:

Originally Posted by acid_kewpie (Post 3083797)
get? what kind of ip? inside a lan you just assign yourself a valid one. on the internet you ask your isp. Actually writing more than 8 words would help in future...

Hw can i assign myself a static ip inside a LAN??

pixellany 03-10-2008 07:08 AM

As the man says, more detail is needed. Specifically, describe your network, how you connect to the internet, etc.

Most ISPs will give you a fixed (static) IP, but there is an extra charge.

smehra24 03-10-2008 07:16 AM

Quote:

Originally Posted by pixellany (Post 3083804)
As the man says, more detail is needed. Specifically, describe your network, how you connect to the internet, etc.

Most ISPs will give you a fixed (static) IP, but there is an extra charge.

I've clearly written local area network(private).

acid_kewpie 03-10-2008 07:19 AM

You use system-config-network. And how about on the 4th post you actually say "please" or "thankyou".

raskin 03-10-2008 07:20 AM

I'd say that it depends heavily on your Internet service provider. It can cost extra, or it can be available only with access packages that are more than you need for more money than you pay now. Maybe switching ISP can give you better prices for globally visible IP address - that should be asked on local (geographically) forums.
But on the other hand, think what do you need that for. If you just need to be able to download some 100KB files from your computer while being somewhere else, maybe using IPv6 tunnel broker (http://go6.net , for example) and SixXS gateway (look at sixxs.org, or pay attention to differences between http://go6.net.ipv4.sixxs.org and http://go6.net) is enough. If you need just SSH to your home machine from some other machine that is under your partial control, IPv6 can also can be a solution.

smehra24 03-10-2008 07:22 AM

Quote:

Originally Posted by acid_kewpie (Post 3083813)
You use system-config-network. And how about on the 4th post you actually say "please" or "thankyou".

Thanks.. i'll take care in the future..

pixellany 03-10-2008 07:28 AM

Quote:

Originally Posted by smehra24 (Post 3083809)
I've clearly written local area network(private).

That you did!! ... while I was typing my message.
Let's have some patience here--I'll check to see if I have any I'm not using...;)

hua 03-10-2008 09:38 AM

For redhat. As you list in your profile as your distro.
I usually ask linuxquestions only after I search for days or hours (sometimes weeks or months) before asking.
But when I typed in (on www.yahoo.com) redhat network configuration, the first link contains what you need.
But here it is:

To use the Network Administration Tool, you must be running the X Window System and have root privileges. To start the application, go to the Main Menu Button (on the Panel) => System Settings => Network, or type the command redhat-config-network at a shell prompt (for example, in an XTerm or a GNOME terminal).

Pasted from this link.

shahz 03-10-2008 10:46 AM

you can get a static IP on the LAN first you should check that what is your network. then just edit the file

/etc/sysconfig/network-scripts/ifcfg-eth0 (if you have once card)

DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.0.255
HWADDR=thats the mac address
IPADDR=192.168.0.5
NETMASK=255.255.255.0
NETWORK=192.168.0.0
ONBOOT=yes
TYPE=Ethernet


or otherwise you can check this on the red hat gui just type on the terminal

if using redhat 9 then

redhat-config-network (din't use for sometime sorry if the commad goes wrong) and if you are using red-hat enterprise Linux

then type on the terminal

system-config-network


All times are GMT -5. The time now is 06:52 PM.