1. On CentOS 6.4 or RHEL 6.4. install dhcp and radvd
>yum install dhcp radvd
2. Edit NIC config to add IPv6 address. /etc/sysconfig/network-scripts/ifcfg-eth0
IPV6INIT=yes
IPV6ADDR=3ffe:501:ffff:1::1/64
3. edit /etc/dhcp/dhcpd6.conf to assign address pool
subnet6 3ffe:501:ffff:1::/64 {
range6 3ffe:501:ffff:1::2 3ffe:501:ffff:1::1000
}
4. edit /etc/radvd.conf
interface eth0
{
AdvSendAdvert on;
MinRtrAdvInterval 30;
MaxRtrAdvInterval 100;
AdvHomeAgentFlag off;
AdvManagedFlag off; #M bit = 0
AdvOtherConfigFlag on; #O bit = 1
prefix fc00:1234:5678:9abc::/64
{
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr off;
};
};
5. add rule in /etc/sysconfig/ip6tables (before -j REJECT line)
-A INPUT -p udp -m udp -m multiport --ports 546 -j ACCEPT
-A INPUT -p udp -m udp -m multiport --ports 547 -j ACCEPT
6. set dhcpd6 radvd start when system up
>chkconfig radvd on
>chkconfig dhcpd6 on
Reference:
http://www.lijyyh.com/2012/05/dhcpv6ip-ciscolinux-isc-dhcpwindows.html
https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/s1-dhcp_for_ipv6_dhcpv6.html
個人在學習Linux過程當中的個人筆記,提供個人及有需要的人查閱,若有錯誤歡迎提供指正,謝謝。 This Blog recorded notes about my learning Linux and provides myself and others reference. If there are any incorrect information, welcome to leave a message to correct me, Thanks.
2013年11月28日 星期四
2011年11月30日 星期三
vsftpd ipv6 setup
讓vsftpd service 可用ipv6 address連線 (環境: CentOS 5.X)
1. 編輯 /etc/vsftpd/vsftpd.conf
listen=NO #關掉ipv4-only sockets
listen_ipv6=YES #打開ipv4 ipv6相容的模式
2. restart vsftpd
# service vsftpd restart
1. 編輯 /etc/vsftpd/vsftpd.conf
listen=NO #關掉ipv4-only sockets
listen_ipv6=YES #打開ipv4 ipv6相容的模式
2. restart vsftpd
# service vsftpd restart
訂閱:
文章 (Atom)