Ask a Question Sign up for Free 129 Experts currently online. Ask Questions for Free!

linux and windows together - Windows 7 / Vista / XP Networking

I have one Windows and one MAC connected (WiFi) to a router and then to Internet. 192.168.2.1 - Router 192.168.2.2 - Windows (WiFi) 192.168.2.3 - MAC (WiFi) and I have one Linux connected to that Windows (Ethernet cable RJ-45) 192.168.1.1 - Windows (Ethernet) 192.168.1.2 - Linux (Ethernet) Can Linux catch ...

Results 1 to 9 of 9

  1. #1

    linux and windows together

    I have one Windows and one MAC connected (WiFi) to a router and then to
    Internet.
    192.168.2.1 - Router
    192.168.2.2 - Windows (WiFi)
    192.168.2.3 - MAC (WiFi)

    and I have one Linux connected to that Windows (Ethernet cable RJ-45)
    192.168.1.1 - Windows (Ethernet)
    192.168.1.2 - Linux (Ethernet)


    Can Linux catch the Router and then Internet?


    toni
  2. #2

    Re: linux and windows together

    toni wrote: 
    Yes, you can use "Internet Connection Sharing" (ICS) on the windows box.
    It'll want to change your "LAN" interface IP address to 192.168.0.1 and
    set up a DHCP server. You can go with that or just change it back to
    192.168.1.1 after it finishes.

    ....kurt
    Kurt
  3. #3

    Re: linux and windows together

    > Yes, you can use "Internet Connection Sharing" (ICS) on the windows box. 

    Weel, good news
    I'll go to read ICS then
    Thanks.


    toni
  4. #4

    Re: linux and windows together


    On Fri, 6 Jul 2007 20:43:56 +0200, "toni" <ns> wrote:
     

    Yes. There are alternatives.

    To continue to use your current ip scheme, first you need to enable
    routing on the windows box.

    On win9x this is

    System Key:
    [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Servic es\VxD\MSTCP]
    Value Name: EnableRouting
    Data Type: (string value)
    Value Data: (0 = disabled, 1 = enabled)

    For winxp/2k/NT

    System Key:
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Tcpip\Parameters]
    Value Name: IPEnableRouter
    Data Type: REG_DWORD (DWORD Value)
    Value Data: (0 = disabled, 1 = enabled)

    Then set a static route in the router configuration to send traffic
    for network 192.168.1.0 via the gateway 192.168.2.2

    On the linux box set the default gateway to be 192.168.1.1

    If this is windows xp (and probably vista too?) there is a simpler
    alternative of setting up a network bridge between the wired and
    wireless adaptors on the windows machine.

    This will avoid the need for routing and allow the wired linux box to
    connect to the router as if it was wireless itself.
    http://www.microsoft.com/technet/prodtechnol/winxppro/plan/xpbrdgnt.mspx
    ..

    Jim.

    James
  5. #5

    Re: linux and windows together

    Thanks for informations...

    Unfortunately I can't find how to set the router, so I can't tell you that
    everything works fine...
    I must work a little bit hard than I was estimate.
    But this is the enjoyment too


    toni
  6. #6

    Re: linux and windows together


    On Sun, 8 Jul 2007 18:55:41 +0200, "toni" <ns> wrote:
     


    Most routers will have a web interface
    http://192.168.2.1

    If you use the bridging option I mentioned you don't need to bother
    with routing configuration. Just put everything on the 192.168.2.0
    network.


    Jim.

    James
  7. #7

    Re: linux and windows together

    I have set the IPEnableRouter to 1 (windwos xp become a router?)
    I have set in linux the follow route.table.record:

    192.168.2.0/24 gateway 192.168.1.1 (device ethernet)

    But I can't ping 192.168.2.1 nor .2 nor .3





    The second way does not attract me so much, but for the moment I have test
    it too
    But, when I create the bridge (with the two connections) , the bridge can't
    receive the DHCP from the router... its IP become 0.0.0.0 (not valid)...


    toni
  8. #8

    Re: linux and windows together

    I have set the IPEnableRouter to 1 (windwos xp become a router?)
    I have set in linux the route.table.record below:

    192.168.2.0/24 gateway 192.168.1.1 (device ethernet)

    But I can't ping 192.168.2.1 nor .2 nor .3





    The second way does not attract me so much, but for the moment I have test
    it too
    But, when I create the bridge (with the two connections) , the bridge can't
    receive the DHCP from the router... its IP become 0.0.0.0 (not valid)...



    toni
  9. #9

    Re: linux and windows together


    On Mon, 9 Jul 2007 19:07:32 +0200, "toni" <ns> wrote:
     

    That's because you didn't set the static route on the router.

    Your route on the linux box tells it where to find network 192.168.2.0
    but there is no route back. The machines on network 2.0 cannot reply
    to the ping because they need the static route on the router to be
    able to find network 1.0


    Jim.

    James

Similar Threads

  1. What Linux can't do that Windows Can
    By [email protected] in forum Windows 7
    Replies: 44
    Last Post: 01-04, 06:54 PM
  2. cp windows to linux?
    By Dean in forum Ubuntu
    Replies: 7
    Last Post: 03-31, 03:13 AM
  3. Networking Windows with Linux
    By Timothy in forum Linux / Ubuntu Networking
    Replies: 2
    Last Post: 07-29, 07:39 AM
  4. connecting to windows VPN from Linux
    By Jay in forum Linux
    Replies: 1
    Last Post: 07-10, 06:21 PM
  5. windows xp and linux
    By bill in forum Linux
    Replies: 3
    Last Post: 07-07, 11:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100