[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-discuss] port forward not work when using with macvtap
From: |
Li Feng |
Subject: |
[Qemu-discuss] port forward not work when using with macvtap |
Date: |
Thu, 21 Jun 2018 11:50:03 +0800 |
Hi all,
I create a vm with a macvtap network and a nat network.
```
netdev user,id=fl.1,hostfwd=tcp::5555-:22 \
-device e1000,netdev=fl.1 \
-net nic,model=virtio,macaddr=$(< /sys/class/net/macvtap0/address) \
-net tap,fd=3 3<>/dev/tap$(< /sys/class/net/macvtap0/ifindex)
```
I create two network cards because the macvtap ip is got from dhcp, and I
have to login from vnc to get it.
So I add a nat card to use as port forward to login from ssh.
The macvtap works well with a dhcp ip.
However, the port forwd on nat isn't work. If I delete the macvtap from
qemu command, the port forwd works well.
On host, the port 5555 is listenning.
tcp 0 0 0.0.0.0:5555 0.0.0.0:* LISTEN
13218/qemu-system-x
But I couldn't login in ssh with using ` ssh -p 5555 192.168.17.61`, it
will hang.
`ssh -p 5555 127.0.0.1 ` could success.
Anyone know how to fix this issue?
Millions of thanks.
Thanks,
--
The SmartX email address is only for business purpose. Any sent message
that is not related to the business is not authorized or permitted by
SmartX.
本邮箱为北京志凌海纳科技有限公司(SmartX)工作邮箱. 如本邮箱发出的邮件与工作无关,该邮件未得到本公司任何的明示或默示的授权.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-discuss] port forward not work when using with macvtap,
Li Feng <=