LinuxQuestions.org
Review your favorite Linux distribution.
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 05-13-2007, 02:13 PM   #1
phsythax
Member
 
Registered: Oct 2005
Location: Denmark
Distribution: Gentoo & XP pro for gaming
Posts: 152

Rep: Reputation: 30
Question Basic networking problem: "Network is unreachable"


Hello!
Some days ago i found a very cheap second hand Netgear 5-port "fast Ethernet switch" FS105
(its an old one with a "normal or uplink" button.)
so i bought it and now I'm playing around with it. I connected my two windows boxes to it and they automatically received an ip address. However, i couldn't send ping (standard ICMP type 8 packet) to either of them. So i booted into gentoo, got a static ip on the network and tried again. this is what happened:

Code:
# ping 192.168.18.63
connect: Network is unreachable
error received when trying to ping a windows box from a gentoo box.
 
Old 05-13-2007, 02:45 PM   #2
Que_273
Member
 
Registered: Nov 2005
Location: South coast
Distribution: Debian /AMD64
Posts: 48

Rep: Reputation: 15
When DHCP assigns an ip address, it usually also gives the IP of the default route.
For example your IP might be 192.168.18.12 and the default route might be 192.168.18.1

route -n will show you what your current routes are
Code:
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
x.x.144.0       0.0.0.0         255.255.252.0   U     0      0        0 eth0
0.0.0.0         x.x.144.1       0.0.0.0         UG    0      0        0 eth0
The second line is the default route. Anything I don't know how to route will be sent here. If thi line is missing and you are trying to ping an address that is not included in any of the subnets, the destination will be "unreachable".

If you can find the default route that is assigned to the Windows PCs, you can add it using
route add default gw 1.2.3.4
or add it to the "static" section in /etc/network/interfaces

Who is assigning the ip addresses in your setup? Your linux box, one of the Win PCs or someone else?
 
Old 05-14-2007, 09:43 AM   #3
phsythax
Member
 
Registered: Oct 2005
Location: Denmark
Distribution: Gentoo & XP pro for gaming
Posts: 152

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Que_273
Who is assigning the ip addresses in your setup? Your linux box, one of the Win PCs or someone else?
I have no idea. this is how it is set up:

boxA(windows&gentoo) <---(standard network cable)---> netgear switch <---(standard network cable)---> boxB(windowsXp)

I havn't made any configuration on boxB, neither with boxA when windows is booted, when gentoo is booted, i edited the /etc/conf.d/net to the following, then i rebooted:
Code:
# use either the dhcp or static ip
#config_eth0=( "dhcp" ) 
config_eth0=( "192.168.1.2 netmask 255.255.255.0" )

dhcpcd_eth0="-t 10" # Timeout after 10 seconds
dhcp_eth0="release nodns nontp nonis" # Only get an address

Last edited by phsythax; 05-14-2007 at 10:04 AM.
 
  


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
Slow network connection, "Destination host unreachable" stefans Linux - Networking 2 11-22-2006 03:54 AM
SiS900 Ethernet Problem "Network is unreachable" mertos Linux - Networking 7 04-04-2005 09:01 AM
Getting message "connect: Network is unreachable" trying to access the Internet denver1980 Linux - Networking 5 12-29-2004 05:22 PM
MA-311 on eth0 inaccessible via Linux, "Network Unreachable" error, no localhost ping LGMike Linux - Networking 14 09-21-2003 11:11 PM
tftp - "Destination Unreachable" due to "Port Unreachable" renjithgopal Linux - Security 5 07-24-2003 10:36 AM

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

All times are GMT -5. The time now is 02:59 AM.

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