Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-19-2009, 11:14 AM   #1
Registered: Dec 2008
Location: Herrera
Distribution: Debian GNU/Linux 5.0
Posts: 74

Rep: Reputation: 15
how to configure my eth0? (from the command line)

Well, i've installed fedora 8 , and im using the usb port to connect to internet, now a thinking to change the connection to the ethernet card,
how i do to configure from eth1(usb in my case) to eth0.
i was looking information in internet and i found about the ifconfig command , something like:

ifconfig eth0 ip netmask up

but nothing happended.

actually i have fedora 8
Old 02-19-2009, 11:24 AM   #2
Senior Member
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
With Fedora 8 you should have the Red Hat setup facility, just type the command setup. Once done do /etc/init.d/network restart

The physical network files in red hat based distributions is /etc/sysconfig/network-scripts/ifcfg-<device> setup under some distributions can sometimes be broken, I know for CentOS it often sets the network files up, disabled.

As for the ifconfig command what was the effective command you used? as I assume your going to a router or device of some sort.

was it something like...

ifconfig eth0 netmask ?

Also if it's a DHCP enviroment, you can use the dhclient command...

Last edited by r3sistance; 02-21-2009 at 10:23 AM. Reason: setup...
Old 02-20-2009, 07:31 PM   #3
Registered: Feb 2007
Location: TX, USA
Distribution: fedora
Posts: 191

Rep: Reputation: 33
Thumbs up Re: Ip address

Hi i guess first you become root and then try the command you entered

ifconfig eth0 up

No need to enter the netmask, its automatically calculated and allocated.
Try and say whether it worked or not. Thanks. All the best.
Old 02-20-2009, 07:41 PM   #4
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Try system-config-network as root in F8
Old 02-20-2009, 09:59 PM   #5
Registered: Dec 2008
Location: Herrera
Distribution: Debian GNU/Linux 5.0
Posts: 74

Original Poster
Rep: Reputation: 15
thank you all, i really works!!!!!!!!!!!!!
now i can switch from one cofiguration to another.

one more question.
what happend when the irc said: could no look your ip.
i really want to use irc. actually a have irssi .
Old 02-21-2009, 12:16 AM   #6
John VV
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,168

Rep: Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493
you might want to look here
but seeing as fedora 8 IS PAST IT'S END OF LIFE there are NO and i mean NO more updates for it- ever .


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
./configure command isn't working in command line jumpmansbro Linux - Newbie 20 01-22-2009 08:29 PM
getting eth0 up from command line dannyk1 Linux - Networking 6 12-21-2005 04:16 AM
Who to configure eth0 to use dhco from command line waelaltaqi Linux - Networking 3 11-18-2005 06:36 PM
Configure FC1 firewall in command line codyz062003 Linux - Security 1 12-12-2004 09:05 PM
configure x from command line? tumnus Linux - Newbie 5 02-13-2003 05:32 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:09 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration