Re: IPv4 und IPv6 an Interface vergeben

Jan Kohnert <[email protected]>
Newsgroups gmane.linux.gentoo.user.german
Message-ID <[email protected]>
Markus Rennings schrieb:
> Hallo,
> 
> Am Mittwoch, 3. August 2011, 13:33:49 schrieb Jan Kohnert:
> > auf meinem Gentoo-Server wird mir seit einiger Zeit angeboten, neben
> > der IPv4- Adresse auch noch eine IPv6-Adresse anzulegen. Die
> > Datendafür habe ich.
> > 
> > Leider finde ich kein Beispiel, wie ich das in der /etc/conf.d/net
> > umsetze
> 
> Guck mal in die /etc/conf.d/net.example:
> | # You can also use IPv6 addresses
> | # (you should always specify a prefix length with IPv6 here)
> | #config_eth0=(
> | #       "192.168.0.2/24"
> | #       "4321:0:1:2:3:4:567:89ab/64"
> | #       "4321:0:1:2:3:4:567:89ac/64"
> | #

Danke, ich werde es mir noch einmal anschauen. Wobei ich mittlerweile glaube, 
es liegt an einer unkorrekten IPv6-Adresse. Siehe:

~ # ip -6 addr add dev eth0 2001:4ba0:fff1:c3/64
Error: an inet prefix is expected rather than "2001:4ba0:fff1:c3/64".
b079 ~ # ip inet6 addr add dev eth0 2001:4ba0:fff1:c3/64

~ # ip -f inet6 addr add dev eth0 2001:4ba0:fff1:c3::/64
~ # ifconfig eth0
eth0      Protokoll:Ethernet  Hardware Adresse 00:11:09:ec:a5:fd  
          inet Adresse:62.141.42.79  Bcast:62.141.42.255  Maske:255.255.255.0
          inet6 Adresse: 2001:4ba0:fff1:c3::/64 Gültigkeitsbereich:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:76532 errors:0 dropped:72 overruns:0 frame:0
          TX packets:60201 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000 
          RX bytes:5936063 (5.6 MiB)  TX bytes:79379595 (75.7 MiB)
          Interrupt:11 Basisadresse:0xe500

Nur weiß ich nicht, ob 2001:4ba0:fff1:c3 wirklich 2001:4ba0:fff1:c3:: sein 
soll, oder vielleicht eher 2001:4ba0:fff1:c3::1...

-- 
MfG Jan
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEABECAAYFAk45PeIACgkQZRp6KEAo/3pkDgCgm+Qqb0fb1BxW+8r5mk4+hOmR
KBkAn0r0WakGAlFr4d+yfvbH9RsbK+Mf
=OD0L
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.