作业要求
1.规划IP地址
给r1.r2.r3.r4改名字防止混乱
r1---pc1 r2---pc2 r3---r1 r4---r2
在r1.r2。pc1.pc2写IP地址
2.把r2的路由表配完
3.由于pc1.pc2都是由两台路由器模拟成,所以网关是在两台路由器上设置缺省路由,下一跳就是网关地址
4.完成后全网可达
5.pc1不能Ping r1 但是可以远程登陆r1
pc1不能远程登录r2 但是可以ping r2
不能Ping r1指令:
[r1]aaa
[r1-aaa]local-user gmy privilege level 15 password cipher 123456
Info: Add a new user
[r1-aaa]q
[r1]user-interface vty 0 4------虚拟接口
[r1-ui-vty0-4]authentication-mode aaa-------调用(认证模式)---------------开启远程登陆
[r1]acl 3001
[r1-acl-adv-3001]rule deny icmp source 192.168.1.2 0 destination 192.168.1.1 0
[r1-acl-adv-3001]q
[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]traffic-filter inbound acl 3001
不能远程登录r2:
[r1]aaa
[r1-aaa]local-user gmy privilege level 15 password cipher 123456
Info: Add a new user
[r1-aaa]q
[r1]user-interface vty 0 4------虚拟接口
[r1-ui-vty0-4]authentication-mode aaa-------调用(认证模式)---------------开启远程登陆
[r1]acl 3000
[r1-acl-adv-3000]rule deny icmp source 192.168.1.2 0 destination 192.168.2.2 0
[r1-acl-adv-3000]q
[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]traffic-filter inbound acl 3000
对pc2的要求同理
实验完成