LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-19-2009, 12:14 PM   #1
criacuervo
Member
 
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, 12:24 PM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 5.4, Mac OS 10.4 (tiger)
Posts: 1,005

Rep: Reputation: 79
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 192.168.0.3 netmask 255.255.255.0 ?

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

Last edited by r3sistance; 02-21-2009 at 11:23 AM. Reason: setup...
 
Old 02-20-2009, 08:31 PM   #3
palisetty_suman
Member
 
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 182.16.0.3 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, 08:41 PM   #4
billymayday
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, 10:59 PM   #5
criacuervo
Member
 
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, 01:16 AM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,825

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
you might want to look here
http://www.mjmwired.net/resources/mjm-fedora-f8.html
http://www.mjmwired.net/resources/mjm-services-f8.html
but seeing as fedora 8 IS PAST IT'S END OF LIFE there are NO and i mean NO more updates for it- ever .
 
  


Reply


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 09:29 PM
getting eth0 up from command line dannyk1 Linux - Networking 6 12-21-2005 05:16 AM
Who to configure eth0 to use dhco from command line waelaltaqi Linux - Networking 3 11-18-2005 07:36 PM
Configure FC1 firewall in command line codyz062003 Linux - Security 1 12-12-2004 10:05 PM
configure x from command line? tumnus Linux - Newbie 5 02-13-2003 06:32 PM


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration