Red-hat AS 2.1 network question


 
Thread Tools Search this Thread
Operating Systems Linux Red-hat AS 2.1 network question
# 1  
Old 05-19-2004
Red-hat AS 2.1 network question

I have setup a AS 2.1 server with no X running or installed. I need to know how to configure the IP and such from command line and change it from DHCP. We used DHCP at first since we didn't know the IP we were going to use and now I need to change it. Any help would be great as Redhat's site just says use the redhat-config-network tool but as stated with our build we use that doesn't get installed. Thanks in advance
# 2  
Old 05-19-2004
There are a few things you'll have to do to set this up.

Do an ifconfig eth0 down to bring the adapter down (assuming that eth0 is your ethernet device)

Firstly, edit the /etc/sysconfig/network-scripts/ifcfg-eth0 file and get the network configuration as you should want it.

For example, without DHCP, something like
DEVICE=eth0
IPADDR=192.168.0.1
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
ONBOOT=yes

All these settings are dependant on your particular network, however.


You can then either reboot, or run the ifup command (/etc/sysconfig/network-scripts/ifup eth0) or (/sbin/ifup eth0) depending on where it's located, or just do an "ifconfig eth0 up", and that should bring the interface back up.

Run "ifconfig -a" to see what eth0 is doing!

You may need to add a route do the default gateway too, depending on your setup.

You'll need to make the appropriate entry in /etc/hosts for the new static IP

CHeers
ZB
http://www.zazzybob.com
# 3  
Old 05-19-2004
Thank you a ton Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Red Hat Linux question on top and vmstat outputs

RHEL 5.4 Our Linux machine seemed to be running slow. So, I ran the top and vmstat commands. Question1. I can see the process 11517 consuming 100% CPU . But that just means that this process totally utilizes one of the cores in a mult-core CPU. Right ? This machine apparently has two... (2 Replies)
Discussion started by: kraljic
2 Replies

2. Red Hat

Red Hat Network / Support

Dear all, I have around 7 servers which are running under RHEL 5.x Version. I have supported the server for nearly 3 years. Till now I have not contacted RHEL Network Support from Redhat for any services. Now a thought came to my mind , that in any case if there is some issue with the OS or... (3 Replies)
Discussion started by: jegaraman
3 Replies

3. Red Hat

Linux Red Hat AS3 Network card is not detecting ...

Dear Expert, I 've installed Redhat linux AS3, My machine having Inbuild network card (Intel(R) 82566DM-2 Gigabit Network Connection). I've downloaded e1000e-2.3.2 from Intel site, but its not working for my machine. I'm unable to configure the Network. ifconfig eth0 xx.xx.xx.xx netmask... (0 Replies)
Discussion started by: Mohammed Faiz
0 Replies

4. Red Hat

Red Hat Linux release 9 (Shrike) question

Hi guys, wondering if you could help me out here... this is a proxy system problem I'm trying to access a web gui service off a linux box running Red Hat Linux release 9 (Shrike) used as a proxy server which does not seem to have a web browser installed..... how can i do this? so to... (2 Replies)
Discussion started by: slashbash
2 Replies

5. Red Hat

How do I network a Suse installed machine with other computers, specifically Red hat Linux?

How do I network a Suse installed machine with other computers, specifically Red hat Linux? This is for a school project, and I can't find any pages that tell how to network a Suse to other computers except how to use a printer. (1 Reply)
Discussion started by: Anna Hussie
1 Replies

6. Shell Programming and Scripting

Linux Red Hat - FTP question

Hi Everyone, Based on what I have read so far and what others have posted on this forum, I have come up with the following script to download and upload files from and to a FTP sever: HOST=xyz.com USER=someuser PASSWD=somepwd tmpfile=/tmp/files.$$ indir=/tmp/inbound... (2 Replies)
Discussion started by: maxshop
2 Replies

7. Red Hat

How to register with Red Hat Network?

Hi, We have Red Hat Enterprise Linux 5.3 running on all our machines and planning to make one machine as a YUM repository server. Using yum utility the rest of the RHEL machines should be able to get the latest patches/ packages. Done a POC with the packages available in RHEL 5.3 DVD –... (1 Reply)
Discussion started by: uday123
1 Replies

8. Linux

red hat ent 5 network

Hi All, I configured during the installation my red hat 5 ent with dhcp enable. Now I modified to static on ../ifcfg-eth0. It won't change when network is restarted with ../network restart command. I need to do ifdown eth0 and ifup eth0. And when rebooted, it will go back to dhcp. Here's... (1 Reply)
Discussion started by: itik
1 Replies

9. UNIX for Dummies Questions & Answers

Network settings on Red Hat

HELP!! How do you change the network setting from auto-duplex to 100 Base T Full Duplex in Red HaT? (1 Reply)
Discussion started by: johnlong
1 Replies
Login or Register to Ask a Question