Solved

Change network information

Posted on 2004-03-30
9
248 Views
Last Modified: 2013-12-15
I've installed Red Hat AS 2.1 with the kde gui.  I want to change the host name and ip address.
Where do I go to do that?   Preferably both using gui and using editing of files but either way is ok.
0
Comment
Question by:xoxomos
  • 3
  • 2
  • 2
  • +2
9 Comments
 
LVL 9

Assisted Solution

by:Alf666
Alf666 earned 50 total points
Comment Utility
I don't know the gui style in RedHat, but you should find the right infos in :

/etc/hosts
/etc/sysconfig/network
0
 
LVL 17

Expert Comment

by:owensleftfoot
Comment Utility
Use the graphical command redhat-config-network - type it from a terminal window.
0
 
LVL 17

Expert Comment

by:owensleftfoot
Comment Utility
Use the graphical command redhat-config-network - type it from a terminal window or the run dialog.
0
 

Author Comment

by:xoxomos
Comment Utility
running
find / -name redhat-config-network -print
comes up with nothing and when i enter redhat-config-network in a konsole window it returns 'command not found'
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 17

Accepted Solution

by:
owensleftfoot earned 150 total points
Comment Utility
Install the redhat-config-network rpm from your distro cdroms. If for some reason you cant find it you can download it here -http://altruistic.lbl.gov/mirrors/caos/centos-2/updates/i386/redhat-config-network-1.0.4-0.AS21.1.i386.rpm
0
 
LVL 12

Assisted Solution

by:paullamhkg
paullamhkg earned 100 total points
Comment Utility
owensleftfoot right, you have to install the redhat-config-network in your kde before your can change the network setting.

BTW, Alf666's comment also good to know, it's a console mode (or you can said command mode) method which directly modify the files to make your changes.
use your editor to edit the /etc/sysconfig/ to give the hosts and ip info.

eg /etc/sysconfig/network

[root@linux sysconfig]# more network
NETWORKING=yes
HOSTNAME=host.yourdomain.com                <-- here for host name
GATEWAY=192.168.0.254                            <-- for the gateway

also edit /etc/sysconfig/network-scripts/ifcfg-eth0

[root@linux network-scripts]# more ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.0.255                          <-- the ip of your linux box
IPADDR=192.168.0.1
NETMASK=255.255.0.0
NETWORK=192.168.0.0
ONBOOT=yes

"ifconfig eth0 192.168.0.1  netmask 255.255.255.0" will also change the ip address of your linux box.

so incase the redhat-config-network can't work you still have other way to make it work :)

0
 
LVL 6

Assisted Solution

by:karlwilbur
karlwilbur earned 50 total points
Comment Utility
paullamhkg,
Should be:

[root@linux network-scripts]# more ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.0.255                          
IPADDR=192.168.0.1                                     <-- the ip of your linux box
NETMASK=255.255.0.0
NETWORK=192.168.0.0
ONBOOT=yes
0
 
LVL 12

Expert Comment

by:paullamhkg
Comment Utility
yes karlwibur you are right, I point to the wrong line :)
0
 
LVL 6

Expert Comment

by:karlwilbur
Comment Utility
Just trying to help :-)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now