IA综合练习
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/cee7d4fc0021635c43abeca14b2e5d15.png)
第一步:按照图中(已经划分完成)配置IP地址
第二步:router123456,在指定area完成宣告
保证更新安全
在各个区域下输入authentication-mode simple cipher 123
进行明文加密
加快收敛速度
在各个接口视图下输入
[r1-GigabitEthernet0/0/0]ospf timer hello 5
[r1-GigabitEthernet0/0/0]ospf timer dead 20
干涉选举
按照要求,分别在R234的G0/0/0接口输入ospf dr-priority 0
第三步:自动获取IP地址
创建虚拟接口
创建地址池
DHCP池调用
内网访问外网
因为内网上面没有外网的路由地址,所以首先在R4上面下放一条缺省,再写一条11.1.1.0/24的静态路由,再写一条acl,把内网的IP地址转化为公网的IP地址
[r4]ospf 1
[r4-ospf-1]default-route-advertise always
[r4]ip route-static 11.1.1.0 24 10.1.1.2
[r1]acl 2000
[r1-acl-basic-2000]rule permit source 192.168.0.0 0.0.255.255
[r1-acl-basic-2000]rule permit source 172.16.1.0 0.0.0.255
acl
远程登录
[r4]aaa
[r4-aaa]local-user xx privilege level 15 password cipher 123
Info: Add a new user.
[r4]user-interface vty 0 4(同时5台设备访问)
[r4-ui-vty0-4]authentication-mode password
Please configure the login password (maximum length 16):123
调⽤
[r4-aaa]local-user xx service-type telnet
[r4]user-interface vty 0 4
[r4-ui-vty0-4]authentication-mode aaa
禁止 PC4远程登陆
[r6]acl 3000
[r6-acl-adv-3000]rule deny tcp source 192.168.3.254 0.0.0.0 destination 172.16.1.2 0.0.0.0
destination-port eq 23(telnet)
[r6]interface g0/0/0
[r6-GigabitEthernet0/0/0]traffic-filter inbound acl 3000
限制pc5去pc3的流量
[r6]acl 3000
[r6-acl-adv-3000]rule deny icmp source 192.168.4.254 0.0.0.0 destination 192.168.2.254
0.0.0.0 icmp-type echo