- 论坛徽章:
- 0
|
大家好,本人公司装的本地广电城域网,也就是通过有线电视的CABLE猫上网。DHCP自动分配IP,静态的。本机IP为10.3.17.114。默认的网关为10.3.19.254。DNS服务器地址为10.3.0.3。本公司还有4台机器想上网。
本人装的FB4.8,双网卡有internet的网络界面为dc0,内网网络界面是ed0,我是这样配置的。
/etc/rc.conf:
hostname="balabalaku.8800.org"
defaultrouter="10.3.19.254"
ifconfig_dc0="inet 10.3.17.114 netmask 255.255.252.0"
ifconfig_ed0="inet 192.168.0.1 netmask 255.255.255.0"
inetd_enable="YES"
nfs_reserved_port_only="NO"
linux_enable="YES"
kern_securelevel_enable="NO"
sendmail_enable="NO"
sshd_enable="YES"
usbd_enable="YES"
gateway_enable="YES"
natd_enable="YES"
natd_interface="dc0"
然后配置了一下DNS缓冲,如下操作的:
#cd /etc/namedb
#sh make-localhost
#named
然后配置欲上网的4台客户机,IP设成192.168.0.2………以此类推,掩码为255.255.255.0,网关为192.168.0.1,DNS设成192.168.0.1(没做DNS缓冲的话只能设成当地ISP的DNS服务器地址)。重起后,发现客户机不能上网。
不知道是设置有问题还是有东西没设置到?请有过成功经验的贴友指点!谢谢! |
|