如何通过 CLI Panorama 管理模板创建、添加和删除子接口和静态路由 Firewall 。

如何通过 CLI Panorama 管理模板创建、添加和删除子接口和静态路由 Firewall 。

34340
Created On 05/15/19 20:29 PM - Last Modified 03/26/21 17:40 PM


Objective


这是一个指南 HOW TO (), 应帮助用户使用 CLI 配置和删除子接口, 静态路由 Panorama 管理防火墙上。

Environment


  • Panorama 管理 firewall 运行帕诺斯8.0.x或更晚
  • Panorama 运行帕诺斯8.1.x


Procedure


1. 创建子接口,将它们添加到 VR 静态路由并添加到 VR :
 
config
set template test-template config network interface aggregate-ethernet ae1 layer3 units ae1.100 tag 100 ip 5.5.5.5/24 
set template test-template config network interface aggregate-ethernet ae1 layer3 units ae1.200 tag 200 ip 6.6.6.6/24
set template test-template config network virtual-router test interface [ ae1.100 ae1.200 ] 
set template test-template config vsys vsys1 import network interface [ ae1.100 ae1.200 ]
set template test-template config vsys vsys1 zone test-trust network layer3 [ ae1.100 ae1.200 ]
set template test-template config network virtual-router test routing-table ip static-route test-route destination 10.10.10.0/24 interface ae1.100 nexthop ip-address 5.5.5.100


2. 提交配置并推至管理设备:
使用 CLI "配置模式"的"提交"命令进行更改。
更改使用操作模式(或来自)的"提交所有"命令推至设备 GUI CLI 。 例如:
commit-all template name test-template
OR
commit-all template-stack name CS-test_stack (in case of Panorama 8.1)


3. 删除路由:
delete template test-template config network virtual-router test routing-table ip static-route test-route

4. 删除界面

NOTE :
只有未在任何地方(在路由中的此示例中)引用,才能删除界面,因此第一步是删除路由。
delete template test-template config network interface aggregate-ethernet ae1 layer3 units ae1.100
OR
delete template test-template config network interface aggregate-ethernet ae1
提交 需要在步骤 2 中记录的任何更改后完成。


Additional Information


AE 界面不会出现在SNMPwalk(将没有 OID )之前,他们被创建在 Firewall 。 

在配置界面之前,SNMPwalk 的输出:
IF-MIB::ifDescr.1 = STRING: dedicated-ha1
IF-MIB::ifDescr.2 = STRING: dedicated-ha2
IF-MIB::ifDescr.3 = STRING: ha1
IF-MIB::ifDescr.4 = STRING: ha2
IF-MIB::ifDescr.5 = STRING: mgmt
IF-MIB::ifDescr.6 = STRING: ethernet1/1
IF-MIB::ifDescr.7 = STRING: ethernet1/2
..snip..
IF-MIB::ifDescr.22 = STRING: ethernet1/17
IF-MIB::ifDescr.23 = STRING: ethernet1/18
IF-MIB::ifDescr.200000000 = STRING: vlan
IF-MIB::ifDescr.300000000 = STRING: loopback
IF-MIB::ifDescr.400000000 = STRING: tunnel


配置接口后,snmpwalk 的输出:
IF-MIB::ifDescr.1 = STRING: dedicated-ha1
IF-MIB::ifDescr.2 = STRING: dedicated-ha2
IF-MIB::ifDescr.3 = STRING: ha1
IF-MIB::ifDescr.4 = STRING: ha2
IF-MIB::ifDescr.5 = STRING: mgmt
IF-MIB::ifDescr.6 = STRING: ethernet1/1
IF-MIB::ifDescr.7 = STRING: ethernet1/2
IF-MIB::ifDescr.8 = STRING: ethernet1/3
..snip..
IF-MIB::ifDescr.22 = STRING: ethernet1/17
IF-MIB::ifDescr.23 = STRING: ethernet1/18
IF-MIB::ifDescr.200000000 = STRING: vlan
IF-MIB::ifDescr.300000000 = STRING: loopback
IF-MIB::ifDescr.400000000 = STRING: tunnel
IF-MIB::ifDescr.500010000 = STRING: ae1           
IF-MIB::ifDescr.500010100 = STRING: ae1.100.
IF-MIB::ifDescr.500010200 = STRING: ae1.200

 


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000PLyUCAW&lang=zh_CN&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail

Choose Language