LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-07-2006, 07:23 AM   #1
sseeker
Member
 
Registered: Aug 2006
Distribution: CentOS 5
Posts: 48

Rep: Reputation: 15
LAN IP Address (Change)


Is it possible to change my LAN IP on my Linux PC? Just i figured out something that i wanna try.

Thank you

P.S
OS: Red Hat Enterprise Version 4

Last edited by sseeker; 09-07-2006 at 07:24 AM.
 
Old 09-07-2006, 08:36 AM   #2
zulfilee
Member
 
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Rep: Reputation: 39
Yes its possible.

The command is
netconfig

Run the above command as root user and change the Ip-address.
 
Old 09-07-2006, 08:52 AM   #3
sseeker
Member
 
Registered: Aug 2006
Distribution: CentOS 5
Posts: 48

Original Poster
Rep: Reputation: 15
Ahhhh yeah then i can't use the internet =/ Is there a way to change it in a file so i can still use the internet? I thought there was just can't remember.
 
Old 09-07-2006, 08:57 AM   #4
zulfilee
Member
 
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Rep: Reputation: 39
What has the local IP to do with internet?

It will not affect the internet connection.
But that depends on what type of connection you are using.

And for what purpose do you want to change the IP?


If its just for temporary display [with ifcoonfig command] you can try

ifconfig eth0 ipaddress

[But take a not of the old ip before doing this]
 
Old 09-07-2006, 09:00 AM   #5
sseeker
Member
 
Registered: Aug 2006
Distribution: CentOS 5
Posts: 48

Original Poster
Rep: Reputation: 15
Ok well i did that "netconfig" And it came up etc etc... and i filled it out. BUT it don't work.There has to be a file you can edit to change the IP
 
Old 09-07-2006, 09:05 AM   #6
zulfilee
Member
 
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Rep: Reputation: 39
netconfig is the command that is normally used to change the IP in a redhat PC.


IP address will be available in the following files.Check it out.

/etc/sysconfig/network
/etc/sysconfig/network-scripts/ifcfg-eth0 [eth1,etc...]
 
Old 09-07-2006, 09:10 AM   #7
sseeker
Member
 
Registered: Aug 2006
Distribution: CentOS 5
Posts: 48

Original Poster
Rep: Reputation: 15
Ok the files are saying my IP is 10.0.0.93 BUT the ifconfig isn't. It's saying it's 192.168.0.93 :S
 
Old 09-07-2006, 09:13 AM   #8
zulfilee
Member
 
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Rep: Reputation: 39
Try this [as root user]

ifconfig eth0 down
ifconfig eth0 10.0.0.63
ifconfig eth0 up


But still the purpose of ur IPaddress change is unclear ;>
 
Old 09-07-2006, 09:18 AM   #9
sseeker
Member
 
Registered: Aug 2006
Distribution: CentOS 5
Posts: 48

Original Poster
Rep: Reputation: 15
Ok. Look my router only forwards ports with 10.0.0 infront of them e.g. (10.0.0.23 10.0.0.98 etc...) So i was wonder of changing the IP so it would work. And it doesn't work! The internet doesn't work.
 
  


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
IP address clash under Linux on LAN dazdaz Linux - Networking 1 10-10-2005 05:15 AM
how could i have fix lan ip address to a computer Paxmaster Linux - Networking 9 01-13-2005 02:09 PM
two IP address spaces on same physical LAN? linux_newbie_23 Linux - Networking 3 09-28-2004 01:19 AM
LAN printer's address and port? Whatshisface Linux - Hardware 4 03-30-2004 03:50 AM
My eth0 won't get an IP address on my LAN poeta_boy Linux - Networking 4 01-29-2004 04:00 PM


All times are GMT -5. The time now is 08:44 AM.

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