LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-14-2013, 08:36 AM   #1
rblampain
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 9.2
Posts: 1,166

Rep: Reputation: 51
/etc/init.d/networking restart question


/etc/init.d/networking restart

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?

Thank you for your help.
 
Old 03-14-2013, 09:15 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393
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.
 
1 members found this post helpful.
Old 03-23-2013, 08:33 AM   #3
rblampain
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 9.2
Posts: 1,166

Original Poster
Rep: Reputation: 51
I should have mentioned the command does not work, only the reboot.
 
Old 03-23-2013, 09:06 AM   #4
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
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.

Regards
 
2 members found this post helpful.
Old 03-27-2013, 08:28 AM   #5
rblampain
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 9.2
Posts: 1,166

Original Poster
Rep: Reputation: 51
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

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:92 errors:0 dropped:0 overruns:0 frame:0
TX packets:92 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10954 (10.6 KiB) TX bytes:10954 (10.6 KiB)

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

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:92 errors:0 dropped:0 overruns:0 frame:0
TX packets:92 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10954 (10.6 KiB) TX bytes:10954 (10.6 KiB)

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?
 
1 members found this post helpful.
Old 03-27-2013, 11:51 AM   #6
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by rblampain View Post
...
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

... Is the modem interface to the dish 192.168.5.3 or is that the eth0?
That is correct.

Regards
 
1 members found this post helpful.
  


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
[SOLVED] /etc/init.d/httpd restart rjo98 Linux - Newbie 3 10-18-2010 09:23 AM
/etc/init.d/networking restart (ERRORS) lrt Linux - Networking 13 03-10-2009 10:44 AM
no wireless connection after /etc/init.d/networking restart cccc Linux - Wireless Networking 5 11-09-2008 08:19 PM
Permissions on script sudo ln -s ../init.d/start-networking S90start-networking cnolasco Ubuntu 3 04-03-2007 08:27 AM
/etc/rc.d/init.d/sendmail restart ssrikant Linux - Networking 3 04-23-2003 02:27 PM

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

All times are GMT -5. The time now is 11:35 PM.

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