120 likes | 235 Views
Настройка FreeBSD 8.0-STABLE, 7.2-STABLE. 1) Получить сеть / сети IPv6. 2) Открыть IPv6 в /etc/ rc.conf 3) Настроить IPFW 4) Прописать IPv6 адреса в DNS 5) Настроить сервисы. /etc/ rc.conf. ipv6_enable="YES" ipv6_ifconfig_bge0="2a02:70:0:4::2/64"
E N D
Настройка FreeBSD 8.0-STABLE, 7.2-STABLE 1) Получить сеть/сети IPv6. 2) Открыть IPv6 в /etc/rc.conf 3) Настроить IPFW 4) Прописать IPv6 адреса в DNS 5) Настроить сервисы
/etc/rc.conf ipv6_enable="YES" ipv6_ifconfig_bge0="2a02:70:0:4::2/64" ipv6_defaultrouter="2a02:70:0:4::1" ipv6_gateway_enable="YES"
Ifconfig > ifconfig bge0 bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM> ether 00:1e:c9:f8:cd:39 inet6 fe80::21e:c9ff:fef8:cd39%bge0 prefixlen 64 scopeid 0x1 inet 93.183.202.34 netmask 0xfffffffc broadcast 93.183.202.35 inet6 2a02:70:0:4::2 prefixlen 64 media: Ethernet autoselect (1000baseTX <full-duplex>) status: active
Neighbor Discovery Protocol > ndp -a Neighbor Linklayer Address Netif Expire S Flags fe80::225:90ff:fe34:cb05%em1 0:25:90:34:cb:5 em1 permanent R astra.hostmaster.ua 0:25:90:34:cb:5 em1 permanent R 2001:7f8:55:7::354 0:25:90:3:39:5c em1 31s R R fe80::225:90ff:fe03:395c%em1 0:25:90:3:39:5c em1 19s R R fe80::225:90ff:fe34:cb04%em0 0:25:90:34:cb:4 em0 permanent R
Утилиты > ifconfig bce0 inet6 2a02:70:0:4::2 /64 > route add -inet6 default 2a02:70:0:4::1 > ping6 ns.dn.ua PING6(56=40+8+8 bytes) 2a02:70:0:4::2 --> 2001:7f8:55::65 16 bytes from 2001:7f8:55::65, icmp_seq=0 hlim=63 time=13.271 ms > traceroute6 ns.dn.ua traceroute6 to ns.dn.ua (2001:7f8:55::65) from 2a02:70:0:4::2, 64 hops max, 12 byte packets 1 2a02:70:0:4::1 0.231 ms 0.209 ms 0.203 ms 2 ns.dn.ua 13.292 ms 13.354 ms 13.373 ms
IPFW net="$firewall_client_net“ net6="$firewall_client_net_ipv6“ ${fwcmd} add pass all from me to ${net} ${fwcmd} add pass all from ${net} to me if [ -n "$net6" ]; then ${fwcmd} add pass all from me6 to ${net6} ${fwcmd} add pass all from ${net6} to me6 fi
ISC BIND options { listen-on-v6 { 2a02:70:0:4::2; }; allow-recursion 2a02:70:0:4/64; }; zone "provider.net" { type master; file "provider.net"; }; zone "8.5.2.0.c.7.6.0.1.0.0.2.ip6.arpa" IN { type master; file "master/8.5.2.0.c.7.6.0.1.0.0.2.ip6.arpa"; };
ISC BIND (Прямая зона) • provider.net ipv6server IN AAAA 2001:67c:258::1
ISC BIND (Обратная зона) 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 IN PTR ns.ua. 2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 IN PTR ns.kiev.ua. 3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 IN PTR ns.com.ua. 4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 IN PTR ns.gov.ua. 5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 IN PTR ns.edu.ua. 6.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 IN PTR ns.edu.ua.
Quagga neighbor 2001:7f8:55:7::354 remote-as 15800 neighbor 2001:7f8:55:7::354 description -= UNICV6 =- no neighbor 2001:7f8:55:7::354 activate address-family ipv6 network 2001:67c:258::/48 neighbor 2001:7f8:55:7::354 activate neighbor 2001:7f8:55:7::354 route-map EUNIC-IN in neighbor 2001:7f8:55:7::354 route-map UATLD-OUT out exit-address-family
Quagga > sh ipv6 bgp sum BGP router identifier 194.44.71.30, local AS number 29067 RIB entries 2, using 192 bytes of memory Peers 3, using 13 KiB of memory Neighbor V AS MsgRcvdMsgSentTblVerInQOutQ Up/Down State/PfxRcd 2001:7f8:55:7::354 4 15800 5572 5573 0 0 0 3d20h50m 1 Total number of neighbors 1