华为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月21日,浙江温州瑞安市,多名网友发布视频称,一建材市场起火,多名消防员在现场用水枪喷射明火。网络...
中使馆回应多位公民在沙特被捕 近期,发生数起中国公民因违反沙特相关法律法规,被沙有关部门拘捕、判刑或驱逐出境的案件。驻沙特使馆提醒...
救护车违反调度将患者送自家私立... 澎湃新闻记者 陈绪厚 实习生 王肖丝雨因认为医院在接诊环节、临床救治等过程存在诸多问题,患者家属吴女...
北京通用人工智能研究院院长朱松... IT之家 7 月 22 日消息,据央视财经 20 日报道,北京通用人工智能研究院院长、北京大学智能学...
算力超节点带火液冷 浸没式液冷... □ 华为、中兴通讯、新华三、浪潮信息等企业近期纷纷推出最新的超节点产品。记者调研发现,超节点中的热管...
物联网卡选的好,用起来才会没烦... 不少人挑物联网卡总盯着“低价大流量”的标签下手,结果用不了半个月就开始踩坑:刚插上没几天就莫名锁卡,...
AI 智能硬件大爆发,你会为哪... 营客通获悉,2026年7月17日至20日,第九届世界人工智能大会(WAIC 2026)在上海世博展览...
“造价超945万的教学楼多年未... 针对备受关注的甘肃正宁县月明九年制学校教学楼“八年未建成”事件,当地调查结果于7月21日正式公布。联...
潍坊市计量院主导制订的国家计量... 齐鲁晚报·齐鲁壹点 潘英杰 近日,国家市场监督管理总局发布公告,潍坊市计量院主导制订的JJF 242...
活力中国调研行|像造汽车一样造... 【大河财立方 记者 王鑫 无锡报道】机器人不仅在这里“上学”,还要“考试”。 7月21日,大河财立方...