您的当前位置:首页正文

实验CISCO

2023-07-21 来源:好走旅游网
实验CISCO 难度3 难度5

10分 1、2、3、4、5 15分 15分 6、6、8、9、10 11、12、13、14、15 · 一、请按要求完成静态、默认路由的相关配置(难度等级1)。

依照下图所示(以下的设备均为CISCO设备),完成静态路由的相关配置。

实验要求:

1、配置路由器R1、R2和R3的网络接口地址,地址分配如下表所示: 设备 R1 R1 R2 R2 R2 R3 R3 PC1 PC2 PC3 接口 Fa0/0 S1/0 Fa0/0 S1/0 S1/1 Fa0/0 S1/1 网卡 网卡 网卡 IP 地址 172.16.3.1 172.16.2.1 172.16.1.1 172.16.2.2 192.168.1.2 192.168.2.1 192.168.1.1 172.16.3.11 172.16.1.11 192.168.2.11 子网掩码 255.255.255.0 255.255.255.0 255.255.255.0 255.255.255.0 255.255.255.0 255.255.255.0 255.255.255.0 255.255.255.0 255.255.255.0 255.255.255.0 网关 不适用 不适用 不适用 不适用 不适用 不适用 不适用 172.16.3.1 172.16.1.1 192.168.2.1 备注 已完成配置 已完成配置 已完成配置 2、配置静态路由及默认路由。 3、实现全网互通,并储存配置。 得分点: 操作内容 配置各接口地址 静态路由配置 默认路由配置 答案: R1配置:

Router>en Router>enable Router#conf

Router#configure t

Router#configure terminal Router(config)#host

Router(config)#hostname R1

Router(config)#hostname R1 命名 R1(config)#no ip domain-lookup 容错 R1(config)#line con 0 进入consol R1(config-line)#logging syn 日志同步 R1(config-line)#exec-timeout 0 延时为0 R1(config)#interface s1/0 进入串口

R1(config-line)#description linkto R2-s1/0 说明路径 R1(config-if)#no shutdown 打开端口

分数10 关键字 3 3 3 ip add ip route 172.16.3.0 255.255.255.0 172.16.2.1 ip route 192.168.2.0 255.255.255.0 192.168.1.1 ip route 0.0.0.0 255.255.255.0 192.168.1.2 !

interface fa0/0

ip address 172.16.3.1 255.255.255.0 no shutdown !

interface s1/0

ip address 172.16.2.1 255.255.255.0 clock rate 64000 no shutdown !

ip route 0.0.0.0 255.255.255.0 172.16.2.2

!

R2配置:

!

interface fa0/0

ip address 172.16.1.1 255.255.255.0 no shutdown !

interface s1/0

ip address 172.16.2.2 255.255.255.0 clock rate 64000 no shutdown !

interface s1/1

ip address 192.168.1.2 255.255.255.0 clock rate 64000 no shutdown !

ip route 172.16.3.0 255.255.255.0 172.16.2.1 ip route 192.168.2.0 255.255.255.0 192.168.1.1 !

R3配置:

!

interface fa0/0

ip address 192.168.2.1 255.255.255.0 no shutdown !

interface s1/1

ip address 192.168.1.1 255.255.255.0 no shutdown !

ip route 0.0.0.0 255.255.255.0 192.168.1.2 !

二、EthernetChannel差不多配置(难度1)

依照下图所示(以下所有设备均为CISCO设备),完成EthernetChannel基础配置。

要求:

1、将两台交换机的F0/2,F0/3绑定一个EthernetChannel,mode为on 状态; 2、验证EthernetChannel配置的正确性。 操作内容 接口配置 接口配置 Port-channel配置 答案:

SW1的配置: !

interface port-channel 1 switchport mode trunk no shut

interface FastEthernet 0/2 channel-group 1 mode on switchport mode trunk no shut

int FastEthernet 0/3

channel-group 1 mode on switchport mode trunk no shut !

SW2的配置: !

interface port-channel 1 switchport mode trunk no shut !

interface FastEthernet 0/2 channel-group 1 mode on switchport mode trunk no shut !

int FastEthernet 0/3

channel-group 1 mode on switchport mode trunk no shut !

分数10 3 3 4 关键字 switchport mode trunk channel-group 1 mode on interface port-channel 1 switchport mode trunk 三、Trunk差不多配置(难度1)

依照下图所示(以下所有设备均为CISCO设备),完成Trunk基础配置。

要求:

1、SW1上分别有VLan10、20,SW2上有VLAN10,PC1/PC3属于VLAN10,PC2属于VLAN20;

2、SW1、SW2之间配置Trunk,实现不同的VlAN相互通信。 操作内容 VLAN 配置 分数10 3 关键字 vlan 10,vlan 20 ; int vlan ip address switchport mode access switchport access vlan 10 interface Fastethernet0/1 switchport trunk encapsulation dot1q switchport mode trunk 互ping VLAN划分 Trunk启用、并保证不同VLAN将的PC互通

答案:

SW1的配置: !

ip routing !

vlan 10

3 4 name jiguan !

vlan 20

name shengchan !

int vlan 10

ip address 192.168.10.1 255.255.255.0 no shut !

nt vlan 20

ip address 192.168.20.1 255.255.255.0 no shut !

interface Fastethernet0/1

switchport trunk encapsulation dot1q 启用1q模式封装 switchport mode trunk 选择路由为trunk模式 no shut

switchport trunk allowed vlan10,20 连通vlan10 20 !

interface Fastethernet0/2

switchport mode access 连接模式 switchport access vlan 10 no shut !

interface Fasetethernet0/3

switchport mode access switchport mode access switchport access vlan 20 no shut !

SW2配置: !

ip routing !

vlan 10 vlan 20 !

interface vlan 10

ip address 192.168.10.2 255.255.255.0 no shut !

interface Fastethernet0/1

switchport trunk encapsulation dot1q

swtichport mode trunk no shut

!

interface Fastethernet0/2 switchport mode access switchport access vlan 10 no shut !

四、CHAP 认证差不多配置(难度1)

要求:

1、使用“username 用户名 password 密码” 命令为对方配置用户名和密码,注意:两方的密码要相同。

2、在路由器R1、R2串口上配置PPP封装,并配置 CHAP身份验证。 3、验证否配置成功。

操作内容 接口 配置 使用用户名密码 在两台设备启用PPP封装,并配置CHAP身份验证 分数10 3 3 4 ip address username XX password cisco interface s0/0 encapsulation ppp ppp authentication chap 关键字

答案: R1的配置

!sh run 查看配置

interface s1/0

ip address 192.168.12.1 255.255.255.252 no shut

!

username R1 password cisco

username cisco password cisco (可不用这句) no ip domain-lookup !

interface s1/0

description linkto R2-s1/0

ip address 192.168.12.1 255.255.255.252 no shut

encapsulation ppp 启用PPP协议

ppp authentication chap 验证PPP命令 !

Line con 0

Exec-timeout 0 0 Password cisco

Login local 本地启用 !

Line vty 0 4 配置过程登陆 Password cisco

Login local 本地启用

R2的配置 !

interface s0/0

ip address 192.168.12.2 255.255.255.252 no shut !

username R2 password cisco !

interface s0/0

encapsulation ppp

ppp authentication chap ! End

路由重启后生效

测试命令: debug ppp authentication

关闭测试命令: no debug ppp authentication

五、EIGRP手工汇总(难度1)

要求:

1、完成拓扑图上所标识接口地址的配置工作,注意子网掩码的划分。 2、路由器R1、R2 和R3 之间运行EIGRP,进程10,关闭自动汇总功能。

3、在路由器R3 上将四个回环地址做手工路由汇总,在R1上查看路由学习情形,并实现全网互通。 操作内容 接口 配置 分数10 3 ip address 关键字 router eigrp 10 network 1.1.1.0 0.0.0.255 network 192.168.12.0 no auto-summary interface Serial0/1 ip summary-address eigrp 10 3.3.0.0 255.255.252.0 5 EIGRP协议的运行 3 在R3上的Serial0/1上做手工汇总 4

答案:

R1的配置: !

interface Loopback0

ip address 1.1.1.1 255.255.255.0 !

interface Serial0/0

ip address 192.168.12.1 255.255.255.0 no shut !

router eigrp 10

network 1.1.1.0 0.0.0.255 network 192.168.12.0 no auto-summary !

R2的配置 !

interface Loopback0

ip address 2.2.2.2 255.255.255.0 !

interface Serial0/0

ip address 192.168.12.2 255.255.255.0 !

interface Serial0/1

ip address 192.168.23.2 255.255.255.0 no shut !

router eigrp 10

network 192.168.12.0 network 192.168.23.0 network 2.2.2.0 0.0.0.255 no auto-summary !

R3的配置: !

interface Loopback0

ip address 3.3.0.3 255.255.255.0 !

interface Loopback1

ip address 3.3.1.3 255.255.255.0 !

interface Loopback2

ip address 3.3.2.3 255.255.255.0 !

interface Loopback3

ip address 3.3.3.3 255.255.255.0 !

interface Serial0/1

ip address 192.168.23.3 255.255.255.0

ip summary-address eigrp 10 3.3.0.0 255.255.252.0 5 no shut !

router eigrp 10

network 192.168.23.0 network 3.3.0.0 0.0.3.255 no auto-summary !

六、RIPv2和OSPF的重分布实验,(难度等级3)。

依照下图所示(以下的设备均为CISCO设备),请进行路由重公布配置;

要求:

1、 每台路由器接口、环回口配置正确的IP地址,地址分配如下表所示: 设备 R1 R1 R1 R2 R2 R2 R3 R3 接口 F0/0 Loopback0 Loopback1 F0/0 F0/1 Loopback0 F0/1 Loopback0 IP 地址 192.168.12.1/24 1.1.1.1/24 1.1.2.1/24 192.168.12.2/24 192.168.23.2/24 2.2.2.2/24 192.168.23.3/24 3.3.3.3/24 备注

2、三台路由器,R1运行RIPV2,R2运行RIPV2和OSPF,R3运行OSPF,进程号100,Area 0。 3、在R2中重分布RIP协议和OSPF协议,查看各自路由表的状态。 4、实现全网互联,并储存配置。 操作内容 接口配置 分数15 3 ip address 关键字 router rip version 2 network 1.0.0.0 network 192.168.12.0 no auto-summary router ospf 100 router-id X.X.X.X //路由器Lop0地址 network 2.2.2.0 0.0.0.255 area 0 network 192.168.23.0 0.0.0.255 area 0 router ospf 100 redistribute rip subnets router rip redistribute ospf 100 metric 3 依照图的提示完成RIP路由协议的运行 4 依照图的提示完成RIP、OSPF路由协议的运行 4 在R2上的上做路由重分布 4 答案: R1配置: !

interface Loopback0

ip address 1.1.1.1 255.255.255.0 !

interface Loopback1

ip address 1.1.2.1 255.255.255.0 !

interface FastEthernet0/0

ip address 192.168.12.1 255.255.255.0 no shut !

router rip version 2

network 1.0.0.0

network 192.168.12.0 no auto-summary !

R2配置: !

interface Loopback0

ip address 2.2.2.2 255.255.255.0 !

interface FastEthernet0/0

ip address 192.168.12.2 255.255.255.0 no shut !

interface FastEthernet0/1

ip address 192.168.23.2 255.255.255.0 no shut !

router ospf 100 router-id 2.2.2.2

redistribute rip subnets

network 2.2.2.0 0.0.0.255 area 0

network 192.168.23.0 0.0.0.255 area 0 !

router rip version 2

redistribute ospf 100 metric 3 network 192.168.12.0 no auto-summary !

R3配置: !

interface Loopback0

ip address 3.3.3.3 255.255.255.0 !

interface FastEthernet0/1

ip address 192.168.23.3 255.255.255.0 no shut !

router ospf 100 router-id 3.3.3.3

network 3.3.3.0 0.0.0.255 area 0

network 192.168.23.0 0.0.0.255 area 0 !

七、PAT配置(难度3)

要求: 1、路由器R1、R2接口s0/0地址分别配置10.10.10.1/10.10.10.2;R1的F0/0配置192.168.1.254/24。 2、把内部地址映射到外部网络的IP 地址的不同端口上,从而能够实现多对一的映射。 3、内网地址为192.168.1.0/24,映射为10.10.10.3,使用相关show 命令检查PAT配置的正确性。 4、两台路由器之间使用RIPv2协议,关闭路由汇总的命令,实现内网PC能ping通R2上的2.2.2.2地址。 操作内容 接口配置 分数15 2 ip address 关键字 3 路由协议配置 router rip version network no auto-summary 配置访问操纵列表 配置NAT地址池 3 4 access-list 1 permi p nat pool NAT 10.10.10.3 10.10.10.3 netmask 255.255.255.0 ip nat inside source list 1 pool NAT overloa 配置NAT地址转换 3 ip nat outside ip nat inside

答案: R1的配置 !

interface s0/0

ip address 10.10.10.1 255.255.255.0 ip nat outside no shut !

ip nat pool NAT 10.10.10.3 10.10.10.3 netmask 255.255.255.0 ip nat inside source list 1 pool NAT overload access-list 1 permit 192.168.1.0 0.0.0.255 !

interface f0/0

ip address 192.168.1. 254 255.255.255.0 ip nat inside interface s0/0 !

router rip version 2

network 10.0.0.0 no auto-summary !

R2的配置: !

interface Loopback0

ip address 2.2.2.2 255.255.255.0 !

interface s0/0

ip address 10.10.10.2 255.255.255.0

no shut

!

router rip version 2

no auto-summary network 10.10.10.0 network 2.0.0.0 !

八、OSPF完全末梢区域(难度3)

依照下图所示(以下所有设备均为CISCO设备),完成OSPF完全末梢区域的配置。

要求:

1、分配为四台路由器配置IP地址、Lop地址,地址分配如下表所示: 设备 R1 R1 R2 R2 R2 R3 R3 R3 R4 R4 接口 S0/0 Lop0 S0/0 S0/1 Lop0 S0/1 S0/0 Lop0 S0/0 Lop0 IP 地址 192.168.12.1/24 1.1.1.1/24 192.168.12.2/24 192.168.23.2/24 2.2.2.2/24 192.168.23.3/24 192.168.34.3/24 3.3.3.3/24 192.168.34.4/24 4.4.4.4 区域 Area 1 Area 1 Area 1 Area 0 Area 0 Area 0 Area 2 Area 2 Area 2 Area 2 2、R1、R2、R3、R4之间运行OSPF协议,进程号100, R1、R2区域Area 1,R2、R位于Area0、R3、R4位于Area 2;

3、按图上的标识,末节区域、完全末节区域的配置;

4、实现全网互通,并在R1、R4上查看路由学习情形,并保证配置; 操作内容 接口配置 路由协议配置 分数15 3 4 ip address router ospf 100 router-id 关键字 network 末节区域 完全末节区域 4 4 router ospf 100 area 1 stub outer ospf 100 area 2 stub

答案: R1配置: !

interface Loopback0

ip address 1.1.1.1 255.255.255.0 !

interface Serial0/0

ip address 192.168.12.1 255.255.255.0 no shut !

router ospf 100 router-id 1.1.1.1 area 1 stub

network 1.1.1.0 0.0.0.255 area 1

network 192.168.12.0 0.0.0.255 area 1 !

R2配置: !

interface Loopback0

ip address 2.2.2.2 255.255.255.0 !

interface Serial0/0

ip address 192.168.12.2 255.255.255.0 no shut !

interface Serial0/1

ip address 192.168.23.2 255.255.255.0 no shut !

router ospf 100 router-id 2.2.2.2 area 1 stub

network 2.2.2.0 0.0.0.255 area 0

network 192.168.23.0 0.0.0.255 area 0 network 192.168.12.0 0.0.0.255 area 1 !

R3的配置 !

interface Loopback0

ip address 3.3.3.3 255.255.255.0 !

interface Serial0/0

ip address 192.168.34.3 255.255.255.0 no shut !

interface Serial0/1

ip address 192.168.23.3 255.255.255.0 no shut !

router ospf 100 router-id 3.3.3.3

area 2 stub no-summary

network 3.3.3.0 0.0.0.255 area 0

network 192.168.23.0 0.0.0.255 area 0 network 192.168.34.0 0.0.0.255 area 2 !

R4配置 !

interface Loopback0

ip address 4.4.4.4 255.255.255.0 !

interface Serial0/0

ip address 192.168.34.4 255.255.255.0 no shut !

router ospf 100 router-id 4.4.4.4 area 2 stub

network 4.4.4.0 0.0.0.255 area 2

network 192.168.34.0 0.0.0.255 area 2!

九、ERIGP及ACL配置实验(难度3)

要求:

1、整个网络配置EIGRP,进程10,关闭自动汇总功能。

2、拒绝PC2 所在网段禁止访问路由器R2,同时只承诺主机PC1 访问路由器R2 的telnet 服务,其他功能正常访问。 操作内容 接口配置 路由协议配置 分数15 3 4 ip address router eigrp 10 关键字 禁止PC2访问路由器R2 4 network access-list 1 deny access-list 1 permit any interface Serial0/0 ip access-group 1 in access-list 2 permit 10.1.1.0 0.0.0.255 line vty 0 4 access-class 2 in 承诺主机PC1 访问路由器R2 的telnet 4

答案:

R1的配置: !

interface FastEthernet0/0

ip address 10.1.1.254 255.255.255.0 no shut !

interface FastEthernet0/1

ip address 172.16.1.254 255.255.255.0 no shut !

interface Serial0/0

ip address 192.168.12.1 255.255.255.252 no shut !

router eigrp 10

network 192.168.12.0 0.0.0.3 network 172.16.1.0 0.0.0.255 network 10.1.1.0 0.0.0.255 no auto-summary !

R2的配置: !

interface Loopback0

ip address 2.2.2.2 255.255.255.0 !

interface Serial0/0

ip address 192.168.12.2 255.255.255.252 no shut

ip access-group 1 in ! !

router eigrp 10

network 2.2.2.0 0.0.0.255 network 192.168.12.0 0.0.0.3 no auto-summary !

access-list 1 deny 172.16.1.0 0.0.0.255 access-list 1 permit any

access-list 2 permit 10.1.1.0 0.0.0.255 !

line vty 0 4

access-class 2 in password cisco login !

十、OSPF多区域配置(难度5)

要求:

1、4个路由器按图上标示的IP地址进行配置,并配置各个环回口地址。

2、4个路由器都配置OSPF路由协议,进程号为100;R1、R2之间为Area1,R2、R3之间为Area 0,R3、R4之间为Area 2。

3、配置时采纳环回接口尽量靠近区域0 的原则。路由器R4 的环回接口不在OSPF 进程中通告,通过重分布的方法进入OSPF 网络。

4、完成以上要求,并查看路由学习情形,了解OSPF不同区域之间的路由学习情形。 操作内容 接口配置 路由协议配置 区域1配置 区域2配置 分数15 3 4 4 4 ip address router ospf 100 关键字 network 1.1.1.0 0.0.0.255 area 1 network 192.168.34.0 0.0.0.255 area 2

答案:

R1的配置: !

interface Loopback0

ip address 1.1.1.1 255.255.255.0 !

interface Serial0/0

ip address 192.168.12.1 255.255.255.0 no shut !

router ospf 100 router-id 1.1.1.1

network 1.1.1.0 0.0.0.255 area 1

network 192.168.12.0 0.0.0.255 area 1 !

R2的配置: !

interface Loopback0

ip address 2.2.2.2 255.255.255.0 !

interface Serial0/0

ip address 192.168.12.2 255.255.255.0 no shut !

interface Serial0/1

ip address 192.168.23.2 255.255.255.0 no shut !

router ospf 100 router-id 2.2.2.2

network 2.2.2.0 0.0.0.255 area 0

network 192.168.23.0 0.0.0.255 area 0 network 192.168.12.0 0.0.0.255 area 1 !

R3的配置: !

interface Loopback0

ip address 3.3.3.3 255.255.255.0 !

interface Serial0/0

ip address 192.168.34.3 255.255.255.0 no shut !

interface Serial0/1

ip address 192.168.23.3 255.255.255.0 no shut !

router ospf 100 router-id 3.3.3.3

network 3.3.3.0 0.0.0.255 area 0

network 192.168.23.0 0.0.0.255 area 0 network 192.168.34.0 0.0.0.255 area 2 !

R4的配置: !

interface Loopback0

ip address 4.4.4.4 255.255.255.0 !

interface Serial0/0

ip address 192.168.34.4 255.255.255.0

no shut !

router ospf 100 router-id 4.4.4.4

redistribute connected subnets

network 192.168.34.0 0.0.0.255 area 2 !

十一、EIGRP 非等价负载均衡实验(难度5)

要求:

1、按图上所标示的接口地址,配置接口IP地址;

2、4台路由器启用EIGRP协议,进程号10,关闭自动汇总功能,保证全网互联; 3、使得R2到R4最优路劲是R1R4,R4到R2实现非等价负责均衡;

4、在R2、R4上使用show ip eigrp topology、show ip route等命令查看路径、路由学习情形。 操作内容 接口配置 路由协议配置 在R4的F0/0接口上修改delay 分数15 3 4 5 3 ip address ospf eigrp 10 network interface FastEthernet0/0 delay 2000 关键字 在R4上使用show ip route Gateway of last resort is not set D 2.2.2.0 [90/2809856] via 192.168.14.1, 00:00:05, FastEthernet0/0 [90/2809856] via 192.168.34.3, 00:00:00, Serial0/0 答案:

R1的配置: !

interface FastEthernet0/0

ip address 192.168.14.1 255.255.255.0 no shut !

interface Serial0/0

ip address 192.168.12.1 255.255.255.0 no shut !

router eigrp 10

network 1.1.1.0 0.0.0.255 network 192.168.12.0 network 192.168.14.0 no auto-summary !

R2的配置: !

interface Loopback0

ip address 2.2.2.2 255.255.255.0 !

interface Serial0/0

ip address 192.168.12.2 255.255.255.0 no shut !

interface Serial0/1

ip address 192.168.23.2 255.255.255.0 no shut !

router eigrp 10

network 192.168.12.0 network 192.168.23.0 network 2.2.2.0 0.0.0.255 no auto-summary !

R3的配置: !

interface Serial0/0

ip address 192.168.34.3 255.255.255.0 no shut !

interface Serial0/1

ip address 192.168.23.3 255.255.255.0 no shut !

router eigrp 10

network 3.3.3.0 0.0.0.255 network 192.168.23.0 network 192.168.34.0 no auto-summary !

R4的配置: !

interface Loopback0

ip address 4.4.4.4 255.255.255.0 !

interface FastEthernet0/0

ip address 192.168.14.4 255.255.255.0 delay 2000 no shut !

interface Serial0/0

ip address 192.168.34.4 255.255.255.0 no shut !

router eigrp 10

network 4.4.4.0 0.0.0.255 network 192.168.14.0 network 192.168.34.0 no auto-summary !

十二、OSPF、链路MD5验证的相关配置(难度5)

依照下图所示(以下所有设备均为CISCO设备),在接口上完成OSPF、MD5协议及验证的配置。

要求:

1、配置路由器R1、R2和R3的网络接口地址,地址分配如图上所示。 2.、在路由器R1、R2和R3上启用OSPF路由,进程号100,Area 0。 3、在路由器R1、R2和R3串口上配置MD5验证。

4、实现全网互通,查看OSPF链路验证是否成功,并储存以上配置。 操作内容 接口配置 路由协议配置 公布路由 链路MD5验证 分数15 3 3 4 5 ip address router ospf 100 network 关键字 ip ospf authentication message-digest ip ospf message-digest-key 1 md5 cisco

答案: R1配置: !

interface Loopback0

ip address 1.1.1.1 255.255.255.0 !

interface Serial0/0

ip address 192.168.12.1 255.255.255.0 ip ospf authentication message-digest ip ospf message-digest-key 1 md5 cisco !

interface Serial0/2

ip address 192.168.13.1 255.255.255.0 ip ospf authentication message-digest ip ospf message-digest-key 1 md5 cisco !

router ospf 100

router-id 1.1.1.1

network 192.168.12.0 0.0.0.255 area 0 network 192.168.13.0 0.0.0.255 area 0 network 1.1.1.0 0.0.0.255 area 0 !

R2配置: !

interface Loopback0

ip address 2.2.2.2 255.255.255.0 !

interface Serial0/0

ip address 192.168.12.2 255.255.255.0 ip ospf authentication message-digest ip ospf message-digest-key 1 md5 cisco !

interface Serial0/1

ip address 192.168.23.2 255.255.255.0 ip ospf authentication message-digest ip ospf message-digest-key 1 md5 cisco !

router ospf 100 router-id 2.2.2.2

network 2.2.2.0 0.0.0.255 area 0

network 192.168.12.0 0.0.0.255 area 0 network 192.168.23.0 0.0.0.255 area 0 !

R3配置: !

interface Loopback0

ip address 3.3.3.3 255.255.255.0 !

interface Serial0/1

ip address 192.168.23.3 255.255.255.0 ip ospf authentication message-digest ip ospf message-digest-key 1 md5 cisco !

interface Serial0/2

ip address 192.168.13.3 255.255.255.0 ip ospf authentication message-digest ip ospf message-digest-key 1 md5 cisco !

router ospf 100 router-id 3.3.3.3

network 3.3.3.0 0.0.0.255 area 0

network 192.168.13.0 0.0.0.255 area 0 network 192.168.23.0 0.0.0.255 area 0 !

十三、路由、交换综合实验(难度5)

依照下图所示(以下所有设备均为CISCO设备),请进行路由、交换综合配置;

要求: 1、VLAN

VTP域名:wljs;在SW1/2交换机上分配配置VLAN2、VLAN3;VTP模式:SW1/2 server,SW3/4 client;交换机之间的线路使用国际标准协议封装;VLAN地址分配如下表所示:

VLAN ID 10 20 IP地址 10.10.10.0 11.11.11.0 子网掩码 255.255.255.0 255.255.255.0 备注 2、STP

SW1 作为VLAN2的主根,SW2作为VLAn2的主根,同时互为备份;交换机SW3/4的连接PC的接口都直截了当进入forwarding状态;

3、SW 1 和SW2连接路由器的接口启用三层特性,SW3/4关闭路由功能;所有三层设备均起Lop0地址,IP地址分配如下表所示:

设备 R1 SW1 接口 F0/0 F0/1 Loopback0 F0/1 IP 地址 192.168.1.1/30 192.168.2.1/30 1.1.1.1/24 192.168.1.2/30 备注 Loopback0 SW2 F0/1 Loopback0 2.2.2.2/24 192.168.2.2/30 3.3.3.3/24 4、OSPF:SW1、SW2、和R1之间运行OSPF,进程100,区域0;所有三层设备Lop0地址都加入OSPF中; 5、EthernetChannel

SW1/2的F0/11、F0/12口配置EthernetChannel。

6、实现全网互通,VLAN10的PC能ping 通VLAN20的PC。 操作内容 接口配置 分数15 2 ip address vlan database vtp domain wljs vtp server vlan 10 vlan 20 关键字 VTP 、VLAN配置 3 STP配置 OSPF路由协议配置 3 4 spanning-tree vlan 10 root primary spanning-tree vlan 20 root secondary router ospf 100 netowrk int port-channel 1 switchport trunk encapsulation dot1q switchport mode trunk int FastEthernet switchport trunk encapsulation dot1q switchport mode trunk channel-group 1 mode on EthernetChannel 3

答案: R1配置: !

interface Loopback0

ip address 1.1.1.1 255.255.255.0 !

interface F0/0

ip address 192.168.1.1 255.255.255.252 no shut !

interface F0/1

ip address 192.168.2.1 255.255.255.252 no shut !

router ospf 100 router-id 1.1.1.1

network 1.1.1.0 0.0.0.255 area 0 network 192.168.10.0 0.0.0.3 area 0 network 192.168.11.0 0.0.0.3 area 0 !

SW1配置: !

vlan database vtp domain wljs vtp server vlan 10 vlan 20 !

spanning-tree vlan 10 root primary spanning-tree vlan 20 root secondary spanning-tree mode pvst !

interface Loopback0

ip address 2.2.2.2 255.255.255.0 !

interface FastEthernet0/1 no switchport

ip address 192.168.1.2 255.255.255.252 no shut !

int port-channel 1

switchport trunk encapsulation dot1q switchport mode trunk

switchport trunk allowed vlan all no shut

int FastEthernet 0/11

switchport trunk encapsulation dot1q switchport mode trunk channel-group 1 mode on no shut

int FastEthernet 0/12

switchport trunk encapsulation dot1q switchport mode trunk channel-group 1 mode on no shut !

interface FastEthernet0/2

switchport trunk encapsulation dot1q switchport mode trunk

no shut !

interface FastEthernet0/3

switchport trunk encapsulation dot1q switchport mode trunk no shut !

interface Vlan10

ip address 10.10.10.1 255.255.255.0 no shut !

interface Vlan20

ip address 11.11.11.1 255.255.255.0 no shut !

router ospf 100

router-id 2.2.2.2

network 192.168.1.0 0.0.0.3 area 0 network 10.10.10.0 0.0.0.255 area 0

network 11.11.11.0 0.0.0.255 area 0 network 2.2.2.0 0.0.0.255 area 0 !

SW2配置: !

vlan database vtp domain wljs vtp server vlan 10 vlan 20 !

spanning-tree vlan 20 root primary spanning-tree vlan 10 root secondary !

interface Loopback0

ip address 3.3.3.3 255.255.255.0 !

interface FastEthernet0/1 no switchport

ip address 192.168.2.2 255.255.255.252 no shut !

int port-channel 1

switchport trunk encapsulation dot1q

switchport mode trunk

switchport trunk allowed vlan all no shut

int FastEthernet0/11

switchport trunk encapsulation dot1q switchport mode trunk channel-group 1 mode on no shut

int FastEthernet0/12

switchport trunk encapsulation dot1q switchport mode trunk channel-group 1 mode on no shut !

interface FastEthernet0/2

switchport trunk encapsulation dot1q switchport mode trunk no shut !

interface FastEthernet0/3

switchport trunk encapsulation dot1q switchport mode trunk no shut !

interface Vlan10

ip address 10.10.10.2 255.255.255.0 no shut !

interface Vlan20

ip address 11.11.11.2 255.255.255.0 no shut !

router ospf 100 router-id 3.3.3.3

network 192.168.2.0 0.0.0.3 area 0 network 10.10.10.0 0 0.0.0.255 area 0 network 11.11.11.0 0.0.0.255 area 0 network 3.3.3.0 0.0.0.255 area 0 !

SW3配置: !

spanning-tree backbonefast spanning-tree uplinkfast

!

interface FastEthernet0/1 switchport mode trunk no shut !

interface FastEthernet0/2 switchport mode trunk no shut !

interface FastEthernet0/3 switchport mode access switchport access vlan 10 spanning-tree portfast !

interface FastEthernet0/4 switchport mode access switchport access vlan 20 spanning-tree portfast !

SW4配置: !

interface FastEthernet0/1 switchport mode trunk no shut !

interface FastEthernet0/2 switchport mode trunk no shut !

interface FastEthernet0/3 switchport mode access switchport access vlan 10 spanning-tree portfast !

interface FastEthernet0/4 switchport mode access switchport access vlan 20 spanning-tree portfast !

十四、RIP协议的排错(难度5)

实验要求:

1、按图完成配置,以 RIPv2 版本完成。 2、关闭RIP的自动汇总功能。

3、解决 R1 学习不到真实路由的问题。

4、解决 R2 和 R3 链路封装的模式,实现全网互连。 提示:

步骤1:先解决每台设备链路是否连通,ping自己的邻居; 步骤2:检测协议版本是否一致; 步骤3:检测链路封装的模式。 操作内容 在R1上修改RIP的版本 在R1上关闭RIP的自动汇总功能 在R2上手工打开接口 在R3上配置链路封装模式 分数15 3 route rip version 2 route rip no auto-summary no shut interface Serial0/1 encapsulation ppp Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 3.3.1.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 62/62/63 ms 关键字 3 2 4 在R1上pingR3的Lo0地址 3

配置: R1的配置

!

interface Loopback0

ip address 1.1.1.1 255.255.255.0 !

interface Loopback1

ip address 1.1.2.1 255.255.255.0 !

interface Serial0/0

ip address 192.168.12.1 255.255.255.0 no shut !

router rip version 1

network 1.0.0.0

network 192.168.12.0 !

R2的配置:

interface Loopback0

ip address 2.2.1.1 255.255.255.0 !

interface Loopback1

ip address 2.2.2.1 255.255.255.0 !

interface Serial0/0

ip address 192.168.12.2 255.255.255.0 shutdown !

interface Serial0/1

ip address 192.168.23.2 255.255.255.0 encapsulation ppp shutdown !

router rip version 2

network 2.0.0.0

network 192.168.12.0 network 192.168.23.0 no auto-summary !

R3的配置: !

interface Loopback0

ip address 3.3.1.1 255.255.255.0

!

interface Loopback1

ip address 3.3.2.1 255.255.255.0 !

interface Serial0/1

ip address 192.168.23.3 255.255.255.0 no shutdown !

router rip version 2

network 3.0.0.0

network 192.168.23.0 no auto-summary !

答案:

R1的配置:

interface Loopback0

ip address 1.1.1.1 255.255.255.0 !

interface Loopback1

ip address 1.1.2.1 255.255.255.0 !

interface Serial0/0

ip address 192.168.12.1 255.255.255.0 !

router rip version 2

network 1.0.0.0

network 192.168.12.0 no auto-summary !

R2的配置 !

interface Loopback0

ip address 2.2.1.1 255.255.255.0 !

interface Loopback1

ip address 2.2.2.1 255.255.255.0 !

interface Serial0/0

ip address 192.168.12.2 255.255.255.0 no shut

!

interface Serial0/1

ip address 192.168.23.2 255.255.255.0 encapsulation ppp !

router rip version 2

network 2.0.0.0

network 192.168.12.0 network 192.168.23.0 no auto-summary !

R3的配置 !

interface Loopback0

ip address 3.3.1.1 255.255.255.0 !

interface Loopback1

ip address 3.3.2.1 255.255.255.0 !

interface Serial0/1

ip address 192.168.23.3 255.255.255.0 encapsulation ppp no shut !

router rip version 2

network 3.0.0.0

network 192.168.23.0 no auto-summary !

十五、VLAN 配置故障排除(难度等级5)。

设备 S1 S2 S3 PC1 PC2 PC3 PC4 PC5 PC6 接口 治理VLAN 56 治理VLAN 56 治理VLAN 56 网卡 网卡 网卡 网卡 网卡 网卡 IP地址 192.168.56.11 192.168.56.12 192.168.56.13 192.168.10.21 192.168.20.22 192.168.30.23 192.168.10.24 192.168.20.25 192.168.30.26 子网掩码 255.255.255.0 255.255.255.0 255.255.255.0 255.255.255.0 255.255.255.0 255.255.255.0 255.255.255.0 255.255.255.0 255.255.255.0 默认网关 不适用 不适用 不适用 192.168.10.1 192.168.20.1 192.168.30.1 192.168.10.1 192.168.20.1 192.168.30.1 备注 已完成配置 已完成配置 已完成配置 已完成配置 已完成配置 已完成配置 交换机1的端口分配: 端口 Fa0/1 Fa0/2 分配 802.1q中继(本征VLAN 56) 802.1q中继(本征VLAN 56) 网络 192.168.56.0/24 192.168.56.0/24 备注 交换机2的端口分配: 端口 Fa0/1 Fa0/6 Fa0/11 Fa0/18 分配 802.1q中继(本征VLAN 56) VLAN 30 VLAN 10 VLAN 20 网络 192.168.56.0/24 192.168.30.0/24 192.168.10.0/24 192.168.20.0/24 备注 交换机3的端口分配: 端口 Fa0/2 分配 802.1q中继(本征VLAN 56) 网络 192.168.56.0/24 备注 Fa0/6 Fa0/11 Fa0/18 VLAN 30 VLAN 10 VLAN 20 192.168.30.0/24 192.168.10.0/24 192.168.20.0/24 要求:

找出网络错误并改正。当所有错误都得到更正后,属于相同 VLAN 的 PC 之间应该能够相互 ping 通。另外,S1、S2 和 S3应该能够相互 ping 通。 操作内容 SW1无VLAN治理地址 SW1无VLAN10-30地址 SW2未创建VLAN10-30 分数15 2 2 2 3 3 3 ip add 关键字 int vlan ip add vlan 10 vlan 20 vlan 30 switchport mode access Swtichport access vlan X switchport mode trunk SW2未为VLAN划分端口 SW2未配置TRUNK端口 SW3未配置TRUNK端口 答案:

switchport mode trunk SW1配置:

SW1(config)#vlan 10

SW1(config-vlan)#vlan 20 SW1(config-vlan)#vlan 30 SW1(config-vlan)#vlan 56

SW1(config)#interface fa0/1

SW1(config-if)#switchport trunk native vlan 56 SW1(config-if)#no shutdown SW1(config-if)#interface fa0/2

SW1(config-if)#switchport trunk native vlan 56 SW1(config-if)#no shutdown

SW2配置:

S2(config)#interface fa0/1

S2(config-if)#switchport mode trunk

S2(config)#interface Vlan 1 S2(config-if)#no ip address S2(config-if)#interface Vlan 56

S2(config-if)#ip address 192.168.56.12 255.255.255.0 S2(config-if)#no shutdown

SW3配置:

S3(config)#vlan 56

S3(config-vlan)#interface vlan 56

S3(config-if)#ip address 192.168.56.13 255.255.255.0 S3(config-if)#no shutdown

S3(config)#interface fa0/6

S3(config-if)#switchport access vlan 30 S3(config-if)#interface fa0/11

S3(config-if)#switchport access vlan 10 S3(config-if)#interface fa0/18

S3(config-if)#switchport access vlan 20

因篇幅问题不能全部显示,请点此查看更多更全内容