Subscribe

LACP VIF RC File

I have two options to incorpate an LACP Vif into my RC file, which one do I use?  Will either work correctly?  Option 1 I wrote myself, option 2 I copied the RC file and added the line for creating the LACP vif.  Although in option 2 I don't see any place where the IP address is added.  Thanks!

Option 1:

hostname "filer a"

vif create lacp vifname -b ip e1a e1b

ifconfig vifname x.x.x.x netmask 255.255.255.0 mtusize 1500 partner "partner vif"

ifconfig e0a x.x.x.x netmask 255.255.255.0 mtusize 1500 partner "partner ip"

route add default x.x.x.x

routed on

options dns.enable on

options nis.enable off

savecore

Options 2:

hostname "filer a"

vif create lacp vifname -b ip e1a e1b

ifconfig e0a `hostname`-e0a mediatype auto flowcontrol full netmask 255.255.255.0 partner "partner ip"

ifconfig vifname `hostname`-vifname netmask 255.255.255.0 mtusize 1500 -wins partner "partner vif"

route add default 10.0.49.1 1

routed on

options dns.enable on

options nis.enable off

savecore

Re: LACP VIF RC File

It is hostname substitution from the /etc/hosts file.  I prefer #2... when you specify the "partner" interface it always has to be the name of the partner interface, not an ip or it won't work.