I have done this before, but you may run into arp issues. I am not sure which MAC the VIF will take on. You may have to delete rarp caches in switches...or wait twenty minutes for it to clear on its' own.
You can modify the /etc/rc file and make sure it is perfect. I use LACP vifs when I need them. That can always be changed to multi if you do not want to or can not use LACP on your switch.
***SNIP*** vif create lacp vif0 -b mac e0a e0a ifconfig vif0 `hostname`-vif0 mediatype auto flowcontrol full netmask x.x.x.x partner vif0 route add default router 1 ***SNIP***
Of course, make sure `hostname`-vif0 and router exists in the /etc/hosts file. Also, make sure that router exists in the /etc/dgateways file.
Then you could do something crazy like:
route -f ; ifconfig e0a 0.0.0.0 down ; <repeat for each and every interface that is up using a semicolon between each> ; source /etc/rc
I usually get my prompt back in a few seconds, however, much safer to run this command from the rlm or console...just in case.
--tmac Tim McCarthy Principal Consultant
RedHat Certified Engineer 804006984323821 (RHEL4) 805007643429572 (RHEL5)
On Mon, Nov 23, 2009 at 7:19 AM, Steve Losen scl@sasha.acc.virginia.eduwrote:
I am going to create a vif using two interfaces (e0a and e0c). The IP address of e0a is going to be the IP for the vif, e0c is not in use.
I was hoping to do this without shutting down, and disrupt connections on that IP for just a few seconds.
Do I need to "ifconfig down" e0a before running "vif create" ?
For speed and accuracy, I will put the commands in a file beforehand and run it with "source".
The switch is configured, but I have to move the cables to the configured ports. Should I do this before running "vif create" ?
This is a clustered pair, so I will be doing this on both filers. Any clustering issues to worry about? Should I "cf disable" before and "cf enable" after to avoid any unwanted fail overs?
I would appreciate any suggestions on how best to do this.
Thanks,
Steve Losen scl@virginia.edu phone: 434-924-0640
University of Virginia ITC Unix Support