| ... | ... |
@@ -17,7 +17,8 @@ GUEST_NAME=${GUEST_NAME:-ALLINONE}
|
| 17 | 17 |
HOST_IP=${HOST_IP:-`ifconfig xenbr0 | grep "inet addr" | cut -d ":" -f2 | sed "s/ .*//"`}
|
| 18 | 18 |
|
| 19 | 19 |
# Our nova host's network info |
| 20 |
-MGT_IP=${MGT_IP:-172.16.100.1}
|
|
| 20 |
+VM_IP=${VM_IP:-10.255.255.255} # A host-only ip that let's the interface come up, otherwise unused
|
|
| 21 |
+MGT_IP=${MGT_IP:-172.16.100.55}
|
|
| 21 | 22 |
PUB_IP=${PUB_IP:-192.168.1.55}
|
| 22 | 23 |
|
| 23 | 24 |
# Public network |
| ... | ... |
@@ -263,6 +264,7 @@ rm -f $XVA |
| 263 | 263 |
set_hostname $GUEST_NAME |
| 264 | 264 |
INTERFACES=$STAGING_DIR/etc/network/interfaces |
| 265 | 265 |
cp $TEMPLATES_DIR/interfaces.in $INTERFACES |
| 266 |
+sed -e "s,@ETH1_IP@,$VM_IP,g" -i $INTERFACES |
|
| 266 | 267 |
sed -e "s,@ETH1_NETMASK@,$VM_NETMASK,g" -i $INTERFACES |
| 267 | 268 |
sed -e "s,@ETH2_IP@,$MGT_IP,g" -i $INTERFACES |
| 268 | 269 |
sed -e "s,@ETH2_NETMASK@,$MGT_NETMASK,g" -i $INTERFACES |
| ... | ... |
@@ -6,10 +6,8 @@ iface eth0 inet dhcp |
| 6 | 6 |
|
| 7 | 7 |
auto eth1 |
| 8 | 8 |
iface eth1 inet static |
| 9 |
- # A host-only ip that let's the interface come up, otherwise unused |
|
| 10 |
- address 10.255.255.255 |
|
| 9 |
+ address @ETH1_IP@ |
|
| 11 | 10 |
netmask @ETH1_NETMASK@ |
| 12 |
-up ifconfig eth1 up |
|
| 13 | 11 |
post-up ethtool -K eth1 tx off |
| 14 | 12 |
|
| 15 | 13 |
auto eth2 |