首页 科技问答 mkMzKH,h3c防火墙

mkMzKH,h3c防火墙

科技问答 211
1677079099,CRM论坛(CRMbbs.com)——一个让用户更懂CRM的垂直性行业内容平台,CRM论坛致力于互联网、客户管理、销售管理、SCRM私域流量内容输出5年。 如果您有好的内容,欢迎向我们投稿,共建CRM多元化生态体系,创建CRM客户管理一体化生态解决方案。内容来源:知了社区

问题描述:

防火墙怎么配置虚拟防火墙,麻烦发一个配置实例

组网及组网描述:


11小时前提问

 Context基本组网配置举例

1. 组网需求

将设备Device虚拟成三台独立的Device:Context cnt1、Context cnt2、Context cnt3,并分给三个不同的用户网络进行安全防护。要求在用户侧看来,各自的接入设备是独享的。

·     LAN 1、LAN 2、LAN 3分别属于公司A、公司B、公司C,现各公司的网络均需要进行安全防护。公司A使用的网段为192.168.1.0/24,公司B使用的网段为192.168.2.0/24,公司C使用的网段为192.168.3.0/24。

·     公司A的用户多,业务需求复杂,因此需要给Context cnt1提供较大的磁盘/内存空间使用上限,以便保存配置文件、启动文件和系统信息等;对公司B使用系统缺省的磁盘空间即可;公司C人员规模小,上网流量比较少,对接入Device的配置及性能要求较低,因此对Context cnt3提供较低的CPU权重。

·     GigabitEthernet1/2/5/1和GigabitEthernet1/2/5/4分配给Context cnt1、GigabitEthernet1/2/5/2和GigabitEthernet1/2/5/5分配给Context cnt2、GigabitEthernet1/2/5/3和GigabitEthernet1/2/5/6分配给Context cnt3。

2. 组网图

图1-2 Context基本组网配置组网图

3. 配置步骤

     创建并配置Context cnt1,供公司A使用

# 创建Context cnt1,进驻安全引擎组,配置其磁盘和内存使用的上限均为60%、CPU权重为8,具体配置步骤如下。

<Device> system-view

[Device] context cnt1

[Device-context-2-cnt1] description context-1

[Device-context-2-cnt1] location blade-controller-team 1

[Device-context-2-cnt1] limit-resource disk chassis 1 slot 2 cpu 0 ratio 60

[Device-context-2-cnt1] limit-resource memory chassis 1 slot 2 cpu 0 ratio 60

[Device-context-2-cnt1] limit-resource cpu weight 8

# 将接口GigabitEthernet1/2/5/1和GigabitEthernet1/2/5/4分配给Context cnt1。

[Device-context-2-cnt1] allocate interface gigabitethernet 1/2/5/1 gigabitethernet 1/2/5/4

# 启动Context cnt1。

[Device-context-2-cnt1] context start

It will take some time to start the context...

Context started successfully.

[Device-context-2-cnt1] quit

# 切换到Context cnt1。

[Device] switchto context cnt1

******************************************************************************

* Copyright (c)

* Without the owner's prior written consent,                                 *

* no decompiling or reverse-engineering shall be allowed.                    *

******************************************************************************

 

<H3C> system-view

# 配置Telnet功能,保证管理用户可以正常登录设备,具体配置步骤请参考“基础配置指导”中的“登录设备”。

# 将Context cnt1的名称修改为cnt1,以便和其它Context区别。

[H3C] sysname cnt1

# 配置接口GigabitEthernet1/2/5/1的IP地址为192.168.1.251,供公司A的管理用户远程登录。

[cnt1] interface gigabitethernet 1/2/5/1

[cnt1-GigabitEthernet1/2/5/1] ip address 192.168.1.251 24

# 从自定义Context cnt1返回缺省Context。

[cnt1-GigabitEthernet1/2/5/1] return

<cnt1> quit

[Device]

     创建并配置Context cnt2,供公司B使用

# 创建Context cnt2,设置描述信息

[Device] context cnt2

[Device-context-3-cnt2] description context-2

# 设置cnt2进驻缺省安全引擎组(编号为1)。

[Device-context-3-cnt2] location blade-controller-team 1

# 将接口GigabitEthernet1/2/5/2和GigabitEthernet1/2/5/5分配给Context cnt2。

[Device-context-3-cnt2] allocate interface gigabitethernet 1/2/5/2 gigabitethernet 1/2/5/5

# 启动Context cnt2。

[Device-context-3-cnt2] context start

It will take some time to start the context...

Context started successfully.

[Device-context-3-cnt2] quit

# 切换到Context cnt2。

[Device] switchto context cnt2

******************************************************************************

* Copyright (c)

* Without the owner's prior written consent,                                 *

* no decompiling or reverse-engineering shall be allowed.                    *

******************************************************************************

 

<H3C> system-view

# 配置Telnet功能,保证管理用户可以正常登录设备,具体配置步骤请参考“基础配置指导”中的“登录设备”。

# 将Context cnt2的名称修改为cnt2,以便和其它Context区别。

[H3C] sysname cnt2

# 配置接口GigabitEthernet1/2/5/2的IP地址为192.168.2.251,供公司B的管理用户远程登录。

[cnt2] interface gigabitethernet 1/2/5/2

[cnt2-GigabitEthernet1/2/5/2] ip address 192.168.2.251 24

# 从自定义Context cnt2返回缺省Context。

[cnt2-GigabitEthernet1/2/5/2] return

<cnt2> quit

[Device]

     创建并配置Context cnt3,供公司C使用

# 创建Context cnt3,设置描述信息

[Device] context cnt3

[Device-context-4-cnt3] description context-3

# 设置cnt3进驻缺省安全引擎组(编号为1)。

[Device-context-4-cnt3] location blade-controller-team 1

# 配置Context cnt3的CPU权重为2。

[Device-context-4-cnt3] limit-resource cpu weight 2

# 将接口GigabitEthernet1/2/5/3和GigabitEthernet1/2/5/6分配给Context cnt3。

[Device-context-4-cnt3] allocate interface gigabitethernet 1/2/5/3 gigabitethernet 1/2/5/6

# 启动Context cnt3。

[Device-context-4-cnt3] context start

It will take some time to start the context...

Context started successfully.

[Device-context-4-cnt3] quit

# 切换到Context cnt3。

[Device] switchto context cnt3

******************************************************************************

* Copyright (c)

* Without the owner's prior written consent,                                 *

* no decompiling or reverse-engineering shall be allowed.                    *

******************************************************************************

 

<H3C> system-view

# 配置Telnet功能,保证管理用户可以正常登录设备,具体配置步骤请参考“基础配置指导”中的“登录设备”。

# 将Context cnt3的名称修改为cnt3,以便和其它Context区别。

[H3C] sysname cnt3

# 配置接口GigabitEthernet1/2/5/3的IP地址为192.168.3.251,供公司C的管理用户远程登录。

[cnt3] interface gigabitethernet 1/2/5/3

[cnt3-GigabitEthernet1/2/5/3] ip address 192.168.3.251 24

# 从自定义Context cnt3返回缺省Context。

[cnt3-GigabitEthernet1/2/5/3] return

<cnt3> quit

[Device]

4. 验证配置

     查看Context是否存在并且运转正常。(此时,Device上应该有四台处于正常工作active状态的Context)

[Device] display context

ID     Name             Status       Description

1      Admin            active       DefaultContext

2      cnt1             active       context-1

3      cnt2             active       context-2

4      cnt3             active       context-3

     模拟公司A的管理用户登录到Context cnt1,可以查看本设备的当前配置。

C:\> telnet 192.168.1.251

******************************************************************************

* Copyright (c)

* Without the owner's prior written consent,                                 *

* no decompiling or reverse-engineering shall be allowed.                    *

******************************************************************************

 

<cnt1> display current-configuration

……

11小时前回答

各个逻辑防火墙互通用什么方法,麻烦配置举例

参考官方文档:

https://www.h3c.com/cn/d_

10小时前回答

你正在,h3c防火墙