Skip to content

Instantly share code, notes, and snippets.

@LuisPalacios
Last active March 8, 2023 17:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LuisPalacios/7f36aa70890dbf9a9cb72fda3250ef7a to your computer and use it in GitHub Desktop.
Save LuisPalacios/7f36aa70890dbf9a9cb72fda3250ef7a to your computer and use it in GitHub Desktop.
Sur: /etc/dhcpcd.conf
##
## Fichero /etc/dhcpcd.conf para Raspberry Pi OS 64 bits
## Servidor ‘sur’
##
## Este fichero está relacionado con este apunte:
## https://www.luispa.com/linux/2014/10/19/bridge-ethernet.html
##
## Configuración IP:
## `eth0` Recibe IP, DNS y Router vía DHCP
## `eth1` Puerto principal para TRUNK Vlans, sin IP:
## eth1.107 : Conectar clientes de sur que quiero que salgan a Internet a través de la conexión de norte.
## eth1.206 : Conectar Deco en sur para que consuma el tráfico IPTV de norte
## eth1.10 : Conectar clientes de sur que quiero que salgan a Internet a través del operador de sur
##
## Parámetros estándar
hostname
clientid
persistent
option rapid_commit
option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
option interface_mtu
require dhcp_server_identifier
slaac private
## Interfaz eth0, recibe IP, router y DNS por DHCP
interface eth0
## Interfaz eth1 va a un puerto de TRUNK y no quiero IP
interface eth1
nodhcp
noipv4
# Tres interfaces para las vlans
# ver /etc/network/interfaces.d/vlans
interface eth1.206
nodhcp
noipv4
interface eth1.107
static ip_address=192.168.107.1/24
interface eth1.10
static ip_address=192.168.10.1/24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment