<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Adding sub-interface vlan via mgta_cli in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Adding-sub-interface-vlan-via-mgmt-cli/m-p/231313#M44582</link>
    <description>&lt;P&gt;I see, so every time I add interface, I need to define the old interface and the new interface. I find that quite inconvenient. For example, if I already have 10 interfaces and want to add 10 new interfaces, I will use an API call for 20 interfaces. However, thanks for the helpful solution.&lt;/P&gt;</description>
    <pubDate>Thu, 31 Oct 2024 02:45:58 GMT</pubDate>
    <dc:creator>ng0cph0ng</dc:creator>
    <dc:date>2024-10-31T02:45:58Z</dc:date>
    <item>
      <title>Adding sub-interface vlan via mgmt_cli</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Adding-sub-interface-vlan-via-mgmt-cli/m-p/230869#M44470</link>
      <description>&lt;P&gt;Im new in Check Points API, i have read some documents and try to add new vlan sub-interface, I tried "add interface eth0 vlan 20", but it doesnt work. How can i do. I can add vlan 10 manually, btw i use R81.20.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 03:04:36 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Adding-sub-interface-vlan-via-mgmt-cli/m-p/230869#M44470</guid>
      <dc:creator>ng0cph0ng</dc:creator>
      <dc:date>2024-10-30T03:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Adding sub-interface vlan via mgta_cli</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Adding-sub-interface-vlan-via-mgmt-cli/m-p/231046#M44503</link>
      <description>&lt;P&gt;You're doing this from SmartConsole CLI, which is not where you need to enter this command.&lt;BR /&gt;Log into the gateway via SSH/console.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2024 21:31:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Adding-sub-interface-vlan-via-mgmt-cli/m-p/231046#M44503</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2024-10-28T21:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Adding sub-interface vlan via mgta_cli</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Adding-sub-interface-vlan-via-mgmt-cli/m-p/231071#M44516</link>
      <description>&lt;P&gt;Thanks for your reply, I used this script to add vlan but it show me the error. Can you check my script and guide me how to do it.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 03:57:48 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Adding-sub-interface-vlan-via-mgmt-cli/m-p/231071#M44516</guid>
      <dc:creator>ng0cph0ng</dc:creator>
      <dc:date>2024-10-29T03:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Adding sub-interface vlan via mgta_cli</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Adding-sub-interface-vlan-via-mgmt-cli/m-p/231168#M44531</link>
      <description>&lt;P&gt;It seems like you're trying to use the clish command in the API to add this interface to the relevant network object.&lt;BR /&gt;That's not how to do it.&lt;/P&gt;
&lt;P&gt;You must use the &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#cli/set-simple-gateway~v2%20" target="_self"&gt;set simple-gateway&lt;/A&gt;&amp;nbsp;API call and specify ALL the interfaces for that gateway object, including the one you want to add.&lt;BR /&gt;In R82, there is an &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#cli/add-interface~v2%20" target="_self"&gt;add-interface&lt;/A&gt; endpoint where it appears you can add an interface to an existing gateway object.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 17:08:24 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Adding-sub-interface-vlan-via-mgmt-cli/m-p/231168#M44531</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2024-10-29T17:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Adding sub-interface vlan via mgta_cli</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Adding-sub-interface-vlan-via-mgmt-cli/m-p/231211#M44537</link>
      <description>&lt;P&gt;Can you make it more clearly? When I use set simple-gateway with my gateway uid, I have parameter interfaces.i. I tried&amp;nbsp;set simple-gateway uid "UID" interfaces.i. ... and it always show error.&lt;BR /&gt;I just want to add vlan sub-interfaces, Im using R81.20. When I l&lt;SPAN&gt;og into the gateway via console. I use "add interface eth0 vlan 10" and some "set interface ...", it work. I want to try to do it with expert mode (mgmt_cli) to add&amp;nbsp;multiple vlans at once. Can I do it on R81.20?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 02:59:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Adding-sub-interface-vlan-via-mgmt-cli/m-p/231211#M44537</guid>
      <dc:creator>ng0cph0ng</dc:creator>
      <dc:date>2024-10-30T02:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Adding sub-interface vlan via mgta_cli</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Adding-sub-interface-vlan-via-mgmt-cli/m-p/231288#M44566</link>
      <description>&lt;P&gt;As stated, you cannot just "add" an interfaces to an existing simple-gateway object.&lt;BR /&gt;Your API call must include ALL the interfaces (both existing and ones you wish to add).&lt;BR /&gt;This is specified in the API documentation:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/28270i44D25D0FC4B3BE05/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;See this thread for an example:&amp;nbsp;&lt;A href="https://community.checkpoint.com/t5/Management/How-to-Set-topology-on-a-simple-gateway-using-the-mgmt-cli/m-p/196706" target="_blank"&gt;https://community.checkpoint.com/t5/Management/How-to-Set-topology-on-a-simple-gateway-using-the-mgmt-cli/m-p/196706&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 20:10:18 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Adding-sub-interface-vlan-via-mgmt-cli/m-p/231288#M44566</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2024-10-30T20:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Adding sub-interface vlan via mgta_cli</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Adding-sub-interface-vlan-via-mgmt-cli/m-p/231291#M44567</link>
      <description>&lt;P&gt;To give another example, I present the following GW object, which has the following interfaces defined:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 400px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/28271i4935A21E560E8C72/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I used the following mgmt_cli command:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;mgmt_cli -r true set simple-gateway name "R8120-GW" interfaces.1.name "eth0" interfaces.1.ipv4-address "10.6.5.210" interfaces.1.ipv4-network-mask "255.255.255.0" interfaces.1.topology "external" interfaces.2.name "eth1" interfaces.2.ipv4-address "192.168.100.1" interfaces.2.ipv4-network-mask "255.255.255.0" interfaces.2.topology "internal" interfaces.2.topology-settings.ip-address-behind-this-interface "network defined by the interface ip and net mask" interfaces.3.name "eth2" interfaces.3.ipv4-address "192.168.200.1" interfaces.3.ipv4-network-mask "255.255.255.0" interfaces.3.topology "internal" interfaces.3.topology-settings.ip-address-behind-this-interface "network defined by the interface ip and net mask"&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The end result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 400px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/28272i603CD0ECF00695A9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Note that you might need to pass more parameters to set the interfaces per your specifications.&lt;BR /&gt;However, that should be more than enough to get you started.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 20:16:22 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Adding-sub-interface-vlan-via-mgmt-cli/m-p/231291#M44567</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2024-10-30T20:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Adding sub-interface vlan via mgta_cli</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Adding-sub-interface-vlan-via-mgmt-cli/m-p/231313#M44582</link>
      <description>&lt;P&gt;I see, so every time I add interface, I need to define the old interface and the new interface. I find that quite inconvenient. For example, if I already have 10 interfaces and want to add 10 new interfaces, I will use an API call for 20 interfaces. However, thanks for the helpful solution.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 02:45:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Adding-sub-interface-vlan-via-mgmt-cli/m-p/231313#M44582</guid>
      <dc:creator>ng0cph0ng</dc:creator>
      <dc:date>2024-10-31T02:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Adding sub-interface vlan via mgta_cli</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Adding-sub-interface-vlan-via-mgmt-cli/m-p/231409#M44601</link>
      <description>&lt;P&gt;Yes, and this problem is addressed in R82 with the &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#cli/add-interface~v2%20" target="_blank" rel="noopener"&gt;add-interface&lt;/A&gt; endpoint.&lt;BR /&gt;Continuing with the above object, let's say I wanted to add eth3.&lt;BR /&gt;My call would look something like this:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;mgmt_cli -r true add interface name "eth3" gateway-uid "375bebfe-989b-4cd8-80c0-001d2736ccc1" ipv4-address "192.168.150.1" ipv4-mask-length "24" security-zone-settings.auto-calculated "false" security-zone-settings.specific-zone "WirelessZone" topology "internal" topology-settings.ip-address-behind-this-interface "network defined by the interface ip and net mask"&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;It looks something like this in SmartConsole:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/28295iEEF5F2B3AB32C330/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;FYI&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/37502"&gt;@Omer_Kleinstern&lt;/a&gt;&amp;nbsp;when I tried to use ipv4-network-mask instead of ipv4-mask-length in the above, I got a validation error.&amp;nbsp;&lt;BR /&gt;I assume this a bug?&lt;BR /&gt;Also, it seems that there is no option in the add-interface endpoint (or the set-interface one) to actually enable the specified security zone.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 15:59:25 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Adding-sub-interface-vlan-via-mgmt-cli/m-p/231409#M44601</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2024-10-31T15:59:25Z</dc:date>
    </item>
  </channel>
</rss>

