您好,欢迎来到欧得旅游网。
搜索
您的当前位置:首页以太网交换

以太网交换

来源:欧得旅游网


任务要求:

1、 掌握以太网交换原理;

2、 掌握Vlan配置方法;

3、 掌握三层交换原理;

4、 掌握链路聚合的配置方法

实验一 用trunck口实现Vlan跨交换机扩展

要求:PC0、PC2属于vlan10,PC1、PC3属于vlan20,在SW0上进行正确的配置,要求实现PC0和PC1之间不能通信,PC2和PC3之间不能通信,PC0和PC2之间可以通信,PC1和PC3之间可以通信。

IP设置:

PC0:192.168.1.1 255.255.255.0

PC1:192.168.1.2 255.255.255.0

PC3:192.168.1.3 255.255.255.0

PC4:192.168.1.4 255.255.255.0

1、SWITCH3的配置如下:

Switch>en

Switch#config t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#vlan 10

Switch(config-vlan)#exit

Switch(config)#vlan 20

Switch(config-vlan)#interface fa0/1

Switch(config-if)#switch mode access

Switch(config-if)#switch access vlan 10

Switch(config-if)#exit

Switch(config)#interface fa0/2

Switch(config-if)#switch mode access

Switch(config-if)#switch access vlan 20

Switch(config-if)#exit

Switch(config)#interface fa0/3

Switch(config-if)#switch mode trunk

%LINEPROTO-5-UPDOWN: Line protocol on Interface changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface changed state to up

Switch(config-if)#switchport trunk allowed vlan 10,20

FastEthernet0/3, FastEthernet0/3,

Switch(config-if)#exit

2、SWITCH4的配置如下:

Switch>en

Switch#config t

Enter configuration commands, one per line. Switch(config)#vlan 10

Switch(config-vlan)#exit

Switch(config)#vlan 20

Switch(config-vlan)#exit

Switch(config)#interface fa0/1

Switch(config-if)#switch mode access

Switch(config-if)#switch access vlan 10

Switch(config-if)#exit

End with CNTL/Z.

Switch(config)#interface fa0/2

Switch(config-if)#switch mode access

Switch(config-if)#switch access vlan 20

Switch(config-if)#exit

Switch(config)#interface fa0/3

Switch(config-if)#switch mode trunk

Switch(config-if)#switchport trunk allowed vlan 10,20

Switch(config-if)#exit

实验二 用三层交换机实现vlan间路由

要求:PC0属于vlan10,PC1属于vlan20,

PC0:192.168.1.1 255.255.255.0 192.168.1.2

PC1:192.168.2.1 255.255.255.0 192.168.2.2

在SW0上进行适当的配置,使得PC0能和PC1进行通信:

Switch>en

Switch#config t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#vlan 10

Switch(config-vlan)#exit

Switch(config)#vlan 20

Switch(config-vlan)#exit

Switch(config)#interface fa0/1

Switch(config-if)#switch mode access

Switch(config-if)#switch access vlan 10

Switch(config-if)#exit

Switch(config)#interface fa0/2

Switch(config-if)#switch mode access

Switch(config-if)#switch access vlan 20

Switch(config-if)#exit

Switch(config)#interface vlan 10

%LINK-5-CHANGED: Interface Vlan10, changed state to up

Switch(config-if)#

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to up

ip address 192.168.1.2 255.255.255.0

Switch(config-if)#exit

Switch(config)#interface vlan 20

%LINK-5-CHANGED: Interface Vlan20, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan20, changed state to up

Switch(config-if)#ip address 192.168.2.2 255.255.255.0

Switch(config-if)#ip routing

Switch(config)#exit

Switch#

%SYS-5-CONFIG_I: Configured from console by console

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

Copyright © 2019- ovod.cn 版权所有 湘ICP备2023023988号-4

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务