开启网卡转发
1 /etc/sysctl.conf
net.ipv4.ip_forward = 1
2 echo 1 > /proc/sys/net/ipv4/conf/all/bootp_relay
3 echo 1 > /proc/sys/net/ipv4/ip_forward
安装DHCP包 否则没有dhcrelay命令
/etc/sysconfig/dhcrelay
INTERFACES="eth0"
#参与DHCP的所有网卡
DHCPSERVERS="IP"
#DHCPsvr的IP
重启服务
/etc/init.d/dhcrelay restart
阅读(613) | 评论(0) | 转发(0) |