Linux - NetworkingThis 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.
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.
I get a message that this command is deprecated because it may not restart some interfaces.
I have satellite Internet through an Ipstar modem and some time ago it was found there is an unreliable connection between my laptop and this modem. This happened with an old Toshiba (Windows XP Pro and Debian 5) and now with a new Asus (Windows 7 and Debian 6) and even when everything including the laptop is kept on overnight, the connection is regularly lost by the morning. The set up also include VoIP through a Linksys gateway/router and the phone connection is sometimes also lost.
The only way out is to reboot, sometimes more than once to get the connection re-established.
Although I have only lodged two tickets with my ISP (Skymesh.com.au) in over two years, they simply do not answer my new ones.
What is the current command to restart the network?
I've been using the same command (/etc/init.d/networking restart) on my Debian box for a long time and never had any problems (I also get the "warning" you mention).
One thing that might be important to mention: I've completely disabled all NetworkManager functionality (I find it completely useless in my case).
If the command works and you do not notice anything out of the ordinary I would ignore the message and use the command mentioned by you.
Try also: /etc/init.d/networking stop then /etc/init.d/networking start
Check if the device has an ip with ifconfig
If your network is set to grab ips from dhcp through the router and yet there is no ip assigned to the device then try: dhclient -4 <device>
-4 for ipv4 and -6 for ipv6.
About the auto stopping check the energy settings, maybe the device is going off and not waking up.
After a reboot, my connection is up, I could not read your answer without the reboot.
I will try your suggestion next time the connection is lost but I have tried "ifconfig" (I am not familiar with this) and this is the result I get:
root@asus:/home/rene# ifconfig
eth0 Link encap:Ethernet HWaddr c8:60:00:a7:b4:f8
inet addr:192.168.5.3 Bcast:192.168.5.255 Mask:255.255.255.0
inet6 addr: fe80::ca60:ff:fea7:b4f8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3609 errors:0 dropped:0 overruns:0 frame:0
TX packets:3559 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3245382 (3.0 MiB) TX bytes:444003 (433.5 KiB)
Interrupt:27 Base address:0x4000
wlan0 Link encap:Ethernet HWaddr 00:08:ca:6f:51:03
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
There is a lot of errors, are they due to the modem? Is the modem interface to the dish 192.168.5.3 or is that the eth0?
---------- Post added 03-27-13 at 09:29 PM ----------
Thank you ukiuki
After a reboot, my connection is up, I could not read your answer without the reboot.
I will try your suggestion next time the connection is lost but I have tried "ifconfig" (I am not familiar with this) and this is the result I get:
root@asus:/home/rene# ifconfig
eth0 Link encap:Ethernet HWaddr c8:60:00:a7:b4:f8
inet addr:192.168.5.3 Bcast:192.168.5.255 Mask:255.255.255.0
inet6 addr: fe80::ca60:ff:fea7:b4f8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3609 errors:0 dropped:0 overruns:0 frame:0
TX packets:3559 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3245382 (3.0 MiB) TX bytes:444003 (433.5 KiB)
Interrupt:27 Base address:0x4000
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.