|
|

楼主 |
发表于 2005-11-5 12:30:36
|
显示全部楼层
我贴几个配置文件吧
wxd@Gentoo ~ $ cat /etc/dhcp/dhcpd.conf
authoritative;
ddns-update-style interim;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.100 192.168.0.250;
default-lease-time 259200;
max-lease-time 518400;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
option domain-name-servers 192.168.0.1;
}
subnet 218.193.29.0 netmask 255.255.255.0 {
}
wxd@Gentoo ~ $ cat /etc/conf.d/dhc
dhcp dhcrelay
wxd@Gentoo ~ $ cat /etc/conf.d/dhcp
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcp/files/dhcp.conf,v 1.7 2004/12/20 18:54:23 max Exp $
# Configure which interface or interfaces to for dhcp to listen on
# list all interfaces space separated.
IFACE="eth1"
# Insert any other options needed
DHCPD_OPTS="-q"
# If you wish to run dhcp in a chroot, run:
# ebuild /var/db/pkg/net-misc/<dhcp version>/<dhcp-version>.ebuild config
# and un-comment the following line.
# You can specify a different chroot directory but MAKE SURE it's empty.
#CHROOT="/chroot/dhcp"
# If you need name resolution under a chroot, uncomment the following:
#export LD_PRELOAD="/usr/lib/libresolv.so /usr/lib/libnss_dns.so"
eth0怎么共享上网呢?
一直没搞明白. :help |
|