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 12-15-2005, 01:35 PM   #1
spikeroo
LQ Newbie
 
Registered: Apr 2004
Posts: 15

Rep: Reputation: 0
reboot works but service network restart does not


If I reboot eth0 works fine but service network restart does not work.

service network restart returns OK, brings up the nic with the IP address, etc.

But the nic is not working, is not pingable, cannot ping out.

[root@elvis network-scripts]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:0F:20:6C:A5:0D
inet addr:10.141.1.160 Bcast:10.141.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12613 errors:0 dropped:0 overruns:0 frame:0
TX packets:430 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1068028 (1.0 Mb) TX bytes:27520 (26.8 Kb)
Interrupt:11 Memory:f7ef0000-f7f00000

[root@elvis network-scripts]# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
10.141.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 10.141.1.1 0.0.0.0 UG 0 0 0 eth0
[root@elvis network-scripts]# ping 10.141.1.1
PING 10.141.1.1 (10.141.1.1) 56(84) bytes of data.
From 10.141.1.160 icmp_seq=0 Destination Host Unreachable
From 10.141.1.160 icmp_seq=1 Destination Host Unreachable
From 10.141.1.160 icmp_seq=2 Destination Host Unreachable
 
Old 12-15-2005, 01:40 PM   #2
cyber-worx
Member
 
Registered: May 2004
Location: England / Switzerland
Distribution: Gentoo, Ubuntu, Debian, Slackware
Posts: 138

Rep: Reputation: 15
Check the output from

route

and see if you traffic is making it to its gateway,

check iptables
 
Old 12-15-2005, 01:49 PM   #3
spikeroo
LQ Newbie
 
Registered: Apr 2004
Posts: 15

Original Poster
Rep: Reputation: 0
iptables off
No traffic is getting to the gateway

[root@anpuejs2 network-scripts]# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
10.141.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 10.141.1.1 0.0.0.0 UG 0 0 0 eth0
[root@anpuejs2 network-scripts]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
10.141.0.0 * 255.255.0.0 U 0 0 0 eth0
default 10.141.1.1 0.0.0.0 UG 0 0 0 eth0
 
Old 12-15-2005, 04:25 PM   #4
karpi
Member
 
Registered: Oct 2005
Location: Germany
Distribution: Suse
Posts: 133

Rep: Reputation: 15
Hi,

can you ping 10.141.1.160?

If you ping 10.141.1.1 tcp/ip arps for this ip, because from the Network Assignment you want to ping a host on your local network. If 10.141.1.1 is outside your local network then you have to cahnge your network to maybe "10.1.1.1/24".

How do you connect to the other host?
 
Old 12-15-2005, 04:41 PM   #5
spikeroo
LQ Newbie
 
Registered: Apr 2004
Posts: 15

Original Poster
Rep: Reputation: 0
I can ping myself 10.141.1.160
The network settings are correct because a reboot fixes it.
Why should I need to reboot to make the NIC work?
What is a reboot doing that service network restart is not?
 
  


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
counter part of "service network restart" b0nd Slackware 5 10-10-2005 06:47 AM
Network stuck... works on restart manudath Linux - Networking 0 01-03-2005 03:57 PM
network works only once in each reboot nairnave Linux - Networking 1 09-18-2004 05:15 AM
service network restart - mandrake 9.1 problem perry Linux - General 0 01-25-2004 07:04 PM
service network restart perry Linux - Networking 2 12-15-2003 07:00 AM


All times are GMT -5. The time now is 09:31 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration