Testing xbnet with external gateway

This commit is contained in:
Emran Billah 2024-08-28 11:51:32 -03:00
parent cfa2485536
commit edc4f7c30a
2 changed files with 18 additions and 18 deletions

16
.env
View File

@ -1,14 +1,14 @@
# Base params # Base params
BASE_SUBNET=6.6.6 BASE_SUBNET=7.7.7
XBEE_INDEX=2 XBEE_INDEX=1
# Default params # Default params
DEFAULT_GATEWAY=6.6.6.1 DEFAULT_GATEWAY=7.7.7.1
DEFAULT_IPVLAN_IP=6.6.6.20 # Required only when running ipvlan net (look in docker compose) DEFAULT_IPVLAN_IP=7.7.7.20 # Required only when running ipvlan net (look in docker compose)
DEFAULT_MACVLAN_IP=6.6.6.30 # Required only when running macvlan net (look in docker compose) DEFAULT_MACVLAN_IP=7.7.7.30 # Required only when running macvlan net (look in docker compose)
# Configuration for xbnet # Configuration for xbnet
XBEE_PORT=/dev/ttyUSB1 XBEE_PORT=/dev/ttyUSB0
XBEE_BAUDRATE=230400 XBEE_BAUDRATE=230400
XBEE_NET_SRC_IP=6.6.6.202 # Set based on interface type XBEE_NET_SRC_IP=7.7.7.201 # Set based on interface type
XBEE_NET_IFACE_NAME=xbnet_router_2 # Set based on interface type XBEE_NET_IFACE_NAME=xbnet_router_1 # Set based on interface type

View File

@ -68,14 +68,14 @@ services:
container_name: xbnet_node container_name: xbnet_node
privileged: true privileged: true
env_file: .env env_file: .env
# networks: networks:
# xbee_net: xbee_net:
# ipv4_address: ${XBEE_NET_SRC_IP} # Ensure this IP belongs to the xbee_net subnet ipv4_address: ${XBEE_NET_SRC_IP} # Ensure this IP belongs to the xbee_net subnet
# networks: networks:
# xbee_net: xbee_net:
# driver: bridge driver: bridge
# ipam: ipam:
# config: config:
# - subnet: ${BASE_SUBNET}.0/24 # Match the network's subnet - subnet: ${BASE_SUBNET}.0/24 # Match the network's subnet
# gateway: ${DEFAULT_GATEWAY} # Gateway for central router gateway: ${DEFAULT_GATEWAY} # Gateway for central router