The Linux box is connected to a LAN, the host traffic to the LAN goes through eth0. The default traffic for the host should go through the Windows 7 guest.
The Windows 7 guest has access to the LAN in bridged mode.
I tried to use VMnet1 (the local adapter from VMware) to route the default traffic from the host to the Internet through the guest.
For the Windows guest:
Adaptador ethernet VMware Network Adapter VMnet1:
Sufixo DNS específico da ligação. :
Endereço IPv6 de local de ligação : fe80::69ed:c173
Endereço IPv4 . . . . . . . . . . . . . . : 172.16.233.2
Máscara de sub-rede . . . . . . . : 255.255.255.0
Gateway predefinido . . . . . . . : 10.66.81.254
From the Windows 7 guest I can ping 173.16.233.1, the VMnet1 host interface, as both are in the same network.
I don’t have access to windows snap-ins, so have to use netsh commands.
>ipconfig /all
Configuração IP do Windows
Nome do Anfitrião. . . . . . . . .: py01
Sufixo DNS principal. . . . . . . : rl
Tipo de nó. . . . . . . . . . . . : Misto
Rota IP activada. . . . . . . . . : Não
WINS Proxy activado . . . . . . . : Não
Lista de Pesquisa de Sufixos DNS : rl
System Quarantine State . . . . . : Não Restringido
Adaptador ethernet Ligação de Área Local 5:
Sufixo DNS específico da ligação. :
Descrição . . . . . . . . . . . . : Intel(R) PRO/1000 MT Network Connection #3
Endereço físico . . . . . . . . . : 00-0C-29-1D-37-A1
DHCP activado . . . . . . . . . . : Sim
Autoconfiguração activada . . . . : Sim
Endereço IPv4 . . . . . . . . . . . . . . : 10.66.80.211(Preferido)
Máscara de sub-rede . . . . . . . : 255.255.254.0
Gateway predefinido . . . . . . . : 10.66.81.254
Servidor DHCP . . . . . . . . . . : 10.191.32.200
Servidores DNS. . . . . . . . . . : 10.66.50.90
Servidor WINS principal . . . . . : 10.193.191.190
Servidor WINS secundário . . . . .: 10.125.127.126
NetBIOS por Tcpip . . . . . . . . . . . . : Activado
Adaptador ethernet VMware Network Adapter VMnet1:
Sufixo DNS específico da ligação. :
Descrição . . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet1
Endereço físico . . . . . . . . . : 00-50-56-C0-00-01
DHCP activado . . . . . . . . . . : Não
Autoconfiguração activada . . . . : Sim
Endereço IPv4 . . . . . . . . . . . . . . : 172.16.233.2(Preferido)
Máscara de sub-rede . . . . . . . : 255.255.255.0
Gateway predefinido . . . . . . . : 10.66.81.254
NetBIOS por Tcpip . . . . . . . . . . . . : Activado
The problem is that I still have no access from the host to the Internet through the Windows guest, and cannot ping the VMnet1 of the guest.
At the start of `ipconfig/all` the output shows Rota IP activada. . . . . . . . . : Não
Which is that ip routing is not activated, already I tried to activate it to VMnet1 interface in windows guest with:
netsh interface ipv4 set int "VMware Network Adapter VMnet1" forwarding=enabled
netsh interface ipv4 set int "VMware Network Adapter VMnet1" forwarding=enabled store=active
netsh interface ip set address name="VMware Network Adapter VMnet1" static 172.16.233.2 255.255.255.0 10.66.81.254"
How to proceed from here? Enable firewall for packet filtering? Add route from 172.16.233.2 to the guest gateway? How to do it?
The Windows 7 guest has access to the LAN in bridged mode.
I tried to use VMnet1 (the local adapter from VMware) to route the default traffic from the host to the Internet through the guest.
For the Windows guest:
Adaptador ethernet VMware Network Adapter VMnet1:
Sufixo DNS específico da ligação. :
Endereço IPv6 de local de ligação : fe80::69ed:c173
Endereço IPv4 . . . . . . . . . . . . . . : 172.16.233.2
Máscara de sub-rede . . . . . . . : 255.255.255.0
Gateway predefinido . . . . . . . : 10.66.81.254
From the Windows 7 guest I can ping 173.16.233.1, the VMnet1 host interface, as both are in the same network.
I don’t have access to windows snap-ins, so have to use netsh commands.
>ipconfig /all
Configuração IP do Windows
Nome do Anfitrião. . . . . . . . .: py01
Sufixo DNS principal. . . . . . . : rl
Tipo de nó. . . . . . . . . . . . : Misto
Rota IP activada. . . . . . . . . : Não
WINS Proxy activado . . . . . . . : Não
Lista de Pesquisa de Sufixos DNS : rl
System Quarantine State . . . . . : Não Restringido
Adaptador ethernet Ligação de Área Local 5:
Sufixo DNS específico da ligação. :
Descrição . . . . . . . . . . . . : Intel(R) PRO/1000 MT Network Connection #3
Endereço físico . . . . . . . . . : 00-0C-29-1D-37-A1
DHCP activado . . . . . . . . . . : Sim
Autoconfiguração activada . . . . : Sim
Endereço IPv4 . . . . . . . . . . . . . . : 10.66.80.211(Preferido)
Máscara de sub-rede . . . . . . . : 255.255.254.0
Gateway predefinido . . . . . . . : 10.66.81.254
Servidor DHCP . . . . . . . . . . : 10.191.32.200
Servidores DNS. . . . . . . . . . : 10.66.50.90
Servidor WINS principal . . . . . : 10.193.191.190
Servidor WINS secundário . . . . .: 10.125.127.126
NetBIOS por Tcpip . . . . . . . . . . . . : Activado
Adaptador ethernet VMware Network Adapter VMnet1:
Sufixo DNS específico da ligação. :
Descrição . . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet1
Endereço físico . . . . . . . . . : 00-50-56-C0-00-01
DHCP activado . . . . . . . . . . : Não
Autoconfiguração activada . . . . : Sim
Endereço IPv4 . . . . . . . . . . . . . . : 172.16.233.2(Preferido)
Máscara de sub-rede . . . . . . . : 255.255.255.0
Gateway predefinido . . . . . . . : 10.66.81.254
NetBIOS por Tcpip . . . . . . . . . . . . : Activado
The problem is that I still have no access from the host to the Internet through the Windows guest, and cannot ping the VMnet1 of the guest.
At the start of `ipconfig/all` the output shows Rota IP activada. . . . . . . . . : Não
Which is that ip routing is not activated, already I tried to activate it to VMnet1 interface in windows guest with:
netsh interface ipv4 set int "VMware Network Adapter VMnet1" forwarding=enabled
netsh interface ipv4 set int "VMware Network Adapter VMnet1" forwarding=enabled store=active
netsh interface ip set address name="VMware Network Adapter VMnet1" static 172.16.233.2 255.255.255.0 10.66.81.254"
How to proceed from here? Enable firewall for packet filtering? Add route from 172.16.233.2 to the guest gateway? How to do it?