rodrigocontrib
(usa Debian)
Enviado em 29/07/2014 - 21:57h
buckminster escreveu:
Posta aqui o conteúdo do arquivo /etc/network/interfaces do servidor DHCP.
Vamos lá,
este aqui é meu dhcpd.conf :
option domain-name "casa.local";
option domain-name-servers 8.8.8.8,8.8.8.4;
##Configuração da FARM REDE MATRIZ
#192.168.22.208/28 - broadcast:192.168.22.223/28 GW 192.168.22.209 (ip deste firewall)
subnet 192.168.22.208 netmask 255.255.255.240 {
range 192.168.22.210 192.168.22.222;
option subnet-mask 255.255.255.240;
option broadcast-address 192.168.22.223;
option routers 192.168.22.209;
}
PS: O meu projeto consiste em duas redes locais
Este aqui é meu :
/etc/network/interfaces
#Interface Da FARM MATRIZ
#Rede 192.168.22.208/28
auto eth1:0
allow-hotplug eth1:0
iface eth1:0 inet static
address 192.168.22.209
netmask 255.255.255.240
broadcast 192.168.22.223
gateway 192.168.22.209
mihas rotas :
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.22.12 0.0.0.0 255.255.255.252 U 0 0 0 eth2
192.168.22.4 192.168.22.5 255.255.255.252 UG 0 0 0 eth1
192.168.22.4 0.0.0.0 255.255.255.252 U 0 0 0 eth1
192.168.22.0 192.168.22.1 255.255.255.252 UG 0 0 0 eth0
192.168.22.0 0.0.0.0 255.255.255.252 U 0 0 0 eth0
192.168.22.208 192.168.22.209 255.255.255.240 UG 0 0 0 eth1
192.168.22.208 0.0.0.0 255.255.255.240 U 0 0 0 eth1
0.0.0.0 192.168.22.13 0.0.0.0 UG 0 0 0 eth2
root@FW-01:~#
interfaces :
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
#Eth2 Conexao com o GW da Rede
auto eth2
allow-hotplug eth2
iface eth2 inet static
address 192.168.22.14
netmask 255.255.255.252
otproto name
peerdns yes
device eth2
userctl no
onboot yes
ipv6init no
type ethernet
arquivo completo : /etc/network/interfaces
#Rotas DEFAULT gateway
post-up route add default gw 192.168.22.13
#eth1 Conexao com FW02 LAN TO LAN
auto eth0
iface eth0 inet static
address 192.168.22.1
netmask 255.255.255.252
#Eth1 Conexao com Host-A & Reles Locais
auto eth1
iface eth1 inet static
address 192.168.22.5
netmask 255.255.255.252
bootproto none
peerdns yes
device eth1
userctl no
onboot yes
ipv6init no
type ethernet
#Rotas para as redes abaixo do FW Rota para o host-A
post-up route add -net 192.168.22.4 netmask 255.255.255.252 gw 192.168.22.5
pre-down route del -net 192.168.22.4 netmask 255.255.255.252 gw 192.168.22.5
post-up route add -net 192.168.22.0 netmask 255.255.255.252 gw 192.168.22.1
pre-down route del -net 192.168.22.0 netmask 255.255.255.252 gw 192.168.22.1
#Interface Da FARM MATRIZ -- INTERFACE PARA SERVIDOR DHCP
#Rede 192.168.22.208/28 #broadcast 192.168.22.223
auto eth1:0
iface eth1:0 inet static
address 192.168.22.209
netmask 255.255.255.240
bootproto none
peerdns yes
device eth1:0
userctl no
onboot yes
ipv6init no
type ethernet
#ROTAS MATRIZ
post-up route add -net 192.168.22.208 netmask 255.255.255.240 gw 192.168.22.209
pre-down route del -net 192.168.22.208 netmask 255.255.255.240 gw 192.168.22.209