Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-28-2003, 02:24 AM
|
#1
|
Member
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238
Rep:
|
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
|
|
|
11-28-2003, 02:32 AM
|
#2
|
Member
Registered: Oct 2003
Location: Linux world
Distribution: redhat,mandy,centos,debian,ubuntu
Posts: 209
Rep:
|
/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
|
|
|
11-28-2003, 02:36 AM
|
#3
|
Member
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238
Original Poster
Rep:
|
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.
|
|
|
11-28-2003, 02:49 AM
|
#4
|
Member
Registered: Oct 2003
Location: Linux world
Distribution: redhat,mandy,centos,debian,ubuntu
Posts: 209
Rep:
|
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
|
|
|
11-28-2003, 02:54 AM
|
#5
|
Member
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238
Original Poster
Rep:
|
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?
|
|
|
11-28-2003, 03:01 AM
|
#6
|
Member
Registered: Oct 2003
Location: Linux world
Distribution: redhat,mandy,centos,debian,ubuntu
Posts: 209
Rep:
|
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
|
|
|
11-28-2003, 03:08 AM
|
#7
|
Member
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238
Original Poster
Rep:
|
So am I right in saying that these commands, de-activate the ethernet, assign an ip, then re-activate it with the assigned ip?
|
|
|
11-28-2003, 03:31 AM
|
#8
|
Member
Registered: Oct 2003
Location: Linux world
Distribution: redhat,mandy,centos,debian,ubuntu
Posts: 209
Rep:
|
yes you are right
|
|
|
11-28-2003, 03:37 AM
|
#9
|
Member
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238
Original Poster
Rep:
|
ok, thanks, Ill give this a go over the weekend.
|
|
|
All times are GMT -5. The time now is 02:59 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|