You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2012/12/15 04:37:13 UTC

[6/15] git commit: Change interfaces as per devcloud2

Change interfaces as per devcloud2

Signed-off-by: Rohit Yadav <bh...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/7902a698
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/7902a698
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/7902a698

Branch: refs/heads/master
Commit: 7902a6987247d708e92f98f37d0d17658d774499
Parents: f55c230
Author: James Martin <jm...@basho.com>
Authored: Thu Dec 6 16:56:35 2012 -0500
Committer: Rohit Yadav <bh...@apache.org>
Committed: Fri Dec 14 19:36:38 2012 -0800

----------------------------------------------------------------------
 .../modules/devcloudinitial/files/interfaces       |   28 ++++++++++----
 1 files changed, 20 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/7902a698/tools/devcloud/deps/boxes/xenbox-build/puppet/modules/devcloudinitial/files/interfaces
----------------------------------------------------------------------
diff --git a/tools/devcloud/deps/boxes/xenbox-build/puppet/modules/devcloudinitial/files/interfaces b/tools/devcloud/deps/boxes/xenbox-build/puppet/modules/devcloudinitial/files/interfaces
index 20eaa3b..72cb8f0 100644
--- a/tools/devcloud/deps/boxes/xenbox-build/puppet/modules/devcloudinitial/files/interfaces
+++ b/tools/devcloud/deps/boxes/xenbox-build/puppet/modules/devcloudinitial/files/interfaces
@@ -14,19 +14,31 @@
 # KIND, either express or implied.  See the License for the
 # specific language governing permissions and limitations
 # under the License.
-
-# The loopback network interface
 auto lo
 iface lo inet loopback
 
-# The primary network interface
+auto eth0
+iface eth0 inet manual
+
+allow-hotplug eth1
+iface eth1 inet manual
+
 auto xenbr0
-iface xenbr0 inet dhcp
-    gateway 10.0.2.2
-    bridge_ports eth0
+iface xenbr0 inet static
+        bridge_ports eth0
+        address 192.168.56.10
+        netmask 255.255.255.0
+        network 192.168.56.0
+        broadcast 192.168.56.255
+        gateway 192.168.56.1
+        dns_nameservers 8.8.8.8 8.8.4.4
+        post-up route del default gw 192.168.56.1; route add default gw 192.168.56.1 metric 100;
 
+auto xenbr1
+iface xenbr1 inet dhcp
+        bridge_ports eth1
+        dns_nameservers 8.8.8.8 8.8.4.4
+        post-up route add default gw 10.0.2.2
 
-auto eth0
-iface eth0 inet dhcp
 pre-up iptables-save < /etc/iptables.save
 pre-up /etc/init.d/ebtables load