🏡Inicio | 🗃️ Secciones | ❓ Soporte | Producto:

IoT Gateway NG


https://youtu.be/SR_53hURVaQ

Escenario de ejemplo:

Suponemos una empresa que tiene conectadas las máquinas en la misma red que tienen acceso a Internet. En ese caso colocaremos nuestro IoT GW como un dispositivo más de la red del cliente. Una vez nuestro dispositivo tenga la IP conectada tendrá visibilidad con el/los PLC que estarán en la misma red.

Configuración IP del IoT GW:

WAN: eth0
	IP: unmanaged (sin configuración IP)
MANTENIMENT: ztc25el5hr
	IP: unmanaged (sin configuración IP)
BRIDGE(BR0): br-br0 (MANTENIMENT + WAN)
	IP: 10.46.1.27

Tabla de Contenidos

/etc/netplan/50-cloud-init.yaml

# This file is generated from information provided by
# the datasource.  Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
  version: 2
  ethernets:
    eth0:
      addresses: []
      dhcp4: false
      optional: true
  bridges:
    br0:
      addresses: [ 10.46.1.27/24 ]
      dhcp4: false
      interfaces:
        - eth0
      gateway4: 10.46.1.1
      nameservers:
        addresses: [10.2.8.27]

https://gist.githubusercontent.com/i40sys/fe264aeee0e35d566b5f41d756481a43/raw/4d9f6bd160631cbcf5f7ac6dc4c74d52d4b006cd/50-cloud-init.yaml

/opt/network/bridge.sh