E
E
Eugene2017-10-20 16:04:28
JavaScript
Eugene, 2017-10-20 16:04:28

How to set up a gateway on SUSE in a VMWARE virtual machine?

Good afternoon everyone.
Created 2 virtual machines in VMWare. One on Windows Server 2016, the other on SUSE 11.
I want to use a virtual machine with SUSE as a gateway.
It has 2 network adapters. One is like a bridge. With dynamic address acquisition. Connected to a physical network.
59e9f215e3940906037045.png
The second is NAT. Set a static address.
59e9f23c9d553173739072.png
In the firewall settings, I specified eth0 as external, eth1 as Internal and enabled Masquerading.
Home router address 172.16.1.1
Ifconfig outputs the following


[email protected]:~/Desktop> /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:5F:63:03
inet addr:172.16.1.101 Bcast:172.16.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7629 errors:0 dropped:1 overruns:0 frame:0
TX packets:37 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1484797 ( 1.4 Mb) TX bytes:4296 (4.1 Kb)
eth1 Link encap:Ethernet HWaddr 00:0C:29:5F:63:0D
inet addr:192.168.238.206 Bcast:192.168.238.255 Mask:
255.255.255.0 1500Metric:1
RX packets:485 errors:0 dropped:0 overruns:0 frame:0
TX packets:14 errors: 0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:40212 (39.2 Kb) TX bytes:1092 (1.0 Kb)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6 errors:0 dropped :0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:300 (300.0 b) TX bytes:300 (300.0 b)

ipconfig from a Windows machine:
59e9f2018575a028162298.png
As a result, a SUSE machine can ping the router and does not see the Windows virtual machine. There is internet access.
The Windows machine sees SUSE and sees the physical router (172.16.1.1) but doesn't have internet access?
How can I set up a SUSE machine so that it acts as a gateway and the Windows machine has Internet access?
Can this be done without using a firewall?
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Belyaev, 2019-07-21
@bingo347

The getElementsByTagName method does not return a single element, but a collection that does not have a submit method
Possible solutions:

V
vreitech, 2017-10-20
@fzfx

if the virtual machine should be a gateway, remove all VMWare functions from the network adapter for the internal network that will interfere with this. you need to change "NAT" to "host only" (NAT should be handled by the gateway, not VMWare), and in the virtual network editor, uncheck "Connect virtual adapter" (you don't want the host system to have two network adapters with the default gateway specified in each of them?) and "Use the local DHCP service" (the gateway should handle the distribution of addresses, not VMWare). it is at least.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question