CISCO大作业、单臂路由、rip、链路聚合、三层交换机

发布于:2022-12-05 ⋅ 阅读:(597) ⋅ 点赞:(0)

拓扑图:

在这里插入图片描述

设计思路

路由协议:rip

路由间网段分配:

172.8.10.0
172.8.20.0
172.8.30.0

配置单臂路由子接口ip分配:

区域A 192.8.40.254/24、192.8.41.254/24、192.8.42.254/24、192.8.43.254/24、192.8.44.254/24、192.8.45.254/24、192.8.46.254/24
区域B 192.8.10.254/24、192.8.11.254/24、192.8.12.254/24
区域C 192.8.20.254/24、192.8.21.254/24、192.8.22.254/24、192.8.23.254/24
区域D 192.8.30.254/24、192.8.31.254/24、192.8.32.254/24、192.8.33.254/24

与路由直接相连的三层交换机:

配置VLAN、所有已连接的接口都设置、并允许所有vlan通过

不与路由直接相连的三层交换机:

设置并分配VLAN

二层交换机:

不做改动

电脑:

设置ip、子网掩码和网关

具体细节:

路由器:

路由器A:

en
conf t
interface Serial 0/0/0
ip address 172.8.10.1 255.255.255.0
no shutdown 
clock rate 64000
interface Serial 0/0/1
ip address 172.8.20.1 255.255.255.0
no shutdown 
clock rate 64000
interface Serial 0/1/0
ip address 172.8.30.1 255.255.255.0
no shutdown 
clock rate 64000


interface FastEthernet0/0.1
encapsulation dot1Q 40
ip address 192.8.40.254 255.255.255.0
interface FastEthernet0/0.2
encapsulation dot1Q 41
ip address 192.8.41.254 255.255.255.0
interface FastEthernet0/0.3
encapsulation dot1Q 42
ip address 192.8.42.254 255.255.255.0
int f0/0
no shutdown
interface FastEthernet0/1.1
encapsulation dot1Q 43
ip address 192.8.43.254 255.255.255.0
interface FastEthernet0/1.2
encapsulation dot1Q 44
ip address 192.8.44.254 255.255.255.0
interface FastEthernet0/1.3
encapsulation dot1Q 45
ip address 192.8.45.254 255.255.255.0
interface FastEthernet0/1.4
encapsulation dot1Q 46
ip address 192.8.46.254 255.255.255.0
int f0/1
no shutdown

end
en
conf t
router rip
version 2
network 172.8.10.0
network 172.8.20.0
network 172.8.30.0
network 192.8.41.0
network 192.8.42.0
network 192.8.43.0
network 192.8.44.0
network 192.8.45.0
network 192.8.46.0
network 192.8.40.0
no auto summary
end
wr

路由器B:

en
conf t
interface Serial 0/0/0
ip address 172.8.10.2 255.255.255.0
no shutdown 
interface FastEthernet0/1.1
encapsulation dot1Q 10
ip address 192.8.10.254 255.255.255.0
interface FastEthernet0/1.2
encapsulation dot1Q 11
ip address 192.8.11.254 255.255.255.0
interface FastEthernet0/1.3
encapsulation dot1Q 12
ip address 192.8.12.254 255.255.255.0
int f0/1
no shutdown

end
en
conf t
router rip
version 2
network 192.8.10.0
network 192.8.11.0
network 192.8.12.0
network 172.8.10.0
no auto summary
end
wr

路由器C:

en
conf t
interface Serial 0/0/1
ip address 172.8.20.2 255.255.255.0
no shutdown 
interface FastEthernet0/1.1
encapsulation dot1Q 20
ip address 192.8.20.254 255.255.255.0
interface FastEthernet0/1.2
encapsulation dot1Q 21
ip address 192.8.21.254 255.255.255.0
interface FastEthernet0/1.3
encapsulation dot1Q 22
ip address 192.8.22.254 255.255.255.0
interface FastEthernet0/1.4
encapsulation dot1Q 23
ip address 192.8.23.254 255.255.255.0
int f0/1
no shutdown

end
en
conf t
router rip
version 2
network 192.8.20.0
network 192.8.21.0
network 192.8.22.0
network 192.8.23.0
network 172.8.20.0
no auto summary
end
wr

路由器D:

en
conf t
interface Serial 0/1/0
ip address 172.8.30.2 255.255.255.0
no shutdown 
interface FastEthernet0/1.1
encapsulation dot1Q 30
ip address 192.8.30.254 255.255.255.0
interface FastEthernet0/1.2
encapsulation dot1Q 31
ip address 192.8.31.254 255.255.255.0
interface FastEthernet0/1.3
encapsulation dot1Q 32
ip address 192.8.32.254 255.255.255.0
interface FastEthernet0/1.4
encapsulation dot1Q 33
ip address 192.8.33.254 255.255.255.0
int f0/1
no shutdown
end
en
conf t
router rip
version 2
network 192.8.30.0
network 192.8.31.0
network 192.8.32.0
network 192.8.33.0
network 172.8.30.0
no auto summary
end
wr

交换机:

四层交换机

区域A:

交换机1:
enable
configure terminal
hostname SA_31
interface port-channel 1
exit
interface range fa0/21-fa0/22 
channel-group 1 mode on
exit
interface port-channel 1
switchport mode trunk
switchport trunk allowed vlan all
vlan 40
vlan 41
vlan 42
vlan 43
vlan 44
vlan 45
vlan 46
interface f0/1
switchport trunk encapsulation dot1q
switchport mode trunk
witchport trunk allow vlan all
int range f0/19-20
switchport trunk encapsulation dot1q
switchport mode trunk
witchport trunk allow vlan all
int f0/23
switchport trunk encapsulation dot1q
switchport mode trunk
witchport trunk allow vlan all
int f0/24
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allow vlan all
交换机2:
enable
configure terminal
hostname SA_32
interface port-channel 1
exit
interface range fa0/21-fa0/22 
channel-group 1 mode on
exit
interface port-channel 1
switchport mode trunk
switchport trunk allowed vlan all
vlan 40
vlan 41
vlan 42
vlan 43
vlan 44
vlan 45
vlan 46
interface f0/1
switchport trunk encapsulation dot1q
switchport mode trunk
witchport trunk allow vlan all
int range f0/18-20
switchport trunk encapsulation dot1q
switchport mode trunk
witchport trunk allow vlan all
int f0/23
switchport trunk encapsulation dot1q
switchport mode trunk
witchport trunk allow vlan all
int f0/24
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allow vlan all

区域B:

en
conf t
hostname Switch_B4
vlan 10
vlan 11
vlan 12
int f0/1
switchport trunk encapsulation dot1q
switchport mode trunk
witchport trunk allow vlan all
interface range f0/21-23
switchport trunk encapsulation dot1q
switchport mode trunk
witchport trunk allow vlan all

区域C:

en
conf t
hostname Switch_C4
vlan 20
vlan 21
vlan 22
vlan 23
int f0/1
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allow vlan all
interface range f0/21-24
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allow vlan all

区域D:

en
conf t
hostname Switch_D4
vlan 30
vlan 31
vlan 32
vlan 33
int f0/1
switchport trunk encapsulation dot1q
switchport mode trunk
int f0/21
switchport trunk encapsulation dot1q
switchport mode trunk
int f0/22
switchport trunk encapsulation dot1q
switchport mode trunk
int f0/23
switchport trunk encapsulation dot1q
switchport mode trunk
int f0/24
switchport trunk encapsulation dot1q
switchport mode trunk

三层交换机:

区域A:

交换机1:
en
conf t
hostname Switch_A31
vlan 40
vlan 41
interface f0/1
switchport access vlan 40
interface f0/2
switchport access vlan 41
int f0/19
switchport trunk encapsulation dot1q 
switchport mode trunk 
switchport trunk allow vlan all
int range f0/1-2
spanning-tree portfast 
交换机2:
en
conf t
hostname Switch_A32
vlan 41
vlan 42
interface f0/1
switchport access vlan 41
interface f0/2
switchport access vlan 42
int f0/20
switchport trunk encapsulation dot1q 
switchport mode trunk 
switchport trunk allow vlan all
int range f0/1-2
spanning-tree portfast 
交换机3:
en
conf t
hostname Switch_A33
vlan 42
vlan 43
interface f0/1
switchport access vlan 42
interface f0/2
switchport access vlan 43
int range f0/23-24
switchport trunk encapsulation dot1q 
switchport mode trunk 
switchport trunk allow vlan all
int range f0/1-2
spanning-tree portfast 
交换机4:
en
conf t
hostname Switch_A34
vlan 43
vlan 44
interface f0/1
switchport access vlan 43
interface f0/2
switchport access vlan 44
int range f0/23-24
switchport trunk encapsulation dot1q 
switchport mode trunk 
switchport trunk allow vlan all
int range f0/1-2
spanning-tree portfast 
交换机5:
en
conf t
hostname Switch_A35
vlan 44
vlan 45
interface f0/1
switchport access vlan 44
interface f0/2
switchport access vlan 45
int range f0/20
switchport trunk encapsulation dot1q 
switchport mode trunk 
switchport trunk allow vlan all
int range f0/1-2
spanning-tree portfast 
交换机6:
en
conf t
hostname Switch_A36
vlan 46
vlan 45
interface f0/1
switchport access vlan 45
interface f0/2
switchport access vlan 46
int range f0/19
switchport trunk encapsulation dot1q 
switchport mode trunk 
switchport trunk allow vlan all
int range f0/1-2
spanning-tree portfast 
交换机7:
en
conf t
hostname Switch_A37
vlan 46
vlan 40
interface f0/1
switchport access vlan 46
interface f0/2
switchport access vlan 40
int range f0/18
switchport trunk encapsulation dot1q 
switchport mode trunk 
switchport trunk allow vlan all
int range f0/1-2
spanning-tree portfast 

区域B:

交换机1:
en
conf t
hostname Switch_B31
vlan 10
vlan 11
interface f0/1
switchport access vlan 10
interface f0/2
switchport access vlan 11
int f0/21
switchport trunk encapsulation dot1q 
switchport mode trunk 
switchport trunk allow vlan all
int range f0/1-2
spanning-tree portfast 
交换机2:
en
conf t
hostname Switch_B32
vlan 10
vlan 11
vlan 12
interface f0/1
switchport access vlan 10
interface f0/2
switchport access vlan 11
interface f0/3
switchport access vlan 12
int f0/22
switchport trunk encapsulation dot1q 
switchport mode trunk 
switchport trunk allow vlan all
int range f0/1-3
spanning-tree portfast 
交换机3:
en
conf t
hostname Switch_B33
vlan 10
vlan 12
interface f0/1
switchport access vlan 10
interface f0/2
switchport access vlan 12
int f0/23
switchport trunk encapsulation dot1q 
switchport mode trunk 
switchport trunk allow vlan all
int range f0/1-2
spanning-tree portfast 

区域C:

交换机1:
en
conf t
hostname Switch_C31
vlan 20
vlan 21
interface f0/1
switchport access vlan 20
interface f0/2
switchport access vlan 21
int f0/21
switchport trunk encapsulation dot1q 
switchport mode trunk 
switchport trunk allow vlan all
int range f0/1-2
spanning-tree portfast
交换机2:
en
conf t
hostname Switch_C32
vlan 21
vlan 22
interface f0/1
switchport access vlan 21
interface f0/2
switchport access vlan 22
int f0/22
switchport trunk encapsulation dot1q 
switchport mode trunk 
switchport trunk allow vlan all
int range f0/1-2
spanning-tree portfast
交换机3:
en
conf t
hostname Switch_C33
vlan 23
vlan 22
interface f0/1
switchport access vlan 22
interface f0/2
switchport access vlan 23
int f0/23
switchport trunk encapsulation dot1q 
switchport mode trunk 
switchport trunk allow vlan all
int range f0/1-2
spanning-tree portfast
交换机4:
en
conf t
hostname Switch_C34
vlan 23
vlan 20
interface f0/1
switchport access vlan 23
interface f0/2
switchport access vlan 20
int f0/24
switchport trunk encapsulation dot1q 
switchport mode trunk 
switchport trunk allow vlan all
int range f0/1-2
spanning-tree portfast

区域D:

交换机1:
en
conf t
hostname Switch_D32
vlan 30
vlan 31
interface f0/1
switchport access vlan 30
interface f0/2
switchport access vlan 31
int f0/21
switchport trunk encapsulation dot1q 
switchport mode trunk 
switchport trunk allow vlan all
int range f0/1-2
spanning-tree portfast
end
交换机2:
en
conf t
hostname Switch_D32
vlan 31
vlan 32
interface f0/1
switchport access vlan 31
interface f0/2
switchport access vlan 32
int f0/21
switchport trunk encapsulation dot1q 
switchport mode trunk 
switchport trunk allow vlan all
int range f0/1-2
spanning-tree portfast
end
交换机3:
en
conf t
hostname Switch_D33
vlan 33
vlan 32
interface f0/1
switchport access vlan 32
interface f0/2
switchport access vlan 33
int f0/23
switchport trunk encapsulation dot1q 
switchport mode trunk 
switchport trunk allow vlan all
int range f0/1-2
spanning-tree portfast
end
交换机4:
en
conf t
hostname Switch_D34
vlan 33
vlan 30
interface f0/1
switchport access vlan 33
interface f0/2
switchport access vlan 30
int f0/24
switchport trunk encapsulation dot1q 
switchport mode trunk 
switchport trunk allow vlan all
int range f0/1-2
spanning-tree portfast
end
本文含有隐藏内容,请 开通VIP 后查看

网站公告

今日签到

点亮在社区的每一天
去签到