Guys,
I am trying to get a network going between the host and a qemu guest,
using the tap device. I can ping from guest to host and from host to
guest, but I can only ssh from guest to host! Ssh from host to guest
fails with
# ssh 172.20.0.10
ssh: connect to host 172.20.0.10 port 22: No route to host
# ping 172.20.0.10
PING 172.20.0.10 (172.20.0.10) 56(84) bytes of data.
64 bytes from 172.20.0.10: icmp_seq=1 ttl=64 time=0.625 ms
64 bytes from 172.20.0.10: icmp_seq=2 ttl=64 time=0.447 ms
64 bytes from 172.20.0.10: icmp_seq=3 ttl=64 time=0.501 ms
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
aa.bb.cc.0 0.0.0.0 255.255.254.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
172.20.0.0 0.0.0.0 255.255.0.0 U 0 0 0 tap0
0.0.0.0 aa.bb.cc.1 0.0.0.0 UG 0 0 0 eth0
# ifconfig tap0
tap0 Link encap:Ethernet HWaddr FA:4B:BC:51:B4:50
inet addr:172.20.0.1 Bcast:172.20.255.255 Mask:255.255.0.0
On the guest:
# ping 172.20.0.1
PING 172.20.0.1 (172.20.0.1) 56(84) bytes of data.
64 bytes from 172.20.0.1: icmp_seq=1 ttl=64 time=0.625 ms
64 bytes from 172.20.0.1: icmp_seq=2 ttl=64 time=0.447 ms
64 bytes from 172.20.0.1: icmp_seq=3 ttl=64 time=0.501 ms
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.20.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 172.20.0.1 0.0.0.0 UG 0 0 0 eth0
The 172.20.0.x addresses are what the tapX devices are using by default.
This is on Ubuntu 7.04 with the uml-utilities package.
Thanks,
florin
--
Bruce Schneier expects the Spanish Inquisition.
http://geekz.co.uk/schneierfacts/fact/163
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.mn-linux.org/pipermail/tclug-list/attachments/20070404/4cecf24a/attachment.pgp