Hola a todos, estoy tratando de configurar un onion proxy con una raspberry 4 que tiene insTalada el sistema operativo raspbian. Mi problema surge al momento en el que tengo que configurar el directorio /etc/network/interfaces. Según varias páginas que he consultado este directorio debería verse algo así:
sudo nano /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
wpa-ssid “your_ssid”
wpa-psk “your_password”
Sin embargo, dentro de mi raspberry este directorio luce así:
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
Alguien me podría decir a qué se debe eso? y cómo puedo hacer para configurar correctamente ese directorio. De antemano muchas gracias por sus respuestas.
problema con directorio /etc/network/interfaces en raspberry 4
- egrueda
- Pi God
- Mensajes: 3426
- Registrado: 10 Feb 2017, 19:31
- Agradecido: 7 veces
- Agradecimiento recibido: 269 veces
¿Tienes IP estática o dinámica?
¿Qué tienes en /etc/dhcpcd.conf ?
¿Qué tienes en /etc/dhcpcd.conf ?
No respondo a privados ;-)
👉 Particiones en una MicroSD
👉 Cómo pedir ayuda en el foro
Invítame a un café
👉 Particiones en una MicroSD
👉 Cómo pedir ayuda en el foro
Invítame a un café
-
- Pi Newbie
- Mensajes: 5
- Registrado: 21 Abr 2020, 18:38
- Agradecido: 0
- Agradecimiento recibido: 0
Esto tengo
# A sample configuration for dhcpcd.
# See dhcpcd.conf(5) for details.
# Allow users of this group to interact with dhcpcd via the control socket.
#controlgroup wheel
# Inform the DHCP server of our hostname for DDNS.
hostname
# Use the hardware address of the interface for the Client ID.
clientid
# or
# Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361.
# Some non-RFC compliant DHCP servers do not reply with this set.
# In this case, comment out duid and enable clientid above.
#duid
# Persist interface configuration when dhcpcd exits.
persistent
# Rapid commit support.
# Safe to enable by default because it requires the equivalent option set
# on the server to actually work.
option rapid_commit
# A list of options to request from the DHCP server.
option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
# Respect the network MTU. This is applied to DHCP routes.
option interface_mtu
# Most distributions have NTP support.
#option ntp_servers
# A ServerID is required by RFC2131.
require dhcp_server_identifier
# Generate SLAAC address using the Hardware Address of the interface
#slaac hwaddr
# OR generate Stable Private IPv6 Addresses based from the DUID
slaac private
Example static IP configuration:
#interface eth0
#static ip_address=*************
#static ip6_address=**********
#static routers=********
#static domain_name_servers=***********************************
# It is possible to fall back to a static IP if DHCP fails:
# define static profile
#profile static_eth0
#static ip_address= ****
#static routers= ******
#static domain_name_servers=*****
# fallback to static profile on eth0
#interface eth0
#fallback static_eth0
# A sample configuration for dhcpcd.
# See dhcpcd.conf(5) for details.
# Allow users of this group to interact with dhcpcd via the control socket.
#controlgroup wheel
# Inform the DHCP server of our hostname for DDNS.
hostname
# Use the hardware address of the interface for the Client ID.
clientid
# or
# Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361.
# Some non-RFC compliant DHCP servers do not reply with this set.
# In this case, comment out duid and enable clientid above.
#duid
# Persist interface configuration when dhcpcd exits.
persistent
# Rapid commit support.
# Safe to enable by default because it requires the equivalent option set
# on the server to actually work.
option rapid_commit
# A list of options to request from the DHCP server.
option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
# Respect the network MTU. This is applied to DHCP routes.
option interface_mtu
# Most distributions have NTP support.
#option ntp_servers
# A ServerID is required by RFC2131.
require dhcp_server_identifier
# Generate SLAAC address using the Hardware Address of the interface
#slaac hwaddr
# OR generate Stable Private IPv6 Addresses based from the DUID
slaac private
Example static IP configuration:
#interface eth0
#static ip_address=*************
#static ip6_address=**********
#static routers=********
#static domain_name_servers=***********************************
# It is possible to fall back to a static IP if DHCP fails:
# define static profile
#profile static_eth0
#static ip_address= ****
#static routers= ******
#static domain_name_servers=*****
# fallback to static profile on eth0
#interface eth0
#fallback static_eth0
- egrueda
- Pi God
- Mensajes: 3426
- Registrado: 10 Feb 2017, 19:31
- Agradecido: 7 veces
- Agradecimiento recibido: 269 veces
Pues ahí lo tienes ;-)
P.D. cuidado con las almohadillas!
P.D. cuidado con las almohadillas!
No respondo a privados ;-)
👉 Particiones en una MicroSD
👉 Cómo pedir ayuda en el foro
Invítame a un café
👉 Particiones en una MicroSD
👉 Cómo pedir ayuda en el foro
Invítame a un café
- egrueda
- Pi God
- Mensajes: 3426
- Registrado: 10 Feb 2017, 19:31
- Agradecido: 7 veces
- Agradecimiento recibido: 269 veces
En Debian/Raspbian Buster, el archivo /etc/network/interfaces indica:
Esto es así porque la configuración de red la lleva el software dhcpd
Y en el /etc/dhcpcd.conf tienes algo como:
Que representa la configuración de IP estática.
El hecho de que la configuración se encuentre en interfaces o en dhcpcd.conf depende únicamente de que se utilice un programa u otro para configurar la red. No es ningún problema ni tiene nada de extraño, simplemente ha cambaido la opción por defecto para gestionar los parámetros de red.
Código: Seleccionar todo
For static IP, consult /etc/dhcpcd.conf
Y en el /etc/dhcpcd.conf tienes algo como:
Código: Seleccionar todo
# Example static IP configuration:
#interface eth0
#static ip_address=192.168.1.10/24
#static routers=192.168.1.1
#static domain_name_servers=1.1.1.1 8.8.8.8
El hecho de que la configuración se encuentre en interfaces o en dhcpcd.conf depende únicamente de que se utilice un programa u otro para configurar la red. No es ningún problema ni tiene nada de extraño, simplemente ha cambaido la opción por defecto para gestionar los parámetros de red.
No respondo a privados ;-)
👉 Particiones en una MicroSD
👉 Cómo pedir ayuda en el foro
Invítame a un café
👉 Particiones en una MicroSD
👉 Cómo pedir ayuda en el foro
Invítame a un café
-
- Pi Newbie
- Mensajes: 5
- Registrado: 21 Abr 2020, 18:38
- Agradecido: 0
- Agradecimiento recibido: 0
Entonces eso significa que la mi IP es estática? El problema es que quiero hacer una configuracion de una onion proxy, sin embargo en los pasos que hay que realizar se debe configurar el directorio /etc/network/interfaces . MI pregunta es la siguiente: para hacer la configuracion que quiero realizar, debo modificar el directorio /etc/dhcpcd.conf?