Discussion:
IPv6 query
(too old to reply)
tech-lists
2016-08-05 13:41:35 UTC
Permalink
Hi,

Is it possible to have the *same interface* set with a static IP for
IPv4 but dynamic for IPv6 ?

thanks,
--
J.
Matthew Seaman
2016-08-05 14:03:03 UTC
Permalink
Post by tech-lists
Is it possible to have the *same interface* set with a static IP for
IPv4 but dynamic for IPv6 ?
Sure. The IPv4 and IPv6 configuration bits in /etc/rc.conf are pretty
independent. Having something like:

ifconfig_em0="inet 192.0.2.1/24"

and

ifconfig_em0_ipv6="inet6 accept_rtadv"

shouldn't be a problem at all.

(assuming by 'dynamic' you mean SLAAC. DHCP6 is left as an excercise
for the reader.)

Cheers,

Matthew
tech-lists
2016-08-05 14:38:52 UTC
Permalink
Post by Matthew Seaman
Sure. The IPv4 and IPv6 configuration bits in /etc/rc.conf are pretty
ifconfig_em0="inet 192.0.2.1/24"
and
ifconfig_em0_ipv6="inet6 accept_rtadv"
shouldn't be a problem at all.
(assuming by 'dynamic' you mean SLAAC. DHCP6 is left as an excercise
for the reader.)
xlnt, that's how I had it. I think it maybe either router or ISP failure
for now, thanks for your help
--
J.
Trond Endrestøl
2016-08-05 14:50:27 UTC
Permalink
Post by tech-lists
Is it possible to have the *same interface* set with a static IP for
IPv4 but dynamic for IPv6 ?
Sure:

ifconfig_em0="inet 192.168.1.2 netmask 255.255.255.0"
ifconfig_em0_ipv6="inet6 accept_rtadv"
defaultrouter="192.168.1.1"
--
+-------------------------------+------------------------------------+
| Vennlig hilsen, | Best regards, |
| Trond Endrestøl, | Trond Endrestøl, |
| IT-ansvarlig, | System administrator, |
| Fagskolen Innlandet, | Gjøvik Technical College, Norway, |
| tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, |
| sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. |
+-------------------------------+------------------------------------+
Loading...