[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: KVM networking.



Thank You for Your time and answer, Arno:

>> /usr/bin/kvm -localtime -m 256 -no-reboot -boot c -hda da
>> -net nic -net tap,ifname=$(sudo /usr/sbin/tunctl -b -u $(whoami);
>> sudo /sbin/ifconfig tap0 192.168.1.1 up; sudo /sbin/route add -host
>> 192.168.1.1 dev tap0),script=no,downscript=no
>
>You're adding a host route, whereas you need a network route. Try:
>$ sudo ip route add 192.168.1.0/24 via 192.168.1.1

I already have the route:
default via 192.168.0.1 dev eth0 
169.254.0.0/16 dev eth0  scope link  metric 1000 
192.168.0.0/24 dev eth0  proto kernel  scope link  src 192.168.0.10 
192.168.1.0/24 dev tap0  proto kernel  scope link  src 192.168.1.1 
192.168.1.1 dev tap0  scope link 

Yet
$ ping 192.168.1.2
From 192.168.1.1 icmp_seq=2 Destination Host Unreachable

Hmm?

>I think this setup might need additional configuration on the outside,
>because you need to add the same subnet route on your Internet
>modem/router. I don't think qemu gives you NAT for free...

Host can forward then between the nets.


Reply to: