Eu sou novo em redes, por favor, tenha paciência comigo. Eu tenho duas interfaces de rede. Uma interface de rede está conectada ao mundo externo. Outra interface de rede 'p3p1' é o que eu quero usar para programar meu gadget, ou seja, usar NFS. Quero que a outra interface 'p3p1' seja configurada com o servidor dhcp em execução no meu pc. Assim, quando meu dispositivo se conecta à interface p3p1, ele obtém o IP atribuído pelo servidor DHCP em execução no meu PC. Como posso fazer isso? É possível?
Aqui está minha tentativa de configurar a interface p3p1.
I have the following dhpcd.conf file.
#
# DHCP Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd.conf.sample
# see dhcpd.conf(5) man page
default-lease-time 600;
max-lease-time 7200;
subnet 10.0.0.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option routers 10.0.0.1;
range 10.0.0.5 10.0.0.15;
}
However, I get the following errors while running the dhcpd.
]# dhcpd
Internet Systems Consortium DHCP Server 4.2.4-P2
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
Wrote 0 leases to leases file.
No subnet declaration for em1 (136.170.195.17).
** Ignoring requests on em1. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface em1 is attached. **
Not configured to listen on any interfaces!
This version of ISC DHCP is based on the release available
on ftp.isc.org. Features have been added and other changes
have been made to the base software release in order to make
it work better with this distribution.
Please report for this software via the Red Hat Bugzilla site:
http://bugzilla.redhat.com
exiting.