1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
#!/bin/sh
# file: scripts/hardware.sh
# this file defines the names and addresses of ethernet interfaces
# on the host and the powerline device connected to each; every host
# should have its own copy of this file so that generic scripts can
# written and moved from one host to another without change;
#
# symbol ETH is referenced in files such as start.sh, flash.sh and
# upgrade.sh that operation on one device only;
#
# symbols ETH1, ETH2, NIC1, NIC, PLD1 and PLD22 are referenced in
# files such as pts.sh that operate on two devices; by convention:
#
# interface ETH1 has address NIC1 and is connected to device PLD1;
# interface ETH2 had address NIC2 and is connected to device PLD2;
#
# to include this file in a new script:
#
# . ${SCRIPTS}/hardware.sh
#
# ====================================================================
# symbols;
# --------------------------------------------------------------------
ETH=eth1
# ====================================================================
# host interface names;
# --------------------------------------------------------------------
ETH1=eth2
ETH2=eth4
# ====================================================================
# host interface addresses;
# --------------------------------------------------------------------
NIC1=00:50:04:a5:d9:5a
NIC2=00:01:02:d0:8f:89
# ====================================================================
# powerline device addresses;
# --------------------------------------------------------------------
PLD1=00:B0:52:00:FD:0D
PLD2=00:B0:52:00:FD:0E
# ====================================================================
# miscellaneous device addresses;
# --------------------------------------------------------------------
master=00:b0:52:da:da:01
slave1=00:b0:52:da:da:02
slave2=00:b0:52:da:da:03
slave3=00:b0:52:da:da:04
slave4=00:b0:52:dd:dd:05
|