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

Re: [Xen-users] Debian whezzy & Xen 4.1 & IPv6


  • To: Ian Campbell <ian.campbell@xxxxxxxxxx>
  • From: Ronny Wagner <r.wagner@xxxxxxxxx>
  • Date: Tue, 16 Jul 2013 11:25:48 +0000
  • Accept-language: de-DE, en-US
  • Cc: "Xen-users@xxxxxxxxxxxxx" <Xen-users@xxxxxxxxxxxxx>
  • Delivery-date: Tue, 16 Jul 2013 11:26:57 +0000
  • Domainkey-signature: a=rsa-sha1; c=simple; d=licoho.de; h=from:to:cc :subject:date:message-id:references:in-reply-to:content-type :mime-version; q=dns; s=dkim; b=fhITdwAXJuPtsu+w9liDsnGN2DfSh9qn vaQPEBrc2rTOiv1zYPZbfqqQ4jjhUSdgJPUwLFwmNQKVBi/0TlI6C6+PtF7zUIyX RQngIWkRiK0/qQcwkmMC54M5EiZele2FXv/peihbFWpsUox+Y1xoH9C8QREZvpWj +tNW3hk8v3g=
  • List-id: Xen user discussion <xen-users.lists.xen.org>
  • Thread-index: Ac58hf2ghmO1+NzvRWunZ3zsi36oHAAAEXcAAATArZAABXzigAAf/xHAAAsIeIABLjZWkA==
  • Thread-topic: AW: [Xen-users] Debian whezzy & Xen 4.1 & IPv6

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Ian,

sry for my late answer, i was sick the last days.

I change some files and the DomU started with ipv6:
nano /etc/xen/xend-config.sxp
Old:
(network-script 'network-route netdev=eth0')
(vif-script     'vif-route netdev=eth0')
New:
(network-script network-route)
(vif-script     vif-route)

nano /etc/xen/scripts/vif-common.sh
Old:
ip_of()
{
  ip addr show "$1" | awk "/^.*inet.*$1\$/{print \$2}" | sed -n '1 s,/.*,,p'
}
New:
ip_of()
{
        ip -4 -o addr show primary dev $1 | awk '$3 == "inet" {print $4; exit}' 
| sed 's#/.*##'
}

But now, I can ping from the DomU to the Dom0 and not to the gateway or the the 
internet. Do you have a tip how I can fix this?

Some entry I change in the file /etc/sysctl.conf:
net.ipv4.conf.all.rp_filter = 1
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.ip_forward = 1
net.ipv4.conf.eth0.proxy_arp = 1
net.ipv6.conf.all.forwarding = 1
net.ipv6.conf.all.proxy_ndp = 1
net.ipv4.conf.default.proxy_arp = 1

ipv4 is not a problem, this ist okay, but ipv6 not.
Traceroute:
traceroute to ipv6.google.com (2a00:1450:4005:808::1012), 30 hops max, 80 byte 
packets
 1  IPv6 Dom0 (IPv6 Dom0)  0.207 ms  0.149 ms  0.135 ms
 2  IPv6 Dom0 (IPv6 Dom0)  2999.852 ms !H  2999.809 ms !H  2999.759 ms !H

Thank you very much

- -----UrsprÃngliche Nachricht-----
Von: Ian Campbell [mailto:ian.campbell@xxxxxxxxxx]
Gesendet: Mittwoch, 10. Juli 2013 14:51
An: Ronny Wagner
Cc: Xen-users@xxxxxxxxxxxxx
Betreff: Re: AW: [Xen-users] Debian whezzy & Xen 4.1 & IPv6

On Wed, 2013-07-10 at 05:56 +0000, Ronny Wagner wrote:
> [...]
> ++ dom0_ip
> ++ local nd=eth0
> +++ ip_of eth0
> +++ sed -n '1 s,/.*,,p'
> +++ awk '/^.*inet.*eth0$/{print $2}'
> +++ ip addr show eth0
> ++ local result=
> ++ '[' -z '' ']'
> ++ fatal

This looks like the issue -- your script appears to want to find an IP
address on eth0.

Ian.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (MingW32)
Comment: Using gpg4o v3.1.32.3098 - http://www.gpg4o.de/
Charset: utf-8

iQGcBAEBAgAGBQJR5S25AAoJEB1lYcD99gJy6AcMAJIUFRNgK4urojfgJfMoPeUG
QAnqfrMCdhVP8Y06XZlju3NQvNo8u3wYzN+vZKBlcgCA5by+0O85KxvGARemuAn5
1lHwpKstFU2IcU4p5s3t8oQiGEqgp/+31SVbNOqHEOEnkblGBMCcmVqvOfOyMELl
a3SvZ6Rh1KfWr1wQZFGXPeusP87yOoThQsqa+4XnesI3k0QsqJcRjNLpr7olCqJg
r1amNKV8+Tu7I2AAF1osbGqWEJ6GNegvIHwALnuE3O2aKruMe4qdd1zSO4SGUEbd
uEnaowUovtRZwvm1ILWr2I+lJTlcdt3m8bwX2R4eP6Zw47WbQc1PmTSCDrrwPstH
puWJxX6yXWuTrrrA4zAvJ9RCACN3NzvGpRWFpmAmGwPUC80Sr6B62ipfGzwCvikW
+b8LlDhNr1JnpMhWzTNeQR7lm9tyNhdp1KCSjz2S2mcRNtsvRJ1xnhad1OrZvT8X
snTVPS1614s/a/bfJyyV7NNRntAttrinNOsVfudGSA==
=SM+5
-----END PGP SIGNATURE-----

Attachment: FDF60272.asc
Description: Binary data

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.