LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-10-2008, 06:55 AM   #1
smehra24
Member
 
Registered: Jan 2008
Location: mumbai
Distribution: red hat
Posts: 31

Rep: Reputation: 15
How to get static ip


Hi,
anybody knowing hw to get static ip??
 
Old 03-10-2008, 07:02 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
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...
 
Old 03-10-2008, 07:07 AM   #3
smehra24
Member
 
Registered: Jan 2008
Location: mumbai
Distribution: red hat
Posts: 31

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by acid_kewpie View Post
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??
 
Old 03-10-2008, 07:08 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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.
 
Old 03-10-2008, 07:16 AM   #5
smehra24
Member
 
Registered: Jan 2008
Location: mumbai
Distribution: red hat
Posts: 31

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pixellany View Post
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).
 
Old 03-10-2008, 07:19 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
You use system-config-network. And how about on the 4th post you actually say "please" or "thankyou".
 
Old 03-10-2008, 07:20 AM   #7
raskin
Senior Member
 
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,899

Rep: Reputation: 68
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.
 
Old 03-10-2008, 07:22 AM   #8
smehra24
Member
 
Registered: Jan 2008
Location: mumbai
Distribution: red hat
Posts: 31

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by acid_kewpie View Post
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..
 
Old 03-10-2008, 07:28 AM   #9
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by smehra24 View Post
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...
 
Old 03-10-2008, 09:38 AM   #10
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 14.0, 14.1, current
Posts: 417

Rep: Reputation: 52
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.

Last edited by hua; 03-10-2008 at 09:39 AM.
 
Old 03-10-2008, 10:46 AM   #11
shahz
Member
 
Registered: Sep 2006
Location: Quetta, Pakistan
Distribution: RHEL 4
Posts: 363

Rep: Reputation: 29
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to initialize a static array of a class in a static member function lali.p Programming 9 02-16-2008 09:27 AM
Making a static lib from objects + static libs kovacsp Programming 2 12-19-2007 12:53 PM
Howto Assign Multiple Static Public IP Addresses under SBC's PPPoE Static Ip system o trekgraham Linux - Networking 8 04-17-2007 10:51 AM
Java: non-static variable this cannot be referenced from a static context chief_officer Programming 4 05-29-2006 01:37 PM
FC2 Overriding static if in favor of dhcp system set for static pkraus109 Linux - Networking 8 09-21-2004 11:13 AM


All times are GMT -5. The time now is 07:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration