防火墙系列---子接口下的配置

2019/6/25 - - -

此文章是关于配置防火墙的子接口配置初始化状态的一个实验

实验拓扑
在这里插入图片描述

实验环境

此前已有ASA相关配置的文章 —> 《ASA的配置》
关于防火墙初始化的文章—> 《初始化状态配置》

实验配置

因为之前有对此文章的介绍,这里直接上配置,可以修改完部分地址与接口后,直接刷进去。

路由与交换所做的优化配置

enable
configure terminal
line console 0
logging synchronous
exec-timeout 0 0
exit
no ip domain-lookup
line vty 0 4
no login
transport input all
exit

交换机的配置

vlan 2
name inside
exit
vlan 3
name DMZ
exit
vlan 6
name outside

exit
interface e0/0
switchport mode access
switchport access vlan 2
exit
interface e0/1
switchport mode access
switchport access vlan 3
exit
interface e0/2
switchport mode access
switchport access vlan 6
exit
interface e1/0
switchport mode access
switchport access vlan 6
exit
do show vlan

interface e0/3
switchport trunk allowed vlan 2,3,6
switchport mode trunk
switchport trunk encapsulation dot1q
exit
do show interface trunk

路由器的配置

inside 配置

hostname inside01
interface e0/0
ip add 192.168.20.100 255.255.255.0
no shutdown
ip route 0.0.0.0 0.0.0.0 192.168.20.1
do show ip int br
do show ip route

DMZ 配置

hostname DMZ01
interface e0/0
ip add 172.16.30.100 255.255.255.0
no shutdown
ip route 0.0.0.0 0.0.0.0 172.16.30.1
do show ip int br
do show ip route

outside 配置

hostname outside01
interface e0/0
ip add 200.6.6.100 255.255.255.0
no shutdown
ip route 0.0.0.0 0.0.0.0 200.6.6.1
do show ip int br
do show ip route

防火墙ASA上的配置

interface g0/1
nameif outside
security-level 0
ip add 200.6.6.1 255.255.255.0
no shutdown

exit
interface g0/0
no shutdown
exit

interface g0/0.2
vlan 2
nameif inside
ip add 192.168.20.1 255.255.255.0
no shutdown

exit
interface g0/0.3
vlan 3
nameif dmz
security-level 50
ip add 172.16.30.1 255.255.255.0
no shutdown
exit
exit
show nameif
show route

测试

inside:

telnet 200.6.6.100
telnet 172.16.30.100

DMZ:

telnet 200.6.6.100

可以远程到对方,说明成功

OK,有什么问题,欢迎评论交流O(∩_∩)O~

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值