实验报告单

  1. 先对各路由器配置其接口IP地址,再对其环回接口配置ip地址
  2. [R1]int g0/0/0
  3. [R1]ip add 192.168.1.1 30
  4. [R1]int loopback 0
  5. [R1]ip add 192.168.1.33 28
  6. [R1]int loopback 1
  7. [R1]ip add 192.168.1.49 28
  8. 将ip地址配置完成后,接下来进行下一步使pc自动获取ip地址
  • 【R3】dhcp enable
  • 【R3】IP pool a
  • 【R3-ip- pool-1】network 192.168.1.96 mask 27
  • 【R3-ip- pool-1】gateway-list 192.168.1.97
  • 【R3-ip- pool-1】dns-list 8.8.8.8 114.114.114.114
  • 【R3】int g0/0/2
  • 【R3】dhcp select global
  • 此时打开pc端,即可获取其ip地址

  • 下一步,寻找最短路径,并开始联通全网
  • 【R1】IP route-static 192.168.1.64 27 192.168.1.2
  • 以此类推,将路径全部划分出来

  1. 配置完路径后,进行Ping通操作
  2. 此时,R1与R5之间已经相互ping通
  3. 再对路由器进行防环配置
  4. [R1]IP route-static 192.168.1.32 27 null 0
  5. [R2]ip route-static 192.168.1.64 27 null 0
  6. [R4]ip route-static 192.168.1.128 27 null 0
  • 此时使R1到R5访问R6,需要配置缺省路由
  • 【R1】IP route-static 0.0.0.0 0 192.168.1.2
  • 【R1】IP route-static 0.0.0.0 0 192.168.1.6
  • 【R2】IP route-static 0.0.0.0 0 192.168.1.10
  • 【R3】IP route-static 0.0.0.0 0 192.168.1.14
  • 【R4】IP route-static 0.0.0.0 0 192.168.1.18
  • 【R4】IP route-static 0.0.0.0 0 192.168.1.22
  • 【R5】IP route-static 0.0.0.0 0 12.0.0.2
  1. 接下来在R5上面配置nat
  2. 【R5】acl 2000
  3. 【R5-acl-basic-2000】rule permit source 192.168.1.0 0.0.0.255
  4. 【R5-acl-basic-2000】int g0/0/1
  5. nat outbound 2000
  6. ping通12.0.0.2

  • 接下来在r1上配置telnet服务
  • [R1]aaa
  • [R1-aaa]local-user wangdaye privilege level 15 password cipher wdy12345
  • [R1-aaa]local-user wangdaye service-type telnet
  • [R1-aaa]user-interface vty 0 4
  • [R1-ui-vty0-4]authentication-mode aaa
  • 然后在R5上远程协议
  • [R5]int g0/0/1
    [R5-GigabitEthernet0/0/1]nat server protocol tcp global current-interface 23 ins
    ide 192.168.1.1 23
  • 接着在R6上进行远程登陆
  • [R6]telnet 12.0.0.1
  • 登录成功即可

    1.接下来通过改变优先级从来改变路径

[R4]ip route-static 0.0.0.00 0 192.168.1.22 preference 61

[R5]ip route-static 192.168.1.0 255.255.255.252 192.168.1.21 preference 61
Info: Succeeded in modifying route.
[R5]ip route-static 192.168.1.4 255.255.255.252 192.168.1.21 preference 61
Info: Succeeded in modifying route.
[R5]ip route-static 192.168.1.8 255.255.255.252 192.168.1.21 preference 61
Info: Succeeded in modifying route.
[R5]ip route-static 192.168.1.12 255.255.255.252 192.168.1.21 preference 61
Info: Succeeded in modifying route.
[R5]ip route-static 192.168.1.32 255.255.255.224 192.168.1.21 preference 61
Info: Succeeded in modifying route.
[R5]ip route-static 192.168.1.64 255.255.255.224 192.168.1.21 preference 61
Info: Succeeded in modifying route.
[R5]ip route-static 192.168.1.96 255.255.255.224 192.168.1.21 preference 61
Info: Succeeded in modifying route.
[R5]ip route-static 192.168.1.128 255.255.255.224 192.168.1.21 preference 61
Info: Succeeded in modifying route.

再进行追踪路径

实验成功

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值