nexenta网络设置

基本配置

1. 配置IP地址

svcadm disable network/physical:nwam
svcadm enable network/physical:default

ifconfig e1000g0 unplumb
ifconfig e1000g0 plumb
ifconfig e1000g0 192.168.172.12/24 broadcast + up

2. 配置默认网关

route -p add default 192.168.84.1

3. 配置DNS

  • 修改/etc/nsswith.conf
vim /etc/nsswitch.conf
ipnodes: files mdns
hosts:files mdns
  • 修改/etc/resolv.conf
echo "Nameserver 8.8.8.8" > /etc/resolv.conf