If your interfaces are losing configuration you must edit the /etc/rc file. The filer uses this file at boot for settings. You can change this file by:
1.Running setup again.
2. Edit etc rc file
*****Makes sure you read the /etc/rc file into memory first using: rdfile /etc/rc *****
CAUTION: If you make a change using wr file and you have NOT run the rdfile command first you will delete the original rc file.
I would reccomend copying the return of the rdfile command to a notepad just in case.
The command to append your changes to the rc file is: wrfile -a /etc/rc
**Example RC File**
hostname SAN1
vif create multi Prod1 -b ip e0a e0b
ifconfig Prod1 `hostname`-Prod1 mediatype auto netmask 255.255.255.0 partner Prod2
route add default 10.10.20.1 1
routed on
options dns.enable off
options nis.enable off
savecore
**Example command to append an interface configuration to the file
wrfile -a /etc/rc ifconfig e0P 10.10.10.31 netmask 255.255.255.0 mediatype auto
** Example of the rdfile output after running wrfile -a
hostname SAN1
vif create multi Prod1 -b ip e0a e0b
ifconfig Prod1 `hostname`-Prod1 mediatype auto netmask 255.255.255.0 partner Prod2
route add default 10.10.20.1 1
routed on
options dns.enable off
options nis.enable off
savecore
ifconfig e0P 10.10.10.31 netmask 255.255.255.0 mediatype auto
No comments:
Post a Comment