nexenta

nexenta中的链路聚合设置

1、确保所有网口没有被启用

ifconfig e1000g0 unplumb
ifconfig e1000g1 unplumb

2、创建link-aggregation

dladm create-aggr -l e1000g0 -l e1000g1 interlink0

3、启用端口汇聚

ifconfig plumb interlink0

4、配置ip地址

ifconfig interlink0 192.168.33.11/24 broadcast + up

5、配置JumboFrame

dladm set-linkprop -p mtu=9000 aggr0
dladm show-linkprop -p mtu

假如之前配置了一个网卡,残留:/etc/hostname.e1000g0这样的文件,这时候需要将该文件更名为hostname.aggr0,mv /etc/hostname.e1000g0 /etc/hostname.aggr0,否则系统重启后会出错:network/physical:default无法正常启动,处于maintance状态
{: class=“info” }

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

如何在nexenta中安装intel558双口网卡

在存储服务器中安装一块Intel 558双口网卡后,nexenta 3.0.5无法识别,ifconfig -a看不到任何网卡信息,原因是内核尚未装载驱动,接下来需要做的是:

  1. 识别网卡vendor iddevice id
  2. 查找匹配的驱动;
  3. 装载驱动;
  4. 配置网卡;

1. 识别网卡“vendor id”和“device id”

# prtconf -pv | less
   model:  'Ethernet controller'
   power-consumption:  00000001.00000001
   fast-back-to-back:
   devsel-speed:  00000001
   interrupts:  00000001
   max-latency:  00000038
   min-grant:  00000008
   subsystem-vendor-id:  00008086
   subsystem-id:  000010f0
   unit-address:  '4'
   class-code:  00020000
   revision-id:  00000005
   vendor-id:  00008086
   device-id:  00001229
   name:  'pci8086,10f0'

找到device-id: 00001229,对应的vendor-id: 00008086。接着再找对应的驱动:

2. 查找匹配的驱动

root@ncp:/etc# grep 1229 /boot/solaris/devicedb/master
pci8086,1229 pci8086,1229 net pci iprb.bef "Intel Pro100/B Fast Ethernet"
pci8086,1229.8086.1009 pci8086,1229 net pci iprb.bef "Intel Pro100/B Fast Ethernet"
pci8086,1229.8086.100c pci8086,1229 net pci iprb.bef "Intel Pro100/B Fast Ethernet"
pci8086,1229.8086.1012 pci8086,1229 net pci iprb.bef "Intel Pro100/B Fast Ethernet"
pci8086,1229.8086.1013 pci8086,1229 net pci iprb.bef "Intel Pro100/B Fast Ethernet"
pci8086,1229.8086.1015 pci8086,1229 net pci iprb.bef "Intel Pro100/B Fast Ethernet"
pci8086,1229.8086.1016 pci8086,1229 net pci iprb.bef "Intel Pro100/B Fast Ethernet"
pci8086,1229.8086.1017 pci8086,1229 net pci iprb.bef "Intel Pro100/B Fast Ethernet"

第一行的结果显示这块网卡用的是iprb驱动,因此

3. 装载驱动

# modload /kernel/drv/iprb

4. 配置网卡

# ifconfig iprb0 plumb
# touch /etc/hostname.iprb0
# ifconfig iprb1 plumb
# touch /etc/hostname.iprb1