第七周实验

如果主机在相同网段相同网段。则不需要在交换机上配置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

二层链路实验

posted on 2019-05-19 09:48  蔡景弘  阅读(84)  评论(0编辑  收藏  举报

导航