mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
red: change mac address of nas0 device.
Traverse Technology has reported that ppp over atm-bridge is not working because there is a bogus mac address at the virtual nas0 device.
This commit is contained in:
@@ -175,6 +175,14 @@ case "${1}" in
|
|||||||
boot_mesg "Createing ATM-Bridge as $PPP_NIC ..."
|
boot_mesg "Createing ATM-Bridge as $PPP_NIC ..."
|
||||||
br2684ctl -c0 -e${ENCAP} -a0.${VPI}.${VCI} >/dev/null 2>&1 &
|
br2684ctl -c0 -e${ENCAP} -a0.${VPI}.${VCI} >/dev/null 2>&1 &
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
|
# use user-defined or green mac address for nas0
|
||||||
|
if [ -n "$MAC" ]; then
|
||||||
|
ip link set dev nas0 address ${MAC}
|
||||||
|
else
|
||||||
|
ip link set dev nas0 address $(cat /sys/class/net/green0/address)
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$TYPE" == "pppoeatm" ]; then
|
if [ "$TYPE" == "pppoeatm" ]; then
|
||||||
TYPE="pppoe"
|
TYPE="pppoe"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user