LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-11-2004, 11:35 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
How to restart network connection


Hi folks,

Debian - unstable

What command shall I use to re-detect the broadband if it dies accidentally, similar to

# service network restart

in RH

TIA

B.R.
satimis
 
Old 01-12-2004, 12:56 AM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Re: How to restart network connection

Quote:
Originally posted by satimis
Hi folks,

Debian - unstable

What command shall I use to re-detect the broadband if it dies accidentally, similar to

# service network restart

in RH

TIA

B.R.
satimis
/etc/init.d/networking restart
 
Old 01-12-2004, 02:30 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Re: Re: How to restart network connection

Quote:
Originally posted by HappyTux
/etc/init.d/networking restart
Hi,

Thanks for your advice.

# /etc/init.d/networking start/stop/restart
seems not very stable

I made following tests;

# /etc/init.d/networking stop
OK

# /etc/init.d/networking start
Setting up IP spoofing protection: rp_filter.
Configuring network interfaces...ifup: interface lo already configured
ifup: interface eth0 already configured
done.

# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:FC:39:3B:59
inet addr:192.168.2.2 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:806 errors:0 dropped:0 overruns:0 frame:0
TX packets:739 errors:0 dropped:0 overruns:0 carrier:0
collisions:2 txqueuelen:100
RX bytes:371222 (362.5 KiB) TX bytes:137000 (133.7 KiB)
Interrupt:11 Base address:0xa000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:118 errors:0 dropped:0 overruns:0 frame:0
TX packets:118 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7757 (7.5 KiB) TX bytes:7757 (7.5 KiB)

tap0 Link encap:Ethernet HWaddr FE:FD:00:00:00:00
inet addr:192.168.0.1 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:1842 (1.7 KiB)
Interrupt:5

# ping -c 3 www.yahoo.com
ping: unknown host www.yahoo.com

# /etc/init.d/networking restart
Reconfiguring network interfaces...**** /sbin/dhcpcd-bin: not running
done.
localhost:~# dhcpcd.exe: interface eth0 has been configured with new IP=192.168.2.2

# ping -c 3 www.yahoo.com
ping: unknown host www.yahoo.com

I have to repeat
# /etc/init.d/networking restart

several times before I can get the PC connected to Internet/broadband again.

Any suggestion to fix this problem

TIA

B.R.
satimis
 
  


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
Script to check connection (and restart network if down) mac_phil Linux - Networking 15 06-21-2016 05:59 PM
wireless connection requires network restart bbcar Linux - Wireless Networking 1 11-21-2005 02:02 AM
Network not accessible after boot; OK after network restart chriswei Linux - Networking 5 09-22-2004 10:16 PM
Restart network connection? GT_Onizuka Linux - Networking 6 09-09-2004 06:30 PM
Cron job to check/restart network connection? mac_phil Linux - Networking 6 09-01-2004 01:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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