#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    76
    Rep Power
    14

    Win2k Linux Internet Sharing


    Hi

    Can anyone help?

    I have 2 PC's -

    PC1 is my main PC and is running Win2k, has a ADSL connection via modem and an Ethernet card.

    PC2 is running RedHat Linux 7.2 and has an Ethernet card.

    I have set up the IP address for PC1 as 10.0.0.3 and for PC2 as 10.0.0.2.

    I can ping between the PC's no trouble.

    I want to be able to do two things -

    1. Set up Internet sharing ie use the Linux box to access the Internet through the connection on the Win2K box

    2. Have the Linux box serve as a web server - ie be able to access it from the Win2k box via a browser - http://linux_box_IP/myfiles.html

    I have option 2 working great.

    The problem is with option 1.

    This is what is happening -

    If I set up the Network connection for the ADSL modem to 'share' using the LAN connection (set up for the Win2k/Linux LAN) It resets the IP of the LAN to 192.168.0.1.

    If I then try to ping the Linux box - I get time out errors. I also cannot ping 192.168.0.1 from the Linux box.

    I am totally stuck. Does anyone know how to set this up, or know a link where this is documented?

    Thanks

    Kevin
  2. #2
  3. No Profile Picture
    Slacker
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2001
    Location
    Sweden
    Posts
    76
    Rep Power
    14
    Have you tried setting the Linux to 192.168.0.2?

    /Fjodor
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    76
    Rep Power
    14
    Hi

    Ok I have set up 'sharing' on the win2k box, so this has reset the IP address for 'mylan' connection to 192.168.0.1. Subnet Mask 255.255.255.0. (No default Gateway address)

    I have set the network for the Linux box to:

    IP 192.168.0.2
    Subnet Mask 255.255.255.0
    Gateway 192.168.0.1

    After rebooting both machines I can now ping between them again. Great

    OK so now how do I intiate Internet access from the Linux box? It uses Mozilla and there doesn't appear to be anywhere to tell it how to connect!

    Any advice please

    Thanks

    Kevin
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    76
    Rep Power
    14
    Hi

    I am really close here.

    I have set up Mozilla to use HTTP Proxy 192.168.0.1 (The IP of my win2k box) It is connecting through to the box BUT I get a -

    'The connection was refused error' in Mozilla

    I have a firewall on the win2k machine but configured this to allow traffic from the Linux box - firewall logs show it is allowing traffic through ok, so there is something not quite right either with the win2k setup or maybe I am using the wrong info in Mozilla.

    I hate to get this close and not finish. can anyone give me some pointers?

    Thanks

    Kevin
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Oct 2000
    Location
    Back in the real world.
    Posts
    5,966
    Rep Power
    190
    i doubt that windows 2000 installs a proxy when you start ics.

    setting the box up as gateway should be sufficient. i think the problem is another: you probably didīt setup dns on the linux machine. i think you can give it the windows serverīs ip (if it has dns services running) or the ip of any dns-server on the īnet.

    i read there is a "upnp" implementation for linux that supports remote control of the ics. but canīt remember where i read that
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    76
    Rep Power
    14
    Hi

    Thank you for your reply.

    The problem is if I just have Mozilla set to a direct internet connection I get a message -

    'www.whatever.com could not be found'

    Checking on the wink2 box, the connection isn't even going through, so its stopping at the Linux box somewhere.

    I tried setting the Primary DNS for the Linux Box to the IP of the win2k box and that doesn't help. Maybe it needs further configuring but I'm stuck and out of ideas

    Yours

    Kevin
  12. #7
  13. No Profile Picture
    Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Oct 2000
    Location
    Back in the real world.
    Posts
    5,966
    Rep Power
    190
    look up your providerīs dns server. double click on the network icon in your taskbar tray, itīs told on the "details" tab.
    if you donīt have this icon, try to connect to your provider while you are already connected, it comes up then too.

    enter this DNS Serverīs IP in your linux box. does it work?

    if not, try to ping this IP from your linux box. do you get an answer?
  14. #8
  15. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    76
    Rep Power
    14
    Hi

    Problem solved!

    By issuing ipconfig /all from the Win2k Command-Line the DNS's show up, so I set them in the Linux box and the thing connects great - a little slow but I think that is a Netscape/Mozilla thing.

    Thanks

    Kevin

IMN logo majestic logo threadwatch logo seochat tools logo