labunix's blog

labunixのラボUnix

Fortigate-60CをInterfaceモードに変更する。

■Fortigate-60CをInterfaceモードに変更する。

# get system status | grep ^Ver
Version: FortiGate-60C v5.2.3,build0670,150318 (GA)

■初期化を前提に。

execute factoryreset

■順番が大事だということが分かるように、
 「config system global」を2回記述した。

config system global
    set timezone 60
    set language japanese
    set hostname home-utm
end
config system dhcp server
    delete 1
end
config firewall policy
    delete 1
end
config system global
    set internal-switch-mode interface
end

■以下のメッセージが出れば再起動後に有効になる。

Changing switch mode will reboot the system!
Do you want to continue? (y/n)y

■再起動

# execute reboot 
The system has configuration not saved!
This operation will reboot the system !
Do you want to continue? (y/n)y

■確認。
 それぞれ、SNMP-Index番号を確認しておく。

# show system interface | grep -f internal
config system interface
    edit "internal1" <---
        set vdom "root"
        set type physical
        set snmp-index 8
    next
    edit "internal2" <---
        set vdom "root"
        set type physical
        set snmp-index 9
    next
    edit "internal3" <---
        set vdom "root"
        set type physical
        set snmp-index 10
    next
    edit "internal4" <---
        set vdom "root"
        set type physical
        set snmp-index 11
    next
    edit "internal5" <---
        set vdom "root"
        set type physical
        set snmp-index 12
    next
end