[HCIA]综合

这篇博客详细介绍了网络设备的配置过程,包括OSPF路由表的设置,自动获取IP地址的配置,以及接口的VLAN划分。此外,还涉及到ACL规则的应用,用于限制特定TCP流量和ICMP流量,以提高网络安全性。同时,针对路由器的登录权限和收敛速度进行了优化,通过调整OSPF定时器减少路由更新间隔。最后,博客提到了一些可能遇到的问题,如无法登录路由器和清除PC流量。
摘要由CSDN通过智能技术生成

 ospf路由表

 

自动获取IP地址

[r4]interface g0/0/1.1
[r4-GigabitEthernet0/0/1.1]ip ad    
[r4-GigabitEthernet0/0/1.1]ip address 192.168.3.1 24
[r4-GigabitEthernet0/0/1.1]dot1q termination vid 20

[r4]inte

[r6]acl 3000
[r6-acl-adv-3000]rul    
[r6-acl-adv-3000]rule d    
[r6-acl-adv-3000]rule deny tcp sou    
[r6-acl-adv-3000]rule deny tcp source 192.168.3.2 0.0.0.0 de    
[r6-acl-adv-3000]rule deny tcp source 172.168.65.1 0.0.0.0 destination 192.
168.3.2 0.0.0.0 de    
[r6-acl-adv-3000]rule deny tcp source 172.168.65.1 0.0.0.0 destination 192.168.3
.2 0.0.0.0 destination-port eq 23
rface g0/0/1.2
[r4-GigabitEthernet0/0/1.2]ip ad    
[r4-GigabitEthernet0/0/1.2]ip address 192.168.4.1 24  
[r4-GigabitEthernet0/0/1.2]dot1q termination vid 30
Nov 28 2022 17:47:55-08:00 r4 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1.2 has entered the UP state.    
[r4-GigabitEthernet0/0/1.2]quit   
[r4]ip pool 1   
[r4-ip-pool-1]network 192.168.3.0 mask 24
[r4-ip-pool-1]gat    
[r4-ip-pool-1]gateway-list 192.168.3.1
[r4-ip-pool-1]dn    
[r4-ip-pool-1]dns-list 8.8.8.8  
[r4-ip-pool-1]quit    
[r4]interface g0/0/1.1   
[r4-GigabitEthernet0/0/1.1]dhcp select global 

  
[r4]ip pool 2
Info: It's successful to create an IP address pool. 
[r4-ip-pool-2]network 192.168.4.0 mask 24
[r4-ip-pool-2]gat    
[r4-ip-pool-2]gateway-list 192.168.4.1   
[r4-ip-pool-2]dns-list 8.8.8.8   
[r4-ip-pool-2]quit     
[r4]interface g0/0/1.2  
[r4-GigabitEthernet0/0/1.2]dhcp select global 
[r4-GigabitEthernet0/0/1.2]qu    
[r4-GigabitEthernet0/0/1.2]quit 


 

r1为DR,没有BDR 

 

加快收敛速度

   
[r6-GigabitEthernet0/0/1]ospf timer hello 5
    
[r6-GigabitEthernet0/0/1]ospf timer dead 20

运营商只配IP地址 

登录

[r4]aaa
[r4-aaa]local-user 1 privilege level 15 password cipher 123
Info: Add a new user.  
[r4-aaa]local-user 1 service-type telnet   
[r4-aaa]qu    
[r4-aaa]quit 
[r4]user-interface vty 0 4    
[r4-ui-vty0-4]authentication-mode aaa

消除pc5过去的流量,ping不通pc3

[r4]acl 3000  
[r4-acl-adv-3000]rule deny icmp source 192.168.3.2 0.0.0.0 destination 192.168.2
.2 0.0.0.0 icmp-type echo-reply 

不能能登陆r6

[r6]acl 3000   
[r6-acl-adv-3000]rule deny tcp source 172.168.65.1 0.0.0.0 destination 192.168.3
.2 0.0.0.0 destination-port eq 23
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值