Вы находитесь здесь: version6.ru » Настройка JunOS для раздачи IPv6
Это — старая версия документа!
Настройка jun OS для раздачи ipv6: Во первых настройка динамического профиля для интерфейсов:
dynamic-profiles {
INTF {
interfaces {
demux0 {
unit "$junos-interface-unit" {
demux-options {
underlying-interface "$junos-underlying-interface";
}
family inet {
unnumbered-address lo0.0;
}
family inet6 {
unnumbered-address lo0.0;
}
}
}
}
protocols {
router-advertisement {
interface "$junos-interface-name" {
managed-configuration;
other-stateful-configuration;
link-mtu;
}
}
}
}
}
Тут RA создается без какого-либо префикса, т.к. он нужен до какой-либо авторизации чтобы CPE запросил DHCPv6.
Профиль DHCP:
dynamic-profiles {
DHCP_MAC_VALIDATE {
interfaces {
"$junos-interface-ifd-name" {
unit "$junos-interface-unit" {
proxy-arp restricted;
filter {
input "$junos-input-interface-filter";
output "$junos-output-interface-filter";
}
family inet {
mac-validate strict;
mtu 1500;
filter {
input "$junos-input-filter";
output "$junos-output-filter";
}
unnumbered-address lo0.0;
}
family inet6 {
mtu 1500;
filter {
input "$junos-input-ipv6-filter";
output "$junos-output-ipv6-filter";
}
unnumbered-address lo0.0;
}
}
}
}
protocols {
router-advertisement {
interface "$junos-interface-name" {
managed-configuration;
other-stateful-configuration;
link-mtu;
prefix $junos-ipv6-ndra-prefix {
valid-lifetime 14400;
on-link;
preferred-lifetime 14400;
}
}
}
}
}
}
DHCP сервер:
dhcpv6 {
group dhcp {
overrides {
rapid-commit;
process-inform {
pool p6;
}
always-add-option-dns-server;
asymmetric-lease-time 600;
asymmetric-prefix-lease-time 600;
dual-stack dhcp;
}
interface demux0.0;
}
}
group dhcp {
overrides {
asymmetric-lease-time 600;
dual-stack dhcp;
}
interface demux0.0;
}
dual-stack-group dhcp {
authentication {
password juniper;
username-include {
mac-address;
}
}
dynamic-profile DHCP_MAC_VALIDATE;
classification-key {
mac-address;
}
}
Крайне рекомендую lease тайм настраивать именно тут(asymmetric-lease-time), иначе с некоторыми роутерами ip пропадает, это касается и v4, а в пулах адресов указывать бесконечное время:
juniper.1729497900.txt.gz · Последние изменения: 2024-10-21 08:05 UTC От w


