华为OSPF与ACL综合应用实例讲解
admin
2023-01-22 06:22:15
0
    在企业中OSPF和ACL应用特别广泛,本文重点介绍ospf与acl用的实例讲解。
    本实例企业拓扑图如下:

华为OSPF与ACL综合应用实例讲解

项目案例要求:

1.企业内网运行OSPF路由协议,区域规划如图所示;
2.财务和研发所在的区域不受其他区域链路不稳定性影响;
3.R1、R2、R3只允许被IT登录管理;
4.YF和CW之间不能互通,但都可以与IT互通;
5.IT和YF可以访问Client1,但CW不能访问Client1;
6.YF和CW只能访问Server1的WWW服务;

项目规划:

分析:
CW
1.YF和CW之间不能互通,但都可以与IT互通;
2.CW不能访问Client1;
3.CW只能访问Server1的WWW服务;
YF
1.YF和CW之间不能互通,但都可以与IT互通;
3.YF只能访问Server1的WWW服务;
IT
1.R1、R2、R3只允许被IT登录管理;
2.IT可以访问Client1;

项目实施:
阶段一:配置基本网络;

R1
sysname R1
interface GigabitEthernet0/0/0
ip address 1.1.1.254 255.255.255.0
interface GigabitEthernet0/0/1
ip address 192.168.12.1 255.255.255.0
interface GigabitEthernet0/0/2
ip address 192.168.13.1 255.255.255.0
quit
R2
sysname R2
interface GigabitEthernet0/0/0
ip address 192.168.12.2 255.255.255.0
interface GigabitEthernet0/0/1
ip address 192.168.10.254 255.255.255.0
interface GigabitEthernet0/0/2
ip address 192.168.20.254 255.255.255.0
quit
R3
sysname R3
interface GigabitEthernet0/0/0
ip address 192.168.13.2 255.255.255.0
interface GigabitEthernet0/0/1
ip address 192.168.30.254 255.255.255.0
interface GigabitEthernet0/0/2
ip address 192.168.40.254 255.255.255.0
quit

   阶段二:配置OSPF;

R1
ospf 1 router-id 1.1.1.1
area 0.0.0.0
network 192.168.12.0 0.0.0.255
network 192.168.13.0 0.0.0.255
area 0.0.0.1
network 1.1.1.0 0.0.0.255
quit
R2
ospf 1 router-id 2.2.2.2
area 0.0.0.0
network 192.168.12.0 0.0.0.255
area 0.0.0.2
network 192.168.10.0 0.0.0.255
network 192.168.20.0 0.0.0.255
stub no-summary
quit
R3
ospf 1 router-id 3.3.3.3
area 0.0.0.0
network 192.168.13.0 0.0.0.255
area 0.0.0.3
network 192.168.30.0 0.0.0.255
network 192.168.40.0 0.0.0.255
stub no-summary
quit
IT
sysname IT
interface GigabitEthernet0/0/0
ip address 192.168.10.1 255.255.255.0
ospf 1
area 0.0.0.2
network 192.168.10.0 0.0.0.255
stub
阶段三:配置ACL,,满足企业需求;
财务部ACL设置
R3
acl number 2000
rule 10 permit source 192.168.10.0 0.0.0.255
user-interface vty 0 4
acl 2000 inbound
authentication-mode password
123
acl name cw
rule 10 deny ip source 192.168.30.0 0.0.0.255 destination 1.1.1.0 0.0.0.255
rule 20 deny ip source 192.168.30.0 0.0.0.255 destination 192.168.20.0 0.0.0.255
rule 30 permit tcp source 192.168.30.0 0.0.0.255 destination 192.168.40.1 0 destination-port eq www
rule 40 deny ip source 192.168.30.0 0.0.0.255 destination 192.168.40.1 0
interface GigabitEthernet0/0/1
traffic-filter inbound acl name cw
研发部ACL设置
R2
acl number 2000
rule 10 permit source 192.168.10.0 0.0.0.255
user-interface vty 0 4
acl 2000 inbound
authentication-mode password
123
acl name yf
rule 10 deny ip source 192.168.20.0 0.0.0.255 destination 192.168.30.0 0.0.0.255
rule 20 permit tcp source 192.168.20.0 0.0.0.255 destination 192.168.40.1 0 destination-port eq www
rule 30 deny ip source 192.168.20.0 0.0.0.255 destination 192.168.40.0 0.0.0.255
interface GigabitEthernet0/0/2
traffic-filter inbound acl 3name yf
IT部ACL设置
R1
acl number 2000
rule 10 permit source 192.168.10.0 0.0.0.255
user-interface vty 0 4
acl 2000 inbound
authentication-mode password
123
acl number 3000
rule 10 permit tcp source 1.1.1.0 0.0.0.255 destination 192.168.40.0 0.0.0.255 destination-port eq www
rule 20 deny ip source 1.1.1.0 0.0.0.255 destination 192.168.40.1 0
interface GigabitEthernet0/0/1
traffic-filter inbound acl 3000

    项目验证:
    验证一:在CW网络进行验证,如下
    财务可以访问server1服务器的web服务

华为OSPF与ACL综合应用实例讲解
但无法ping通server1服务器
华为OSPF与ACL综合应用实例讲解

验证二:在YF网络进行验证,如下

研发可以访问server1的web服务
华为OSPF与ACL综合应用实例讲解
但无法ping通server1服务器
华为OSPF与ACL综合应用实例讲解

验证三:R1、R2、R3只允许被IT登录管理,如下

IT可以登录R2:
华为OSPF与ACL综合应用实例讲解
R1不可以登陆R2:
华为OSPF与ACL综合应用实例讲解

所以项目要求验证成功。。。。。。

        项目总结:
                    1.项目在配置ospf时一定要注意特殊区域的配置要完整;
                    2.在配置acl时要主要序列号和源、目标ip地址配置正确。

相关内容

热门资讯

助农瓜香暖人心 央企担当送清凉 7月18日,中铁中产置业有限公司赴开封市尉氏县采购11000余斤西瓜,以实际行动助力农户增收。这批西...
88岁母亲被77万条未读信息“... 王勋和女儿帮母亲清理手机里的信息 | 央视截屏王勋走进母亲所住的养老院房间,此起彼伏的手机提示音不间...
美媒爆料:特朗普批准美国与沙特... 据凤凰卫视援引美国媒体报道,特朗普政府计划向国会提交一项美国和沙特阿拉伯共享核电技术的协议,协议将允...
中国游客印尼亲历沉船事故:漂流... 近日,刘女士向红星新闻记者反映,7月16日,其在印尼乘坐游轮旅行时,遇到了沉船事故,其与其他游客及船...
女子付款2分钟后申请退票,34... 暑假是出行高峰期,不少在外务工的家长会购飞机票接子女阖家团聚。云南籍的胡女士说,7月19日11点左右...
特朗普扬言要打掉的“镐山”是什... 美伊两国在霍尔木兹海峡持续交锋之际,美国总统特朗普多次放出狠话,威胁轰炸伊朗一处山体深处的在建核设施...
台湾将进行“汉光42号演习”,... 7月22日,国务院台湾事务办公室举行例行新闻发布会,发言人张晗就近期两岸热点问题回答记者提问。有记者...
油烟机单电机更换方法 油烟机是我们家庭生活中不可缺少的厨房电器,它可以有效地排除厨房中产生的油烟和异味。但是,油烟机经常使...
洗衣机波轮轴如何检修 洗衣机的波轮轴是洗衣机的重要组成部分,它是帮助洗衣机完成洗涤功能的核心部分。波轮轴一旦出现故障,将会...
空调开机跳闸原因检修方法 空调一开机就跳闸,常见的原因就是空调内部漏电造成短路了,这时开启空调后电闸就会迅速跳闸,起到保护家里...