Thanks, that means openvswitch doesn't support this situation.

But I think NAT problem will be solved if openvswitch transfers the data via 
the connection from private network service to public network service, and it 
is just not realized.


Regards,
Ghostplant


------------------ Original ------------------
From:  "Scott Lowe";<[email protected]>;
Send time: Sunday, Mar 12, 2017 9:50 PM
To: "ovs-discuss"<[email protected]>; 
Cc: "Egg VS Sphere"<[email protected]>; 
Subject:  Re: [ovs-discuss] OpenVSwitch connecting between private network and 
public network



Please see my reply below.


On Mar 11, 2017, at 11:59 PM, Egg VS Sphere <[email protected]> wrote:


Hi,


I have a question about whether OpenvSwitch supports the following requirement:


Firstly, I am sure that OpenvSwitch can connect 2 sub-networks via a tunnel 
(e.g. vxlan) -->
Assume the IP address of two hosts are 192.168.1.10 and 192.168.1.147 
respectively, what people should do is just to use
"ovs-vsctl add-port br1 vx1 -- set interface vx1 type=vxlan 
options:remote_ip=192.168.1.147" and
"ovs-vsctl add-port br1 vx1 -- set interface vx1 type=vxlan 
options:remote_ip=192.168.1.10" to link the 2 hosts.
It is clear that this is a DUPLEX task for each host to link to another host.


But it doesn't work on such requirement:
I have a remote cloud machine (named host-1) whose IP is allocated a public 
address that anyone can get access to it.
And I have a local machine (named host-2) from a family router whose IP is a 
private sub-net, all connections from this host to public service is NATed.


I want to link host-1 and host-2 to create a shared subnet. If I use the 
following method,
run "ovs-vsctl add-port br1 vx1 -- set interface vx1 type=vxlan 
options:remote_ip=<host-1-ip>" on host-2

run "ovs-vsctl add-port br1 vx1 -- set interface vx1 type=vxlan 
options:remote_ip=<host-2-ip (private network)>" on host-1



Obviously, the second command doesn't work.


I want to know whether there is a way to connect host-1 and host-2 to generate 
a shared subnet. (Assume I have no access to change settings of the family 
router)
Looking forward to your reply. 



If you have no access to the family router such that you cannot set 
up/configure NAT rules, then I think you will not be able to accomplish what 
you're seeking.

-- Scott


Sent from my mobile device
_______________________________________________
discuss mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to