Fedora Linux Support Community & Resources Center
  #1  
Old 19th February 2008, 07:38 PM
susek Offline
Registered User
 
Join Date: Feb 2008
Posts: 15
change

please how can I change the ipaddress for redhat 6.2
and the hostname also?
Reply With Quote
  #2  
Old 19th February 2008, 08:00 PM
rbo83 Offline
Registered User
 
Join Date: Apr 2006
Location: Toronto
Posts: 100
Are you using the graphic mode or terminal mode ?

If you are not using the graphic mode (X) you must issue the following commands at the
terminal, and as root user :

Use the 'hostname' command (see the manpage 'man hostname') to set the host name, or change the /etc/hostname file manually

Use the 'ifconfig' command (see the manpage 'man ifconfig') to set the IP address and the netmask

and reboot.

Last edited by rbo83; 19th February 2008 at 08:08 PM.
Reply With Quote
  #3  
Old 19th February 2008, 10:59 PM
scottro's Avatar
scottro Offline
Retired Community Manager -- Banned from Texas by popular demand.
 
Join Date: Sep 2007
Location: NYC
Posts: 8,142
I don't believe there is an /etc/hostname by default. You can use /etc/sysconfig/network to set the hostname.

As for the IP address, the ifconfig page doesn't give you the files you want to edit. (It's a pretty awful man page in my opinion--compare it to any of the BSD ifconfig manpages.)

The file you'll want is /etc/sysconfig/network-scripts/ifcfg-eth0.

You'll want it to look somethng like (let's say your desired IP address is 192.168.1.190 with a netmask of 255.255.255.0

DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.1.25
HWADDR=00:01:02:03:04:05
IPADDR=192.168.1.190
IPV6ADDR=
IPV6PREFIX=
IPV6_AUTOCONF=yes
NETMASK=255.255.255.0
NETWORK=192.168.1.0
ONBOOT=yes


After doing that, you might have to manually set the network and default gateway once.

route add -net 192.168.1.0 255.255.255.0 eth0
route add default gw 192.168.1.1
(Although gateway might also be put in the /etc/sysconfig/network file.)

After doing all that
/etc/init.d/network restart

(this will briefly disconnect you from the network.)

Then you should be good to go.
Reply With Quote
  #4  
Old 20th February 2008, 04:28 AM
susek Offline
Registered User
 
Join Date: Feb 2008
Posts: 15
please can you tell me excatly how I use the commands and edit the page
to change the ipaddress and the hostname .because I use terminal mode only.


regards
Reply With Quote
  #5  
Old 20th February 2008, 04:31 AM
Wayne
Guest
 
Posts: n/a
Umm, maybe you should pay for RedHat support, especially since 6.2 is rather antique.

Wayne
Reply With Quote
  #6  
Old 20th February 2008, 06:06 AM
scottro's Avatar
scottro Offline
Retired Community Manager -- Banned from Texas by popular demand.
 
Join Date: Sep 2007
Location: NYC
Posts: 8,142
Thanks Wayne, I missed the 6.2 part.
Back then, I think there was a command that would bring up a curses based (it shows in console--it's sort of like console but had a blue background) thing to configure your network. I'm afraid I've forgotten the name, you can try typing net and hitting the tab key--probably something like net-config netcfg or something similar. If you get that command, it should give you a dialog box to change the settings.

However, I could be wrong--I haven't used 6.2 in--hrrm, 7 years or so?
Reply With Quote
  #7  
Old 20th February 2008, 08:23 AM
Wayne
Guest
 
Posts: n/a
You've got to read the small-print Scott

It's a bit like going into a windows forum and asking for help on DOS and Win 3.11

Wayne
Reply With Quote
  #8  
Old 20th February 2008, 08:46 AM
leigh123linux's Avatar
leigh123linux Offline
Retired Administrator
 
Join Date: Oct 2006
Posts: 21,509
Quote:
Originally Posted by Wayne
Umm, maybe you should pay for RedHat support, especially since 6.2 is rather antique.

Wayne
Well that leaves me free to move the thread as it isn't Fedora related.




Moved to Linux Chat
__________________
My Hardware
- CPU: AMD Phenom II X6 Hex Core 1055T 95W Edition @3.5Ghz
- Motherboard: Gigabyte GA-880GM-UD2H
- Cooler: Corsair H50 CPU Cooler
- RAM: Corsair Dominator 8GB (4x2GB) DDR3 1600MHz
- Graphics: Gigabyte GeForce GTS 450 OC 1024MB GDDR5
Reply With Quote
  #9  
Old 20th February 2008, 09:05 AM
kurzer Offline
Registered User
 
Join Date: Jun 2004
Location: Ulm, Germany
Age: 31
Posts: 129
I don't know if
redhat-config-network-tui
already existed. You could also try
linuxconf
to configure your system.
Reply With Quote
  #10  
Old 20th February 2008, 12:03 PM
mmdm Offline
Registered User
 
Join Date: May 2007
Posts: 5
Start dialog box for network configuration as root with:

netconfig
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing with XFS - change you change inode size? Thaidog Installation and Live Media 4 26th March 2009 03:54 AM
How change/set IP address and change time on multibooting menu? booter Servers & Networking 5 8th June 2007 01:46 AM
Considering a change pploco Fedora Focus 23 25th October 2004 11:18 PM


Current GMT-time: 03:19 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat