Redhat5.0_ipv6_DHCP server应用

如下

    {

客户机 :
1. 安装dhcpv6客户端包
rpm -ivh dhcpv6-client-1.2.0-2.fc11.x86_64.rpm (默认已经安装)
2. 启用IPV6支持
# vi /etc/sysconfig/network
NETWORKING_IPV6=yes
3. 服务客户机接口
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
IPV6INIT=yes
DHCPV6C=yes
4. 停止SELINUX
# vim /etc/selinux/config
SELINUX=disabled (改这个防火墙需要重启)
5. 停止iptables
# service ip6tables stop
# chkconfig --level 35 ip6tables off
6. 检测网卡地址
# ifconfig eth0 | grep inet6
inet6 addr: fe80::223:aeff:fe9d:8294/64 Scope:Link
7.重启网络
# service network restart
8. The client get the IPv6 address from DHCPv6 server.
# ifconfig eth0 | grep inet6
inet6 addr: 3ffe:501:ffff:1::2/64 Scope:Global
inet6 addr: fe80::223:aeff:fe9d:8294/64 Scope:Link
 
 
 
单dhcpv6服务配置
服务器:
1.安装dhcpv6包
# rpm -ivh dhcpv6-1.2.0-2.fc11.x86_64.rpm
2. 启用IPV6支持
# vi /etc/sysconfig/network
NETWORKING_IPV6=yes
3. 配置网卡IP为3ffe:501:ffff:1::1
# vi /etc/sysconfig/network-script/ifcfg-eth0
IPV6INIT=yes
IPV6ADDR=3ffe:501:ffff:1::1
重启网络
# service network restart
# ifconfig eth0 | grep inet6
inet6 addr: 3ffe:501:ffff:1::1/64 Scope:Global
inet6 addr: fe80::223:aeff:fe9d:846f/64 Scope:Link
4. 停止SELINUX
# vim /etc/selinux/config
SELINUX=disabled (改这个防火墙需要重启)
5. 肯定DHCPV6的接口为eth0
# vi /etc/sysconfig/dhcp6s
DHCP6SIF=eth0
DHCP6ARGS=
6. 配置dhcpv6服务文件
# vi /etc/dhcp6s.conf
interface eth0 {
renew-time 1000;
rebind-time 2400;
prefer-life-time 2000;
valid-life-time 3000;
link AAA {
range 3ffe:501:ffff:1::2 to 3ffe:501:ffff:1::10/64;
};
};
7. 停止iptables
# service ip6tables stop
# chkconfig --level 35 ip6tables off
8. 启动DHCPV6服务
# service dhcp6s start|restart
 
};
 
Linux DHCP Server端的iptables与ip6tables所有规则均已清除;
iptables -X
iptables -F
ip6tables -X
ip6tables -F
以上步骤完成后,使用WIN7做为DHCP client,在获取DHCP地址后,两者之间无法通信,帮忙看看是啥原因,谢谢!
为了阅读方便,建议使用写字板打开。
 

你可能感兴趣的:(安装,server,接口,service,客户机)