[Lguest] Need help for networking inside lguest

octane indice octane at alinto.com
Wed Mar 12 20:40:40 EST 2008


En réponse à inflo <inflo at web.de> :
> hi,
> sorry, only to make it correct.
> 
> > The TX counter of the tap0 device (host) gets incremented if
> > i ping from guest to host.
> its the RX (receive) counter of tap0 (host) device which gets
> incremented
> 
I got exactly the same point of view:

root at slackwall:~# tcpdump -e -n -i tap0
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on tap0, link-type EN10MB (Ethernet), capture size 96 bytes
08:58:08.370198 00:ff:5b:ec:a0:b7 > ff:ff:ff:ff:ff:ff, ethertype ARP
(0x0806), length 42: arp who-has 192.168.19.1 tell 192.168.19.2
08:58:08.391637 00:ff:5b:ec:a0:b7 > 00:ff:5b:ec:a0:b7, ethertype ARP
(0x0806), length 42: arp reply 192.168.19.1 is-at 00:ff:5b:ec:a0:b7

Here we can see that ARP-request is coming from 192.168.19.2.
192.168.19.1 replies with information (allways with this strange problem of
same mac address).

but in the lguest, nothing.

I redraw my tests from yesterday. Today it works:

>From lguest:
root at slack12:~# ping -c1 192.168.19.1
PING 192.168.19.1 (192.168.19.1) 56(84) bytes of data.
64 bytes from 192.168.19.1: icmp_seq=1 ttl=64 time=5.40 ms

--- 192.168.19.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 5.407/5.407/5.407/0.000 ms

>From the host:
root at slackwall:~# ping 192.168.19.2
PING 192.168.19.2 (192.168.19.2) 56(84) bytes of data.
64 bytes from 192.168.19.2: icmp_seq=1 ttl=64 time=1.49 ms

Here what I've forgot yesterday:
I got three NIC card. One is configured, but not used:
4: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:02:b6:34:7b:1a brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.99/24 brd 192.168.1.255 scope global eth0
    inet6 fe80::202:b6ff:fe34:7b1a/64 scope link
       valid_lft forever preferred_lft forever

Notice the NO-CARRIER? I don't know if it's this that mess with tun/tap.

So, if now I do:
1. ifconfig eth0 down,
2. start lguest
3. change MAC inside the host
4. configure eth0 in lguest
-> it works.

Perhaps, it could help you.

_______________________________________________
> Lguest mailing list
> Lguest at ozlabs.org
> https://ozlabs.org/mailman/listinfo/lguest
> 





Eurolines : Voyagez au meilleur prix : http://www.alinto.com/pub/



More information about the Lguest mailing list