AnsweredHot!Transition from Hardware Switch to Aggregate

Author
kcerb
Silver Member
  • Total Posts : 83
  • Scores: 0
  • Reward points: 0
  • Joined: 2007/09/19 23:51:51
  • Status: offline
2019/06/27 00:53:27 (permalink)
0

Transition from Hardware Switch to Aggregate

Hi,
On my FortiGate 100D I have Hardware Switch with just one physical interface attached to it and many virtual interfaces (VLANs) on that switch.
I would like to change it to Aggregate port because I want to connect it to the switch stack where I can configure link aggregation group too.
I discover there is no possibility to change interface type in gui. I realize I should delete all rules which using those virtual interfaces, delete virtual interfaces under hardware switch and then recreate everything under Aggregation interface.
 
But what if I replaced "set type hard-switch" to "set type aggregate" of interface in the configuration file as well as delete "config system virtual-switch" entry and then I would restore this configuration?
 
Is this possible? Or maybe it is possible to force change interface type via CLI?
#1
Baptiste
Gold Member
  • Total Posts : 160
  • Scores: 13
  • Reward points: 0
  • Status: offline
Re: Transition from Hardware Switch to Aggregate 2019/06/27 01:57:24 (permalink) ☼ Best Answerby kcerb 2019/06/28 00:29:42
0
you can easily configure an aggregate on a fresh backup, search and replace with your new interface name, and restore it,  I did i some weeks ago, it works fine.
But I remove hardware switch at initial setup, it's an additional step in your case : you can't remove HW switch "live" because there is some items link to it

FGT 100D 6.0.5 + FTK200
FGT 60E 5.6.7 & 6.0.4
FGT 40C 5.0.13
FAZ VM 6.2.0
FAP 210B/221C/223C/321C/421E
#2
kcerb
Silver Member
  • Total Posts : 83
  • Scores: 0
  • Reward points: 0
  • Joined: 2007/09/19 23:51:51
  • Status: offline
Re: Transition from Hardware Switch to Aggregate 2019/06/27 04:42:19 (permalink)
0
Thank you Baptiste.
I think when I delete this part from my config and replace Aggregate interface name to "internal" it will be fine.
config system virtual-switch
    edit "internal"
        set physical-switch "sw0"
        config port
            edit "port1"
            next
        end
    next
end

#3
Baptiste
Gold Member
  • Total Posts : 160
  • Scores: 13
  • Reward points: 0
  • Status: offline
Re: Transition from Hardware Switch to Aggregate 2019/06/28 00:12:27 (permalink) ☄ Helpfulby kcerb 2019/06/28 00:29:48
0
There no more reference to internal switch my config
 
Before aggregate

config system interface

edit "port1"
set vdom "root"
set ip 192.168.c.e 255.255.255.0
set allowaccess ping https ssh snmp fgfm capwap
set vlanforward enable
set type physical
set alias "ccc"
set device-identification enable
set device-identification-active-scan enable
set fortiheartbeat enable
set snmp-index 11
next
edit "port2"
set vdom "root"
set ip 192.168.x.c 255.255.255.0
set allowaccess ping
set vlanforward enable
set type physical
set alias "ccccc"
set snmp-index 12

next

.........

 
I halso have 
config system physical-switch
edit "sw0"
set age-val 0
next
end

 
After aggregate :
 
   
 edit "port1"
        set vdom "root"
        set type physical
        set snmp-index 11
    next
    edit "port2"
        set vdom "root"
        set type physical
        set snmp-index 12
    next
.....
edit "AGGR-LAN"
set vdom "root"
set type aggregate
set member "port1" "port2"
set ip 192.168.x.c 255.255.255.0
set allowaccess ping https ssh snmp fgfm capwap
set vlanforward enable
next
end
config system physical-switch
edit "sw0"
set age-val 0
next
end

 
And search for old port name /replace with aggregate name

FGT 100D 6.0.5 + FTK200
FGT 60E 5.6.7 & 6.0.4
FGT 40C 5.0.13
FAZ VM 6.2.0
FAP 210B/221C/223C/321C/421E
#4
kcerb
Silver Member
  • Total Posts : 83
  • Scores: 0
  • Reward points: 0
  • Joined: 2007/09/19 23:51:51
  • Status: offline
Re: Transition from Hardware Switch to Aggregate 2019/06/28 00:29:31 (permalink)
0
Thank you Baptiste. It looks similar to me.
#5
Jump to:
© 2019 APG vNext Commercial Version 5.5