Specify netmask (/24) when configuring interface
authorAmitay Isaacs <amitay@gmail.com>
Mon, 30 Jan 2012 05:29:07 +0000 (16:29 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Mon, 30 Jan 2012 05:29:07 +0000 (16:29 +1100)
templates/basic-postinstall.sh

index b380d420f9557f7bd5f80a2561ac861bc099727b..a8a2217af05b80b00f8b79566656c08b8d7c7f0d 100644 (file)
@@ -7,7 +7,7 @@
 echo "Using web proxy: \$http_proxy"
 
 # force up the network, as kickstart may not have started it
-/sbin/ifconfig eth0 @@IPBASE@@.@@IPNET0@@.@@FIRSTIP@@ up
+/sbin/ifconfig eth0 @@IPBASE@@.@@IPNET0@@.@@FIRSTIP@@ netmask 255.255.255.0 up
 /sbin/route add default gw @@GATEWAY@@
 /sbin/ifconfig -a
 /sbin/route -n