xen-drbd
changeset 22:2ecda36e8d0d
ip netmask
author | igor |
---|---|
date | Sun Feb 17 13:32:01 2008 +0200 (2008-02-17) |
parents | fc201b0bc6f9 |
children | 6e01df357a6a |
files | od.py xen-drbd-install.py |
line diff
1.1 --- a/od.py Sun Feb 17 12:23:52 2008 +0200 1.2 +++ b/od.py Sun Feb 17 13:32:01 2008 +0200 1.3 @@ -77,6 +77,7 @@ 1.4 trunk='eth0' 1.5 management_ip=ip_address[i_am] 1.6 management_gw='10.0.5.253' 1.7 +management_netmask='255.255.255.0' 1.8 1.9 vbridges_table={ 1.10 'dns' : ['xenbr3'],
2.1 --- a/xen-drbd-install.py Sun Feb 17 12:23:52 2008 +0200 2.2 +++ b/xen-drbd-install.py Sun Feb 17 13:32:01 2008 +0200 2.3 @@ -328,7 +328,7 @@ 2.4 print "/etc/xen/scripts/network-bridge start vifnum=%s bridge=%s netdev=%s.%s" % (bridges.index(bridge)+2,bridge,trunk,vlan) 2.5 print "ip link set %s.%s up" % (trunk,vlan) 2.6 2.7 - print "ifconfig %s.%s %s" % (trunk,management_vlan,management_ip) 2.8 + print "ifconfig %s.%s %s netmask %s" % (trunk,management_vlan,management_ip,management_netmask) 2.9 if management_gw: 2.10 print "route add default gw %s" % (management_gw) 2.11