Weird Network Problem
I've been trying to fix this since late last week. I finally give up and decided to post in the hopes that one of you can see something I'm overlooking :)
Basically I'm setting up a small server at work, and it won't get any internet/network connectivity now. I should first explain my overall network topology to help clarify the problem. Please forgive the very lame picture. http://personalwebs.oakland.edu/~ermcgrat/network.png Now when I built/tested the slackware server box I placed it under the 24-port switch and just had it configure the network with DHCP. Everything worked fine so I know the NIC is ok. Moving the server to its new location (so as not to get traffic blocked by the firewall) and statically configuring the network I get nothing. However if I literraly unplug the cable from the slackware box and plug in a Windows machine and statically configure it with the same values it works fine. I configured the network via netconfig. It is unable to ping the following with a host unreachable: google.com, google by ip, local ips. Here is my /etc/rc.d/inet1.conf IPADDR[0]="207.104.44.21" NETMASK[0]="255.255.255.240" USE_DHCP[0]="no" DHCP_HOSTNAME="" GATEWAY="67.124.9.185" DEBUG_ETH_UP="no" And my /etc/resolv.conf nameserver 206.13.31.12 And here I believe is the problem # route -n Destination || Gateway || Mask | Flags| Metric | Ref | Use | Iface 207.104.44.16 || 0.0.0.0 || 255.255.255.240 | U | 0 | 0 | 0 | eth0 127.0.0.0 || 0.0.0.0 || 255.0.0.0 | U | 0 | 0 | 0 | lo Why is the gateway showing as 0.0.0.0 when it specifically says in inet1.conf GATEWAY="67.124.9.185"? And why is it 207.104.44.16 when I set the ip to 207.104.44.21? This is the only information I put into windows for it work, as provided by SBC: IP: 207.104.44.21 Subnet: 255.255.255.240 Gateway: 67.124.9.185 Nameserver 206.13.31.12 Any help would be much appreciated, this has been frustrating me to no end for almost a week. |
Did you restart inetd after changing the values?
Please post the output of ifconfig? Try: ifconfig eth0 up. |
Quote:
Edit: The reason I was so confused is because windows for some reason worked even with the wrong gateway |
But I don't understand then why it worked with Windows.
|
Quote:
Quote:
Quote:
BTW, look here for the subnet information for your specific IP address/netmask: http://sox.homeip.net/cgi-bin/ipcalc...255.240&mask2= The "0.0.0.0" address is equal to the term "default route" or "default gateway". And the definition of the default route is exactly what's missing from your route table, due to the incorrect GATEWAY value you used. Your computer will not be able to communicate with computers not in the local subnet. Quote:
What is the output in a DOS box of the command Code:
route -p print Eric |
EDIT: Sorry, Alien Bob managed to press the SEND button before me :)
And his answer is far way more complete than mine. The problem is the gateway and the workstation must be in the same network. You can't set a gateway=67.124.9.185 for a machine which ip=207.104.44.21. |
Quote:
|
Space reserved
|
Quote:
Peace... |
Quote:
|
Quote:
Oh well, I don't run inetd so I guess I wouldn't notice any strange side-effects like this. :) Peace... |
All times are GMT -5. The time now is 01:06 PM. |