dom0/core: fix qubes-dom0-network-via-netvm (#660)

IP 10.137.0.1 was already used by netvm, so change dom0 IP to 10.137.0.2.
This commit is contained in:
Marek Marczykowski 2012-10-19 02:05:46 +02:00
parent 3e90174910
commit 3a875edf58
2 changed files with 2 additions and 2 deletions

View File

@ -2140,7 +2140,7 @@ class QubesDom0NetVm(QubesNetVm):
@property
def ip(self):
return "10.137.0.1"
return "10.137.0.2"
def start(self, **kwargs):
raise QubesException ("Cannot start Dom0 fake domain!")

View File

@ -55,7 +55,7 @@ def bringup_eth0(netvm):
resolv_conf.write('nameserver ' + netvm.gateway + '\n')
resolv_conf.write('nameserver ' + netvm.secondary_dns + '\n')
resolv_conf.close()
return os.system('ifconfig eth0 10.137.0.1 netmask 255.255.255.255 && route add default dev eth0') == 0
return os.system('ifconfig eth0 10.137.0.2 netmask 255.255.255.255 && route add default dev eth0') == 0
def netup():
netvm = get_netvm()