1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Internet Connection Sharing using netsh

Discussion in 'Networking (Hardware & Software)' started by ubuntuv, 2010/04/12.

  1. 2010/04/12
    ubuntuv

    ubuntuv Inactive Thread Starter

    Joined:
    2010/04/12
    Messages:
    5
    Likes Received:
    0
    hello,

    I use two windows XP machines. Machine1 has two interfaces. One connected to internet. The other is static ip "172.16.1.1 ". This interface is connected to Machine2 that has static ip "172.16.1.12" with gateway "172.16.1.1 ".

    Now I want to access internet in machine2 via machine1.

    I did the following steps:

    1. Enabled "IPEnableRouter" register setting to "1 "
    2. Enabled NAT by commands
    netsh routing ip nat install
    netsh routing ip nat add interface "Internet" full
    netsh routing ip nat add interface "Local Area Connection" private
    netsh routing ip dnsproxy install

    Even then, I am not able to access internet. Is there anything more that needs to be done, to access internet.

    Thanks in advance
    uv
     
  2. 2010/04/12
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    Om the Internet comp adapter rt click > Properties > Advanced tab, check "Allow other network users to connect . "

    Verify netsh allowed by Windows Firewall.
     

  3. to hide this advert.

  4. 2010/04/12
    ubuntuv

    ubuntuv Inactive Thread Starter

    Joined:
    2010/04/12
    Messages:
    5
    Likes Received:
    0
    Thanks tony,

    I disabled firewall. I prefer to do it by netsh. I have systems in this way:

    Machine1(172.16.1.12)-----(172.16.1.1)Machine2(10.132.14.1)------(10.132.14.23)Machine3

    from machine1, I am trying to access Machine3 via Machine2. I am configuring Machine2 to make this happen and got stuck at netsh. Please suggest me ideas.


    --uv
     
  5. 2010/04/12
    Scott Smith

    Scott Smith Inactive Alumni

    Joined:
    2002/01/12
    Messages:
    1,950
    Likes Received:
    4
    A 39.00 router? I'm just saying. :p
     
  6. 2010/04/12
    ubuntuv

    ubuntuv Inactive Thread Starter

    Joined:
    2010/04/12
    Messages:
    5
    Likes Received:
    0
    >> A 39.00 router? I'm just saying.

    Good One Scott.

    From Machine1, I issued "ping 10.132.14.23 "

    In Machine2, sniffed packets on "10.132.14.1" interface. I could see the ICMP echo request(Src: 172.16.1.12 & Dst: 10.132.14.223) and Machine3 is trying to reply to 172.16.1.12, which has no route in its routing table.

    This means that IP address 172.16.1.12 has not changed to 10.132.14.1 at Machine2(NAT hasnt enabled). I was asking is there any way we can enable NAT, so that IP address translation is done.

    --uv
     
  7. 2010/04/12
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    You may have to bridge the 2 adapters.
     
  8. 2010/04/13
    ubuntuv

    ubuntuv Inactive Thread Starter

    Joined:
    2010/04/12
    Messages:
    5
    Likes Received:
    0
    If I do that, the packets intended for both the ip addresses travel through both the interfaces.

    Please mention how NAT can be configured to make translation of ip address from 172.16.1.12 to 10.132.14.1.

    I am badly in need of it.

    --uv
     
  9. 2010/04/13
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    The "second" NIC will need to be set to a dynamic address, as will the NIC on the second computer.

    NAT won't work with ICS unless dynamic IPs are used.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.