OpenSolaris, OpenIndiana, Nexenta > Виртуализация
Смена IP и маршрута по умолчанию у зоны
(1/1)
keremet:
Было
keremet@opensolaris:~$ zonecfg -z linuxzone info
zonename: linuxzone
zonepath: /export/linuxzone
brand: lx
autoboot: false
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
hostid:
net:
address: 192.168.1.116/24
physical: rge0
defrouter not specified
attr:
name: audio
type: boolean
value: true
Действия
keremet@opensolaris:~$ pfexec zonecfg -z linuxzone
zonecfg:linuxzone> select net address=192.168.1.116/24
zonecfg:linuxzone:net> set address=192.168.0.112/24
zonecfg:linuxzone:net> set defrouter=192.168.0.1
zonecfg:linuxzone:net> end
zonecfg:linuxzone> verify
zonecfg:linuxzone> commit
zonecfg:linuxzone> exit
Стало
keremet@opensolaris:~$ pfexec zonecfg -z linuxzone info
zonename: linuxzone
zonepath: /export/linuxzone
brand: lx
autoboot: false
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
hostid:
net:
address: 192.168.0.112
physical: rge0
defrouter: 192.168.0.1
attr:
name: audio
type: boolean
value: true
Навигация
Перейти к полной версии