Skip to content

Commit

Permalink
bring link up, first set fixed address, then dhcp
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lange committed Jan 30, 2014
1 parent 9cc4a89 commit ab7605e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/simple/files/etc/rc.local/FAISERVER
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ if [ ! -d "$FAI_CONFIGDIR/class" ]; then
fi

# setup network
ip addr add 192.168.33.250/24 brd + dev eth0 # (fixed address of faiserver)
ip link set eth0 up
dhclient eth0 # connection to the outside world (hopefully)
ip addr add 192.168.33.250/24 brd + dev eth0 # (fixed address of faiserver)
[ -x /etc/init.d/nscd ] && /etc/init.d/nscd restart
/etc/init.d/apache2 restart

Expand Down

0 comments on commit ab7605e

Please sign in to comment.