Re: [Qemu-devel] [RFC PATCH qemu] slirp: Update forwarding IP address if guest receiver non-default IP

2018-03-07 Thread Samuel Thibault
Hello, Thomas Huth, on mer. 07 mars 2018 07:30:29 +0100, wrote: > On 07.03.2018 04:39, Alexey Kardashevskiy wrote: > > On 08/02/18 15:29, Alexey Kardashevskiy wrote: > >> On 01/02/18 20:36, Alexey Kardashevskiy wrote: > >>> If we run QEMU with -netdev user,id=USER0,hostfwd=tcp::-:22, it

Re: [Qemu-devel] [RFC PATCH qemu] slirp: Update forwarding IP address if guest receiver non-default IP

2018-03-06 Thread Thomas Huth
On 07.03.2018 04:39, Alexey Kardashevskiy wrote: > On 08/02/18 15:29, Alexey Kardashevskiy wrote: >> On 01/02/18 20:36, Alexey Kardashevskiy wrote: >>> If we run QEMU with -netdev user,id=USER0,hostfwd=tcp::-:22, it starts >>> a DHCP server and starts allocating client IPs from 10.0.2.15 so

Re: [Qemu-devel] [RFC PATCH qemu] slirp: Update forwarding IP address if guest receiver non-default IP

2018-03-06 Thread Alexey Kardashevskiy
On 08/02/18 15:29, Alexey Kardashevskiy wrote: > On 01/02/18 20:36, Alexey Kardashevskiy wrote: >> If we run QEMU with -netdev user,id=USER0,hostfwd=tcp::-:22, it starts >> a DHCP server and starts allocating client IPs from 10.0.2.15 so >> this is what the guest normally receives. Since QEMU

Re: [Qemu-devel] [RFC PATCH qemu] slirp: Update forwarding IP address if guest receiver non-default IP

2018-02-07 Thread Alexey Kardashevskiy
On 01/02/18 20:36, Alexey Kardashevskiy wrote: > If we run QEMU with -netdev user,id=USER0,hostfwd=tcp::-:22, it starts > a DHCP server and starts allocating client IPs from 10.0.2.15 so > this is what the guest normally receives. Since QEMU automatically adds > the DHCP starting address into

[Qemu-devel] [RFC PATCH qemu] slirp: Update forwarding IP address if guest receiver non-default IP

2018-02-01 Thread Alexey Kardashevskiy
If we run QEMU with -netdev user,id=USER0,hostfwd=tcp::-:22, it starts a DHCP server and starts allocating client IPs from 10.0.2.15 so this is what the guest normally receives. Since QEMU automatically adds the DHCP starting address into the forwarding table, everything works. This is the