LinuxQuestions.org
Help answer threads with 0 replies.
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 01-01-2008, 04:58 PM   #1
deostroll
Member
 
Registered: Aug 2007
Location: Bangalore
Distribution: fedora
Posts: 113

Rep: Reputation: 15
ifconfig: need help with configuring eth0?


I use ubuntu 5.10 breezy badger. I have trouble connecting to the internet. Can anyone give me some help configuring the interface eth0. I just need to set the ipaddress, subnet mask and the default gateway. The reason I am doing this is because I ran a command that list the kernel's ip table, and I think my default gateway is not set properly.

Are those 3 parameters all that I need. Or am I missing something?


PS:I would like someone to write the commands out here...
 
Old 01-02-2008, 09:49 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you've not said a thing about your topology, so we couldn't possibly tell you the details you need. more than likely you need to just set the interface to DHCP and it'll request them from whatever router you may or may not have connected to your LAN.
 
Old 01-02-2008, 09:54 AM   #3
DotHQ
Member
 
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 548

Rep: Reputation: 33
All you have to do is edit ifcfg-eth0.
Do a find on that file and post the contents here if the error is not apparent.
On my RedHat servers the ifcfg files live in:
/etc/sysconfig/network-scripts/

No idea if they are in the same spot on Ubuntu.

the command:
ifconfig will show most of your current settings.

In Red Hat I can use 'ethtool' maybe you can to.
As root type: ethtool eth0
It will tell you if a link is detected or not. Good tool to use.

Last edited by DotHQ; 01-02-2008 at 09:55 AM.
 
Old 01-03-2008, 12:36 AM   #4
deostroll
Member
 
Registered: Aug 2007
Location: Bangalore
Distribution: fedora
Posts: 113

Original Poster
Rep: Reputation: 15
acid_kewpie: it is just a cable modem. That is all I have for topology for the moment. It connects to my pc with a rj45 pin. (At least that is what I think it is).
 
Old 01-03-2008, 02:06 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
ok, so as above, DHCP.
 
Old 01-04-2008, 02:23 AM   #6
deostroll
Member
 
Registered: Aug 2007
Location: Bangalore
Distribution: fedora
Posts: 113

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by acid_kewpie View Post
ok, so as above, DHCP.
Eh...How do I do this?
 
Old 01-04-2008, 02:37 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
it should be confgiured by default. if you have changed it then there should just be a little tick box in the network config control panel within ubuntu.
 
Old 01-04-2008, 04:22 AM   #8
deostroll
Member
 
Registered: Aug 2007
Location: Bangalore
Distribution: fedora
Posts: 113

Original Poster
Rep: Reputation: 15
Ok. I don't know how but my technician came and fixed it. He just changed the subnet mask. And I could have sworn that value is not the same as the one I use in windows...!
 
  


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
ifconfig eth0 up does not 'revive' eth0 Micro420 Linux - General 2 04-22-2006 12:55 PM
ifconfig eth0 drdarkman Linux - Networking 2 01-30-2005 11:16 AM
ifconfig eth0 drdarkman Linux - Networking 1 01-24-2005 10:40 PM
ifconfig eth0 up Thorkyl Linux - Networking 6 06-29-2004 02:43 AM
eth0 removed from ifconfig after dhcpcd eth0 johnklvr Linux - Networking 3 01-15-2004 08:21 PM

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

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