网络设备配置实训报告(6)

2020-02-22 13:52

R2(config-if)# R2>en Password: Password: R2#conf t

Enter configuration commands, one per line. End with CNTL/Z. R2(config)# ip access

R2(config)# ip access-list stand

R2(config)# ip access-list standard Task-4 R2(config-std-nacl)#per

R2(config-std-nacl)#permit 10.2.2.0 0.0.0.3 R2(config-std-nacl)# per

R2(config-std-nacl)# permit 192.168.30.0 0.0.0.255 R2(config-std-nacl)# exit

Router(config)# host

Router(config)# hostname R3 R3(config)# iinterfa

R3(config)# iinterfafa0/0 R3(config)# ip addr

R3(config)# interfa fa0/0 R3(config-if)# ip addr

R3(config-if)# ip address 192.168.30.1 255.255.255.0 R3(config-if)# no shu

R3(config-if)# no shutdown

R3(config-if)# exit

R3(config)# interface s0/0/1 R3(config-if)# ip addr

R3(config-if)# ip address 10.2.2.2 255.255.255.252 R3(config-if)# no shu

R3(config-if)# no shutdown

R3> en R3# conf t

Enter configuration commands, one per line. End with CNTL/Z. R3(config)# rou

R3(config)# router os R3(config)# router ospf 1 R3(config-router)# exit R3(config)# enab

R3(config)# enable consol R3(config)# enable consol0 ^

% Invalid input detected at '^' marker.

R3(config)# enable consol R3(config)# enable con R3(config)# enable sec

R3(config)# enable secret class R3(config)# line con

R3(config)# line console 0 R3(config-line)# passw

R3(config-line)# password cisco R3(config-line)# login

R3(config-line)# line vty 0 15 R3(config-line)# passw

R3(config-line)# password cisco R3(config-line)# login R3(config-line)# exit

R3(config)# no ip domain-lookup R3(config)#interface s0/0/1 R3(config-if)# clock R3(config-if)# clock

R3(config-if)# clock rate 64000

This command applies only to DCE interfaces R3(config-if)#

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/1, changed state to up

R3(config-if)# R3(config-if)# exit R3(config)# ip access

R3(config)# ip access-list stand

R3(config)# ip access-list standard std-1

R3(config-std-nacl)# deny 192.168.11.0 0.0.0.255 R3(config-std-nacl)# per

R3(config-std-nacl)# permit any R3(config-std-nacl)# exit R3(config)# interf

R3(config)# interface s0/0/1 R3(config-if)# ip access

R3(config-if)# ip access-group std-1 in R3(config-if)# exit R3(config)# interf

R3(config)# interface s0/0/1 R3(config-if)# no ip acce

R3(config-if)# no ip access-group std-1 in R3(config-if)# ip access

R3(config-if)# ip access-group std-1 % Incomplete command.

R3(config-if)# ip access-group std-1 out R3(config-if)# R3(config-if)#exit

R3(config)# interface s0/0/1 R3(config-if)# no ip access

R3(config-if)# no ip access-group std-1 % Incomplete command. R3(config-if)# out ^

% Invalid input detected at '^' marker.

R3(config-if)# no ip access-group std-1 out R3(config-if)# ip access

R3(config-if)# ip access-group std-1 in R3(config-if)#

Switch> Switch>en Switch# conf t

Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# hos

Switch(config)# hostname S1 S1(config)# interface vlan 1 S1(config-if)# ip addr

S1(config-if)# ip address 192.168.10.2 255.255.255.0 S1(config-if)# no shu

S1(config-if)# no shutdown

S1(config-if)#

S1(config-if)# S1(config-if)# exit S1(config)# inter S1(config)# ip de

S1(config)# ip default-gateway 192.168.10.1 S1(config)#

Switch> en Switch# conf t

Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# inter

Switch(config)# interface vlan 1 Switch(config-if)# ip addr

Switch(config-if)# ip address 192.168.11.2 255.255.255.0 Switch(config-if)# no shu

Switch(config-if)# no shutdown

Switch(config-if)# Switch(config-if)# Switch(config-if)# exit Switch(config)# ip de

Switch(config)# ip default-gateway 192.168.11.1 Switch(config)# end

Switch> en Switch# conf t

Switch(config)# host

Switch(config)# hostname S3 S3(config)# interface vlan 1 S3(config-if)# ip addr

S3(config-if)# ip address 192.168.30.2 255.255.255.0 S3(config-if)# no shu

S3(config-if)# no shutdown S3(config-if)# S3(config-if)#exit S3(config)# ip de

S3(config)# ip default-gateway 192.168.30.1 S3(config)# end S3#

? 心得体会

限制对路由器 VTY 线路的访问是远程管理的良好做法,ACL 可应用于 VTY 线路,从而限制对特定主机或网络的访问。

实验六 NAT配置实训

? 实验目的

? 掌握NAT相关概念、分类和工作原理 ? 学习配置NAT的命令和步骤 ? 查看NAT转换配置情况 ? 练习配置动态NAT和PAT

? 实验过程及主要步骤

1.单个路由器的基本配置清单

路由器A为例:

A(config)#interface FastEthernet0/0

A(config-if)#ip address 192.168.1.1 255.255.255.0 A(config-if)#no shutdown

A(config)#interface Serial2/0

A(config-if)#ip address 202.196.32.1 255.255.255.252 A(config-if)#clock rate 64000 A(config-if)#no shutdown

WWW服务器:

PC机:


网络设备配置实训报告(6).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:蜡烛的变化

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: