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 ...
Slackware 13.37.0, kernel 2.6.37.6-smp
$ 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
/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"
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
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
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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!
Simple, stupid. Points all around!
ASKER
Open in new window