# HG changeset patch # User igor # Date 1203247921 -7200 # Node ID 2ecda36e8d0d764af3b29cd10386ca57b0f8d824 # Parent fc201b0bc6f9ce81ec06afa81a06f987144a95ae ip netmask diff -r fc201b0bc6f9 -r 2ecda36e8d0d od.py --- a/od.py Sun Feb 17 12:23:52 2008 +0200 +++ b/od.py Sun Feb 17 13:32:01 2008 +0200 @@ -77,6 +77,7 @@ trunk='eth0' management_ip=ip_address[i_am] management_gw='10.0.5.253' +management_netmask='255.255.255.0' vbridges_table={ 'dns' : ['xenbr3'], diff -r fc201b0bc6f9 -r 2ecda36e8d0d xen-drbd-install.py --- a/xen-drbd-install.py Sun Feb 17 12:23:52 2008 +0200 +++ b/xen-drbd-install.py Sun Feb 17 13:32:01 2008 +0200 @@ -328,7 +328,7 @@ print "/etc/xen/scripts/network-bridge start vifnum=%s bridge=%s netdev=%s.%s" % (bridges.index(bridge)+2,bridge,trunk,vlan) print "ip link set %s.%s up" % (trunk,vlan) - print "ifconfig %s.%s %s" % (trunk,management_vlan,management_ip) + print "ifconfig %s.%s %s netmask %s" % (trunk,management_vlan,management_ip,management_netmask) if management_gw: print "route add default gw %s" % (management_gw)