你的位置:首页 > 信息动态 > 新闻中心
信息动态
联系我们

路用与交换技术复习

2021/12/23 21:56:37

在这里插入图片描述

Multilayer Switch0:

int range fa0/23-24
channel-protocol lacp
channel-group 6 mode active
exit
spanning-tree mode pvst
spanning-tree vlan 1 priority 4096
exit

vlan 10
exit
vlan 20
exit
vlan 30
exit
vlan 40
exit
vlan 90
exit

int vlan 90
ip add 218.50.90.254 255.255.255.0
no shutdo
exit
int vlan 10
ip add 218.50.10.254 255.255.255.0
no shutdo
exit
int vlan 20
ip add 218.50.20.254 255.255.255.0
no shutdo
exit
int vlan 30
ip add 218.50.30.254 255.255.255.0
no shutdo
exit
int vlan 40
ip add 218.50.40.254 255.255.255.0
no shutdo
exit

int range fa0/1-4
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan all
exit

ip routing

vlan 50
exit
vlan 60
exit
vlan 70
exit
vlan 80
exit

int vlan 50
ip add 218.50.50.254 255.255.255.0
no shutdo
exit
int vlan 60
ip add 218.50.60.254 255.255.255.0
no shutdo
exit
int vlan 70
ip add 218.50.70.254 255.255.255.0
no shutdo
exit
int vlan 80
ip add 218.50.80.254 255.255.255.0
no shutdo
exit

int range fa0/9-12
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan all
exit
    
int range fa0/5-7
switchport mode access
switchport access vlan 90
exit

Multilayer Switch1:

int range fa0/23-24
channel-protocol lacp
channel-group 6 mode active
exit
spanning-tree mode pvst
spanning-tree vlan 1 priority 4096
exit

vlan 50
exit
vlan 60
exit
vlan 70
exit
vlan 80
exit
vlan 90
exit

int vlan 90
ip add 218.50.90.254 255.255.255.0
no shutdo
exit
int vlan 50
ip add 218.50.50.254 255.255.255.0
no shutdo
exit
int vlan 60
ip add 218.50.60.254 255.255.255.0
no shutdo
exit
int vlan 70
ip add 218.50.70.254 255.255.255.0
no shutdo
exit
int vlan 80
ip add 218.50.80.254 255.255.255.0
no shutdo
exit

int range fa0/1-4
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan all
exit

ip routing

vlan 10
exit
vlan 20
exit
vlan 30
exit
vlan 40
exit

int vlan 10
ip add 218.50.10.254 255.255.255.0
no shutdo
exit
int vlan 20
ip add 218.50.20.254 255.255.255.0
no shutdo
exit
int vlan 30
ip add 218.50.30.254 255.255.255.0
no shutdo
exit
int vlan 40
ip add 218.50.40.254 255.255.255.0
no shutdo
exit

int range fa0/9-12
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan all
exit

int range fa0/5-7
switchport mode access
switchport access vlan 90
exit    

Switch0:

vlan 10
exit
int fa0/1
switchport mode access
switchport access vlan 10
exit
int fa0/2
switchport mode trunk
switchport trunk allowed vlan all
exit
int fa0/3
switchport mode trunk
switchport trunk allowed vlan all

Switch1:

vlan 20
exit
int fa0/1
switchport mode access
switchport access vlan 20
exit
int fa0/2
switchport mode trunk
switchport trunk allowed vlan all
exit
int fa0/3
switchport mode trunk
switchport trunk allowed vlan all

Switch2:

vlan 30
exit
int fa0/1
switchport mode access
switchport access vlan 30
exit
int fa0/2
switchport mode trunk
switchport trunk allowed vlan all
exit
int fa0/3
switchport mode trunk
switchport trunk allowed vlan all

Switch3:

vlan 40
exit
int fa0/1
switchport mode access
switchport access vlan 40
exit
int fa0/2
switchport mode trunk
switchport trunk allowed vlan all
exit
int fa0/3
switchport mode trunk
switchport trunk allowed vlan all

Switch4:

vlan 50
exit
int fa0/1
switchport mode access
switchport access vlan 50
exit
int fa0/2
switchport mode trunk
switchport trunk allowed vlan all
exit
int fa0/3
switchport mode trunk
switchport trunk allowed vlan all

Switch5:

vlan 60
exit
int fa0/1
switchport mode access
switchport access vlan 60
exit
int fa0/2
switchport mode trunk
switchport trunk allowed vlan all
exit
int fa0/3
switchport mode trunk
switchport trunk allowed vlan all

Switch6:

vlan 70
exit
int fa0/1
switchport mode access
switchport access vlan 70
exit
int fa0/2
switchport mode trunk
switchport trunk allowed vlan all
exit
int fa0/3
switchport mode trunk
switchport trunk allowed vlan all

Switch7:

vlan 80
exit
int fa0/1
switchport mode access
switchport access vlan 80
exit
int fa0/2
switchport mode trunk
switchport trunk allowed vlan all
exit
int fa0/3
switchport mode trunk
switchport trunk allowed vlan all

注意:
在这里插入图片描述

在这里插入图片描述

效果图:
在这里插入图片描述

在这里插入图片描述

在这里插入图片描述