FortiGateの設定を初期化する




FortiGateを構築し直したりする際に設定を初期化したいことがある
そのような時は以下の手順で設定を初期化できる

# execute factoryreset
This operation will reset the system to factory default!
Do you want to continue? (y/n)y


System is resetting to factory default...


The system is going down NOW !!

Please stand by while rebooting the system.
FGT50A (11:04-04.25.2005)
Ver:04000000
Serial number:FGT50Axxxxxxxxx
RAM activation
Total RAM: 128MB
Enabling cache...Done.
Scanning PCI bus...Done.
Allocating PCI resources...Done.
Enabling PCI resources...Done.
Zeroing IRQ settings...Done.
Verifying PIRQ tables...Done.
Boot up, boot device capacity: 30MB.
Press any key to display configuration menu...
......

Reading boot image 1384332 bytes.
Initializing firewall...
System is started.


Fortigate-50A login: 

これで設定が初期化される
試しにIPアドレスの初期設定を確認してみる

# get system interface
== [ internal ]
name: internal    mode: static    ip: 192.168.1.99 255.255.255.0   status: up    netbios-forward: disable    type: physical    mtu-override: disable  
== [ external ]
name: external    mode: static    ip: 192.168.100.99 255.255.255.0   status: up    netbios-forward: disable    type: physical    mtu-override: disable

これからの設定は192.168.1.99にHTTPで接続して行えば良い