经过4个小时的尝试配置,我开始生气了。
我有下一个设置:
eth0:是车载局域网适配器,这个适配器直接连接到交换机。eth1:是直接连接到主路由器和互联网的局域网适配器(pci卡)。
我试图将多台机器连接到这台运行dhcp服务器(isc- dhcp-server )的计算机上。然后将其他机器配置为使用lan启动。
这是我当前的接口设置:
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo eth1 eth0
iface lol inet loopback
iface eth1 inet static
address 192.168.0.200
netmask 255.255.255.0
gateway 192.168.0.1
network 192.168.0.0
dns-nameservers 192.168.0.1 8.8.8.8
iface eth0 inet static
address 10.0.0.100
netmask 255.255.255.0
gateway 10.0.0.1
network 10.0.0.0注意:使用这种配置,什么都不起作用。如果我删除eth0的配置,我可以连接到互联网,我的路由器没有问题。否则什么都不管用。
这是我对dhcp的配置:
ddns-update-style none;
option domain-name-servers 8.8.4.4, 8.8.8.8;
default-lease-time 600;
max-lease-time 7200;
# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
#authoritative;
log-facility local7;
subnet 10.0.0.0 netmask 255.255.255.0 {
interface eth0;
range 10.0.0.100 10.0.0.200;
option routers 10.0.0.2;
option subnet-mask 255.255.255.0;
option broadcast-address 10.0.0.254;
option domain-name-servers 10.0.0.1, 10.0.0.2;
option ntp-servers 10.0.0.1;
option netbios-name-servers 10.0.0.1;
option netbios-node-type: 8;
}提前感谢!
发布于 2013-10-10 07:02:08
您可以通过向终端添加以下命令来完成此任务
route del default
route add default gw 192.168.0.1https://askubuntu.com/questions/240127
复制相似问题