第七周实验

如果主机在相同网段相同网段。则不需要在交换机上配置IP地址,如果主机在不同网段且不同vlan下的时候,则需要在交换机上配置IP地址

在交换机中配置好后方可配置后面的机器

system-view

vlan 10 

vlan 20

qu

interface range g1/0/1 to g1/0/2

port link-type access

port access vlan 10

qu

interface range g1/0/3 to g1/0/4

port link-type access

port access vlan 20

interface Bridge-Aggregation 1

interface range g1/0/46 to g1/0/48

port link-mode bridge

port link-aggregation group 1

qu

interface Bridge-Aggregation 1

port link-type trunk

port trunk permit vlan 10 20 30 40

交换机2:

system-view

vlan 10 

vlan 20

qu

interface range g1/0/1 to g1/0/2

port link-type trunk

port  trunk permit vlan 10 20

qu

interface g1/0/48

port link-type trunk

port trunnk permit vlan 10 20

interface Bridge-Aggregation 1

interface range g1/0/46 to g1/0/48

port link-mode bridge

port link-aggregation group 1

qu

interface Bridge-Aggregation 1

port link-type trunk

port trunk permit vlan 10 20 30 40

二层链路实验

vlan 10 

vlan 20

qu

interface range g1/0/1 to g1/0/2

port link-type access

port access vlan 10

qu

interface range g1/0/3 to g1/0/4

port link-type access

port access vlan 20

interface Bridge-Aggregation 1

interface range g1/0/46 to g1/0/48

port link-mode bridge

port link-aggregation group 1

qu

interface Bridge-Aggregation 1

port link-type trunk

port trunk permit vlan 10 20 30 40

交换机2:

system-view

vlan 10 

vlan 20

qu

interface range g1/0/1 to g1/0/2

port link-type trunk

port  trunk permit vlan 10 20

qu

interface g1/0/48

port link-type trunk

port trunnk permit vlan 10 20

interface Bridge-Aggregation 1

interface range g1/0/46 to g1/0/48

port link-mode bridge

port link-aggregation group 1

qu

interface Bridge-Aggregation 1

port link-type trunk

port trunk permit vlan 10 20 30 40

二层链路实验

猜你喜欢

转载自www.cnblogs.com/147258a/p/10888212.html