LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-28-2003, 02:24 AM   #1
fuelinjection
Member
 
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238

Rep: Reputation: 30
Manual Ip Assign?


While booting redhat 7.3 it fails on the eth0 startup.

I went into network configuration within redhat, but when I click it, simply nothing happens. I tried internet config, again nothing happens.

So is there anyway I can manually assign the IP and netmask from the terminal so that this is assigned at startup?

Thanks

Shaun
 
Old 11-28-2003, 02:32 AM   #2
pudhiyavan
Member
 
Registered: Oct 2003
Location: Linux world
Distribution: redhat,mandy,centos,debian,ubuntu
Posts: 209

Rep: Reputation: 30
/sbin/ifdown eth0
vi /etc/sysconfig/networking/devices/ifcfg-eth0
select line IPADDR=192.168.0.43
/sbin/ifup eth0

the above modification is on redhat 9 distro
 
Old 11-28-2003, 02:36 AM   #3
fuelinjection
Member
 
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238

Original Poster
Rep: Reputation: 30
i've got redhat 9 installed on another harddrive, and it works fine, but the computer I'm using is slightly old, so I thought I'd tried 7.3 to see if it was any faster.

What do I do with the above code? Sorry, pretty new to this.
 
Old 11-28-2003, 02:49 AM   #4
pudhiyavan
Member
 
Registered: Oct 2003
Location: Linux world
Distribution: redhat,mandy,centos,debian,ubuntu
Posts: 209

Rep: Reputation: 30
those are all just commands

just go to your shell mode and do the same

for eg;

root@fuelinj]# /sbin/ifdown eth0...

continue with the above line
 
Old 11-28-2003, 02:54 AM   #5
fuelinjection
Member
 
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238

Original Poster
Rep: Reputation: 30
Will this keep a note of the ip on the system for when I've rebooted, or will I have to keep doing this?

Also, I thought you had to specify the mask too eg 255.255.255.0?

Whats the ifconfig command for? I read about this somewhere?
 
Old 11-28-2003, 03:01 AM   #6
pudhiyavan
Member
 
Registered: Oct 2003
Location: Linux world
Distribution: redhat,mandy,centos,debian,ubuntu
Posts: 209

Rep: Reputation: 30
Will this keep a note of the ip on the system for when I've rebooted, or will I have to keep doing this?
>> i am not sure, but if you want to assign ip address for particular eth device, it will get stored here

Also, I thought you had to specify the mask too eg 255.255.255.0?
>> ipaddr is one among the lines.
>> other things you keep with your default values.

Whats the ifconfig command for? I read about this somewhere?
>> /sbin/ifconfig is to display the configured eth devices
 
Old 11-28-2003, 03:08 AM   #7
fuelinjection
Member
 
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238

Original Poster
Rep: Reputation: 30
So am I right in saying that these commands, de-activate the ethernet, assign an ip, then re-activate it with the assigned ip?
 
Old 11-28-2003, 03:31 AM   #8
pudhiyavan
Member
 
Registered: Oct 2003
Location: Linux world
Distribution: redhat,mandy,centos,debian,ubuntu
Posts: 209

Rep: Reputation: 30
yes you are right
 
Old 11-28-2003, 03:37 AM   #9
fuelinjection
Member
 
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238

Original Poster
Rep: Reputation: 30
ok, thanks, Ill give this a go over the weekend.
 
  


Reply



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
Can not assign IP address jtir Solaris / OpenSolaris 1 09-28-2005 03:37 AM
assign static ip allelopath Linux - Software 1 04-27-2005 07:04 PM
How to assign a driver... whitmell Linux - Newbie 4 09-16-2003 07:36 AM
How to assign shortcouts? Xiangbuilder Linux - Newbie 2 08-31-2003 07:46 AM
Assign group by IP waifurchin Linux - General 1 01-29-2003 04:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:08 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
Open Source Consulting | Domain Registration