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.
|
 |
12-15-2005, 06:41 AM
|
#1
|
Member
Registered: Aug 2004
Location: Geelong, Vic Australia
Distribution: Gentoo, Ubuntu,and sometimes something from billy gates (when Im desperate)
Posts: 188
Rep:
|
getting eth0 up from command line
My interface eth0 is connect to a dsl modem which works fine but...
How do I get eth0 to request a new dhcp address from the command line?
I have been trying things like
ifconfig eth0
ifconfig eth0 up
ifconfig eth0 up dhcp
with no luck.
Restarting the computer seems to defeat the purpose of using linux..
The reason for this is everynow and then the power drops off my modem then the only way to get everything working again is to restart the computer.
|
|
|
12-15-2005, 06:47 AM
|
#2
|
Member
Registered: Dec 2005
Location: karachi
Distribution: RedHat
Posts: 75
Rep:
|
ifdown eth0
ifup eth0
must select bootp option for renewing new ip
|
|
|
12-15-2005, 06:50 AM
|
#3
|
Member
Registered: Apr 2005
Location: Jordan
Distribution: Debian (Sarge), Ubuntu (6.06)
Posts: 271
Rep:
|
You can try
#ifup eth0
personally i prefer to restart all networking services with
# /etc/init.d/network restart
Hope this helps
|
|
|
12-15-2005, 07:18 AM
|
#4
|
Senior Member
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181
Rep:
|
# dhcpcd eth0
|
|
|
12-15-2005, 09:19 AM
|
#5
|
LQ Newbie
Registered: Dec 2005
Posts: 4
Rep:
|
first check #ifconfig eth0
#ifup eth0
|
|
|
12-21-2005, 03:35 AM
|
#6
|
Member
Registered: Aug 2004
Location: Geelong, Vic Australia
Distribution: Gentoo, Ubuntu,and sometimes something from billy gates (when Im desperate)
Posts: 188
Original Poster
Rep:
|
Thanks guys for the replys.
/etc/init.d/network restart
seems to do the trick.
/etc/init.d/iptables restart helps too.
|
|
|
12-21-2005, 05:16 AM
|
#7
|
Member
Registered: Apr 2005
Location: Jordan
Distribution: Debian (Sarge), Ubuntu (6.06)
Posts: 271
Rep:
|
BTW...
IFF your eth0 is connected to a "Bridged" DSL modem AND you're using pppoe then you might want to look into:
/etc/sysconfig/network-scripts/ifcfg-%ppp0%
(substitute %ppp0% with your connection name)
setting "PERSIST=yes" (without the quotes) will have the machine re-establish the connection when it's dropped. The down-side is that the machine will keep trying until it gets a connection.
|
|
|
All times are GMT -5. The time now is 10:21 AM.
|
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
|
|