Connection sharing to W2K Server
Hi,
I have a MDK 8.2 install with a Speedtouch ADSL USB connected modem which is working on ppp0. I am using an IPTABLES script supplied by Griffon26 (often on this forum). I have a Win98 notebook from which I can ping the gateway IP. I have a W2K Server PC that has the same settings for gateway, DNS and subnet mask but fails to ping the gateway on the Linux box. The IP Masquerade is out of date with respect to setting up different clients, it only shows NT. But you can find the equivalent settings in the local area connection property sheet in W2K. So I don't get it? Any ideas gateway is 10.0.0.1, subnet mask is 255.0.0.0. DNS on the Linux box is 10.0.0.2 and for the ISP the DNS is 213.120.62.103 and 213.120.62.104. W2k box is on 10.0.0.6, Win98 is on 10.0.0.5 both with the same subnet mask as the linux box. The other things about the W2K setup are that it has disabled IPSEC. packet filtering is disabled. WINS is set on 10.0.0.6. NetBIOS is enabled over TCP/IP and LMHOSTS lookup is disabled. Append primary and connection specific DNS suffixes is enabled. "Register this connection's address is DNS" is selected. Finally the Interface metric is set to 1. The key settings in my iptables.sh are LOOPBack=127.0.0.0/8 LAN_IF="eth0" EXT_IF="ppp0" LAN_IF_ADDR="10.0.0.1" EXT_IF_ADDR="213.yyy.zz.qq" LAN_SUBNET="10.0.0.0/8" Last thing is that even though I can ping from my Win98 notebook I cannot get it to resolve a page in it's web browser, what extra steps do I need to achieve this? Thanks David |
One thing I discovered. I had set 10.0.0.2 to be the top DNS in Win98, this is as I setup in Linux in the resolver configuration panel of netconf tool. I changed the DNS in the Win98 configuration to just use th eDNS supplied by the ISP and it now resolves www.yahoo.com, woohoo!
So now it is just the whole configuration of the W2K box that needs to be sorted out. David |
Re: Connection sharing to W2K Server
Quote:
Quote:
example resolv.conf: Quote:
Quote:
Tonight I'll be able to check my 2K settings. That'll be in an hour or 6. |
Hi,
I must have put the 10.0.0.2 for the DNS in the netconf tool. I thought the DNS was used by the other PCs on the LAN to resolve something. I have removed it. It was in the resolv.conf and I have removed it from there. I tried the 10.0.0.5 IP address for the w2k box with the Win98 notebook off with no change. I disabled the WINS although W2K always warns me about it being blank in the property sheet when I dismiss it. The Microsoft Loopback adapter had the wrong subnet mask. What is this used for anyway? I now have it set with the same DNS and gateway settings as the actual netwrok card and it is on 10.0.0.4 IP address. |
From W2K, post output of
C:\> ipconfig /all This will show the DNS config/IP config and Wins config (if you use WINS). |
This is what my 2K configuration used to look like.
Code:
Windows 2000 IP Configuration |
Quote:
If so, I highly doubt you need it, but if you don't want to delete it, try netstat -ar to see if it isn't routing traffic to the loopback adapter while it should be going to the internet. |
My config looks like this:
Windows 2000 IP Configuration Host Name . . . . . . . . . . . . : roamware-2eg62k Primary DNS Suffix . . . . . . . : development.roamware.com Node Type . . . . . . . . . . . . : Hybrid IP Routing Enabled. . . . . . . . : No WINS Proxy Enabled. . . . . . . . : No DNS Suffix Search List. . . . . . : development.roamware.com Ethernet adapter Local Area Connection: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : CNet PRO200 PCI Fast Ethernet Adapter #2 Physical Address. . . . . . . . . : 00-80-XX-YY-XX-YY DHCP Enabled. . . . . . . . . . . : No IP Address. . . . . . . . . . . . : 10.0.0.6 Subnet Mask . . . . . . . . . . . : 255.0.0.0 Default Gateway . . . . . . . . . : 10.0.0.1 DNS Servers . . . . . . . . . . . : 213.120.62.103 213.120.62.104 Ethernet adapter Local Area Loopback: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Microsoft Loopback Adapter Physical Address. . . . . . . . . : 02-00-4C-4F-4F-50 DHCP Enabled. . . . . . . . . . . : No IP Address. . . . . . . . . . . . : 10.0.0.4 Subnet Mask . . . . . . . . . . . : 255.0.0.0 Default Gateway . . . . . . . . . : 10.0.0.1 DNS Servers . . . . . . . . . . . : 213.120.62.103 213.129.62.104 The fact that it is the server addition of W2K that uses SMB to provide file and printer sharing (although the Win98 notebook can no longer find the Domain server since I setup the Linux box?) have something to do with it? David |
Hey this netstat -ar looks pretty meaningful. Wish I knew what it all meant!
C:\>netstat -ar Route Table =========================================================================== Interface List 0x1 ........................... MS TCP Loopback interface 0x2 ...02 00 4c 4f 4f 50 ...... MS LoopBack Driver 0x1000004 ...00 80 XX YY XX YY ...... CNet PRO200 PCI Fast Ethernet Adapter =========================================================================== =========================================================================== Active Routes: Network Destination Netmask Gateway Interface Metric 0.0.0.0 0.0.0.0 10.0.0.1 10.0.0.6 1 0.0.0.0 0.0.0.0 10.0.0.1 10.0.0.4 1 10.0.0.0 255.0.0.0 10.0.0.4 10.0.0.4 1 10.0.0.0 255.0.0.0 10.0.0.6 10.0.0.6 1 10.0.0.4 255.255.255.255 127.0.0.1 127.0.0.1 1 10.0.0.6 255.255.255.255 127.0.0.1 127.0.0.1 1 10.255.255.255 255.255.255.255 10.0.0.4 10.0.0.4 1 10.255.255.255 255.255.255.255 10.0.0.6 10.0.0.6 1 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1 224.0.0.0 224.0.0.0 10.0.0.4 10.0.0.4 1 224.0.0.0 224.0.0.0 10.0.0.6 10.0.0.6 1 255.255.255.255 255.255.255.255 10.0.0.4 10.0.0.4 1 Default Gateway: 10.0.0.1 =========================================================================== Persistent Routes: None |
could you edit that post and add a [code] block around it? Makes it way more readable =]
|
To answer Griffon26:
Every machine has a loopback - check 'route print' under Win2k. (127.0.0.0). The interface 0x1 is "reserved" for TCP Loopback. To answer dwynter: The loopback is the address of localhost. Its a quick way to always be able to find your own services. |
Quote:
In addition to the standard loopback interface he also has a LoopBack Driver/Adapter. |
Edited: I answered my own question, so I have another.
Looking at the routes in the table, I would say the matching line that is closest to the bottom of the list will be used. This would mean that he should be able to ping his gateway right? As far as pinging hosts on the internet is concerned, it looks like the local loopback adapter is eating his packets because of a screwy order of routes. Can you tell me if this local loopback adapter is present as a network/dial-up connection? |
I tried
<code> the output from netstat and ipconfig here </code> and it did not work David |
That's why I said [code] =]
|
All times are GMT -5. The time now is 10:06 PM. |