计算机网络课外实践报告.docx

上传人:b****5 文档编号:6902672 上传时间:2023-01-12 格式:DOCX 页数:12 大小:58.06KB
下载 相关 举报
计算机网络课外实践报告.docx_第1页
第1页 / 共12页
计算机网络课外实践报告.docx_第2页
第2页 / 共12页
计算机网络课外实践报告.docx_第3页
第3页 / 共12页
计算机网络课外实践报告.docx_第4页
第4页 / 共12页
计算机网络课外实践报告.docx_第5页
第5页 / 共12页
点击查看更多>>
下载资源
资源描述

计算机网络课外实践报告.docx

《计算机网络课外实践报告.docx》由会员分享,可在线阅读,更多相关《计算机网络课外实践报告.docx(12页珍藏版)》请在冰豆网上搜索。

计算机网络课外实践报告.docx

计算机网络课外实践报告

计算机网络课外实践报告

 

题目名称:

ACL配置

所在班级:

完成人员:

指导教师:

题目基本信息

题目名称

ACL配置

题目简介

1、根据所给出的拓扑图,完成各设备的配置,实现各Vlan计算机均可以互相访问;

2、配置标准ACL,禁止Vlan10的计算机访问服务器;

3、配置命名的扩展ACL,禁止Vlan12的计算机访问服务器的WWW服务,但可以连通服务器;

一、配置步骤:

1.划分子网;

2.给各个交换机配置,并划分WLAN;

3.给每台主机配置ip和子网掩码;

4.各路由器配置ospf协议和时钟频率;

5.配置标准ACL,禁止Vlan10的计算机访问服务器;

6.配置命名的扩展ACL,禁止Vlan12的计算机访问服务器的WWW服务,但可以连通服务器;

二、各个设备的配置文件(running-config)

给二层交换机s0命名并进行WLAN划分

Switch>en

Switch#confter

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

Switch(config)#hostnames0

s0(config)#exit

s0(config)#vlan10

s0(config-vlan)#exit

s0(config)#vlan20

s0(config-vlan)#exit

s0(config)#vlan30

s0(config-vlan)#exit

s0(config)#interfacef0/1

s0(config-if)#switchportaccessvlan10

s0(config-if)#exit

s0(config)#interfacef0/2

s0(config-if)#switchportaccessvlan20

s0(config-if)#exit

s0(config)#interfacef0/3

s0(config-if)#switchportaccessvlan30

s0(config-if)#exit

s0(config)#interfacef0/4

s0(config-if)#switchportmodetrunk

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet3/1,changedstatetodown

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet3/1,changedstatetoup

s0(config-if)#end

s0#

%SYS-5-CONFIG_I:

Configuredfromconsolebyconsole

给二层交换机s1命名并设置接口为Trunk模式:

Switch>en

Switch#confter

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

Switch(config)#hostnames1

s1(config)#interfacef0/1

s1(config-if)#switchportmodetrunk

s1(config-if)#exit

s1(config)#interfacef1/1

s1(config-if)#switchportmodetrunk

s1(config-if)#exit

s1(config)#interfacef2/1

s1(config-if)#switchportmodetrunk

s1(config-if)#exit

s1(config)#

给二层交换机s2命名并惊醒WLAN划分:

Switch>en

Switch#confter

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

Switch(config)#hostnames2

s2(config)#vlan10

s2(config-vlan)#exit

s2(config)#vlan20

s2(config-vlan)#exit

s2(config)#vlan30

s2(config-vlan)#exit

s2(config)#interfacef0/3

s2(config-if)#switchportaccessvlan10

s2(config-if)#exit

s2(config)#interfacef0/4

s2(config-if)#switchportaccessvlan20

s2(config-if)#exit

s2(config)#interfacef0/5

s2(config-if)#switchportaccessvlan30

s2(config-if)#exit

s2(config)#interfacef0/1

s2(config-if)#switchportmodetrunk

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet3/1,changedstatetodown

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet3/1,changedstatetoup

s2(config-if)#end

s2#

%SYS-5-CONFIG_I:

Configuredfromconsolebyconsole

给二层交换机s3命名并进行WLAN划分:

Switch>en

Switch#confter

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

Switch(config)#hostnames3

s3(config)#vlan11

s3(config-vlan)#exit

s3(config)#vlan12

s3(config-vlan)#exit

s3(config)#vlan13

s3(config-vlan)#exit

s3(config)#interfacef0/1

s3(config-if)#switchportaccessvlan11

s3(config-if)#exit

s3(config)#interfacef0/2

s3(config-if)#switchportaccessvlan12

s3(config-if)#exit

s3(config)#interfacef0/3

s3(config-if)#switchportaccessvlan13

s3(config-if)#exit

s3(config)#interfacef0/24

s3(config-if)#switchportmodetrunk

s3(config-if)#exit

s3(config)#

路由器r0设置为单臂路由,进行时钟配置和OSPF协议配置,并对不同WLAN进行IP设置:

r0>en

r0#confter

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

r0(config)#interfacef0/0

r0(config-if)#noipaddress

r0(config-if)#exit

r0(config)#interfacef0/0.10

%LINK-5-CHANGED:

InterfaceFastEthernet0/0.10,changedstatetoup

r0(config-subif)#

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/0.10,changedstatetoup

r0(config-subif)#encapsulationdot1q10

r0(config-subif)#ipaddress192.168.1.254255.255.255.0

r0(config-subif)#noshutdown

r0(config-subif)#exit

r0(config)#interfacef0/0.20

%LINK-5-CHANGED:

InterfaceFastEthernet0/0.20,changedstatetoup

r0(config-subif)#

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/0.20,changedstatetoup

r0(config-subif)#encapsulationdot1q20

r0(config-subif)#ipaddress192.168.2.254255.255.255.0

r0(config-subif)#noshutdown

r0(config-subif)#exit

r0(config)#interfacef0/0.30

%LINK-5-CHANGED:

InterfaceFastEthernet0/0.30,changedstatetoup

r0(config-subif)#

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/0.30,changedstatetoup

r0(config-subif)#encapsulationdot1q30

r0(config-subif)#ipaddress192.168.3.254255.255.255.0

r0(config-subif)#noshutdown

r0(config-subif)#exit

r0(config)#interfacef0/0

r0(config-if)#noshutdown

r0(config-if)#exit

r0(config)#

Router>en

Router#confter

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

Router(config)#hostnamer0

r0(config)#interfaces1/0

r0(config-if)#clockrate64000

r0(config-if)#ipaddress202.196.1.1255.255.255.0

r0(config-if)#noshutdown

%LINK-5-CHANGED:

InterfaceSerial1/0,changedstatetodown

r0(config-if)#exit

r0(config)#interfaces1/1

r0(config-if)#ipaddress202.196.4.2255.255.255.0

r0(config-if)#noshutdown

%LINK-5-CHANGED:

InterfaceSerial1/1,changedstatetodown

r0(config-if)#exit

r0(config)#routerospf1

r0(config-router)#network192.168.1.00.0.0.255area0

r0(config-router)#network192.168.2.00.0.0.255area0

r0(config-router)#network192.168.3.00.0.0.255area0

r0(config-router)#network202.196.4.00.0.0.255area0

r0(config-router)#network202.196.1.00.0.0.255area0

r0(config-router)#end

r0#

%SYS-5-CONFIG_I:

Configuredfromconsolebyconsole

路由器r1命名、时钟配置和OSPF配置:

Router>en

Router#confter

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

Router(config)#hostnamer1

r1(config)#interfaces1/0

r1(config-if)#ipaddress202.196.1.2255.255.255.0

r1(config-if)#noshutdown

%LINK-5-CHANGED:

InterfaceSerial1/0,changedstatetoup

r1(config-if)#exit

r1(config)#

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceSerial1/0,changedstatetoup

r1(config)#interfaces1/1

r1(config-if)#clockrate64000

r1(config-if)#ipaddress202.196.2.1255.255.255.0

r1(config-if)#noshutdown

%LINK-5-CHANGED:

InterfaceSerial1/1,changedstatetodown

r1(config-if)#exit

r1(config)#routerospf1

r1(config-router)#network202.196.1.00.0.0.255area0

r1(config-router)#network202.196.2.00.0.0.255area0

r1(config-router)#end

r1#

%SYS-5-CONFIG_I:

Configuredfromconsolebyconsole、

路由器r2命名、时钟配置和OSPF配置:

Router>en

Router#confter

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

Router(config)#hostnamer2

r2(config)#interfacef0/0

r2(config-if)#ipaddress202.196.7.6255.255.255.0

r2(config-if)#noshutdown

%LINK-5-CHANGED:

InterfaceFastEthernet0/0,changedstatetoup

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/0,changedstatetoup

r2(config-if)#exit

r2(config)#interfaces1/0

r2(config-if)#ipaddress202.196.3.2255.255.255.0

r2(config-if)#noshutdown

%LINK-5-CHANGED:

InterfaceSerial1/0,changedstatetoup

r2(config-if)#exit

r2(config)#

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceSerial1/0,changedstatetoup

r2(config)#interfaces1/1

r2(config-if)#clockrate64000

r2(config-if)#ipaddress202.196.4.1255.255.255.0

r2(config-if)#noshutdown

%LINK-5-CHANGED:

InterfaceSerial1/1,changedstatetoup

r2(config-if)#exit

r2(config)#routerospf1

r2(config-router)#network202.196.3.00.0.0.255area0

r2(config-router)#network202.196.4.00.0.0.255area0

r2(config-router)#network202.196.7.00.0.0.255area0

r2(config-router)#end

r2#

%SYS-5-CONFIG_I:

Configuredfromconsolebyconsole

 

r2#en

r2#confter

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

r2(config)#access-list1deny192.168.1.00.0.0.255

r2(config)#access-list1permit192.168.2.00.0.0.255

r2(config)#access-list1permit192.168.3.00.0.0.255

r2(config)#access-list1permit192.168.4.00.0.0.255

r2(config)#access-list1permit192.168.5.00.0.0.255

r2(config)#access-list1permit192.168.6.00.0.0.255

r2(config)#intf0/0

r2(config-if)#ipaccess-group1out

r2(config-if)#end

r2#

%SYS-5-CONFIG_I:

Configuredfromconsolebyconsole

r2#shaccess-lists1

StandardIPaccesslist1

deny192.168.1.00.0.0.255

permit192.168.2.00.0.0.255

permit192.168.3.00.0.0.255

permit192.168.4.00.0.0.255

permit192.168.5.00.0.0.255

permit192.168.6.00.0.0.255

r2#

 

r2#confter

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

r2(config)#ipaccess-listextendv12

r2(config-ext-nacl)#denytcphost192.168.5.1host202.196.7.6eqwww

r2(config-ext-nacl)#denyip192.168.1.00.0.0.255202.196.7.60.0.0

r2(config-ext-nacl)#permittcpanyanyeqwww

r2(config-ext-nacl)#permitipanyany

r2(config-ext-nacl)#intf0/0

r2(config-if)#ipaccess-groupv12out

r2(config-if)#

路由器r3命名、单臂路由配置、时钟配置、OSPF配置:

r3>en

r3#confter

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

r3(config)#interfacef0/0.11

%LINK-5-CHANGED:

InterfaceFastEthernet0/0.11,changedstatetoup

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/0.11,changedstatetoup

r3(config-subif)#encapsulationdot1q11

r3(config-subif)#ipaddress192.168.4.254255.255.255.0

r3(config-subif)#noshutdown

r3(config-subif)#exit

r3(config)#interfacef0/0.12

%LINK-5-CHANGED:

InterfaceFastEthernet0/0.12,changedstatetoup

r3(config-subif)#encapsulationdot1q12

r3(config-subif)#ipaddress192.168.5.254255.255.255.0

r3(config-subif)#noshutdown

r3(config-subif)#exit

r3(config)#interfacef0/0.13

%LINK-5-CHANGED:

InterfaceFastEthernet0/0.13,changedstatetoup

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/0.13,changedstatetoup

r3(config-subif)#encapsulationdot1q13

r3(config-subif)#ipaddress192.168.6.254255.255.255.0

r3(config-subif)#noshutdown

r3(config-subif)#exit

r3(config)#interfacef0/0

r3(config-if)#noshutdown

r3(config-if)#exit

 

r3(config)#

Router>en

Router#confter

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

Router(config)#hostnamer3

r3(config)#interfaces1/1

r3(config-if)#clock

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 法律文书 > 调解书

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1