<div dir="ltr">Hi Thomas,<div><br></div><div>I don't know all particular aspects of the FAI design and I wouldn't like to have a say in how things should work. But in a particular case when interface with a proper IP setting (with default gw) is happen to the second interface and there is a dummy IP setting on the first active interface, variables like IPADDR, NETMASK, BROADCAST are filled and erroneously used with dummy IP info of the first active interface. I know it is not possible to cover every custom need of the users, but probably using IP settings of the default interface if available would be better. </div><div><br></div><div><br></div><div>Original:</div><div><br></div><div> if [ -z "$NIC1" ]; then<br>        NIC1=$(ip route | awk '/ dev / {print $3}'|head -1)<br>fi<br><br>read IPADDR NETMASK BROADCAST dummy<<<$(ifdata -p $dev)<br>CIDR=$(ip -o -f inet addr show| awk '{print $4}'| grep $IPADDR)<br>GATEWAYS=$(ip route | awk '/^default/ {print $3}')<br></div><div><br></div><div>Please, consider this instead:</div><div><br></div><div> if [ -n "$NIC1" ]; then<br>        read IPADDR NETMASK BROADCAST dummy<<<$(ifdata -p $NIC1)<br>else<br>        NIC1=$(ip route | awk '/ dev / {print $3}'|head -1)<br>        read IPADDR NETMASK BROADCAST dummy<<<$(ifdata -p $dev)</div><div>fi</div><div>CIDR=$(ip -o -f inet addr show| awk '{print $4}'| grep $IPADDR)<br>GATEWAYS=$(ip route | awk '/^default/ {print $3}')<br></div><div><br></div><div>Kind regards, </div><div>Szilard</div></div>