Link to home
Start Free TrialLog in
Avatar of Mark
Mark

asked on

Connect: Network is unreachable

I relocated our office webserver and changed the IP address, gateway, and mask. After booting it at the new location. I cannot get to any outside host, nor can I get to this host from the outside. Odd thing is, I had a RaspberryPi connected to this same IP at the same location for a couple of days as a place-holder waiting for the "real" computer and everything worked fine. I'm kind of clueless as to where to start. It's probably something simple ...
$ ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:C0:A8:7B:93:1F
          inet addr:98.102.63.106  Bcast:98.102.63.111  Mask:255.255.255.248
          inet6 addr: fe80::2c0:a8ff:fe7b:931f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2617 errors:0 dropped:0 overruns:0 frame:0
          TX packets:846 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:180687 (176.4 Kb)  TX bytes:885209 (864.4 Kb)
          Interrupt:17 Base address:0xd000

Open in new window

/etc/rc.d/rc.inet1.conf:
# Config information for eth0:
IPADDR[0]="98.102.63.106"
NETMASK[0]="255.255.255.248"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""

# Config information for eth1:
IPADDR[1]="192.168.0.3"
NETMASK[1]="255.255.255.0"
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

GATEWAY ="98.102.63.105"

Open in new window

I can `dig yahoo.com` and the nameserver returns an answer, but I can neither ping yahoo.com or ping its IP, or ping any IP. For example:
$ host novatec-inc.com
novatec-inc.com has address 96.11.168.98
novatec-inc.com mail is handled by 10 novatec-inc.com.

$ ping novatec-inc.com
connect: Network is unreachable

$ ping 96.11.168.98
connect: Network is unreachable

Open in new window

Why is the network unreachable? I don't know if I'm having a hardware problem or just a simple/stupid configuration issue. Firewall is down.

Slackware 13.37.0, kernel 2.6.37.6-smp
Avatar of Mark
Mark

ASKER

more info, this external nmap says the host is up, but all 1000 scanned ports are blocked!? Firewall is down. I believe I was able to get into the RaspberryPi similarly configured a few hours before. I need ideas!
> nmap -T4 -A -Pn 98.102.63.106

Starting Nmap 5.51 ( http://nmap.org ) at 2015-04-03 02:59 EDT
Nmap scan report for rrcs-98-102-63-106.central.biz.rr.com (98.102.63.106)
Host is up.
All 1000 scanned ports on rrcs-98-102-63-106.central.biz.rr.com (98.102.63.106) are filtered
Too many fingerprints match this host to give specific OS details

TRACEROUTE (using proto 1/icmp)
HOP RTT      ADDRESS
1   41.23 ms 142.254.156.101
2   15.91 ms 69.23.8.205
3   19.44 ms 24.33.160.58
4   19.34 ms tge9-2.wevlohoh02h.midwest.rr.com (24.33.162.33)
5   33.96 ms tge17-10.wevlohoh01m.midohio.rr.com (24.95.81.122)
6   ... 30

OS and Service detection performed. Please report any incorrect results at http://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 123.26 seconds

Open in new window

SOLUTION
Avatar of Zephyr ICT
Zephyr ICT
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of arnold
Netstat -rn,
Where is your name service? It is getting information.

You have two IPs on this system.
Ping/icmp ...  Try. Telnet www.yahoo.com 80 is the connection established?

Double check your ip/netmask

The block can be on the carrier/router to which your system is plugged in.

Iptables -L
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mark

ASKER

Figured it out. A sharp eye would have noticed a space between "GATEWAY" and "=" in line 13 of my rc.inet1.conf posting. Certainly it took me all day to notice it. If fact, when rebooting for another test I saw something about "invalid GATEWAY in line 48".

Simple, stupid. Points all around!