常用交换机典型配置详解

发布时间:2017-02-24 00:00:00 编辑:小静 手机版

  Switch1(config)#int e0/2

  Switch1(config-if)#vlan-membership static 2

  Switch1(config-if)#int e0/3

  Switch1(config-if)#vlan-membership static 2

  Switch1(config-if)#int e0/4

  Switch1(config-if)#vlan-membership static 2

  ……

  Switch1(config-if)#int e0/20

  Switch(config-if)#vlan-membership static 2

  Switch1(config-if)#int e0/21

  Switch1(config-if)#vlan-membership static 2

  Switch1(config-if)#

  【注】"int"是"nterface"命令缩写,是接口的意思"e0/3"是"ethernet 0/2"的缩写,代表交换机的0号模块2号端口

  (2)名为"Switch2"的交换机的VLAN端口号配置如下:

  Switch2(config)#int e0/2

  Switch2(config-if)#vlan-membership static 3

  Switch2(config-if)#int e0/3

  Switch2(config-if)#vlan-membership static 3

  Switch2(config-if)#int e0/4

  Switch2(config-if)#vlan-membership static 3

  ……

  Switch2(config-if)#int e0/15

  Switch2(config-if)#vlan-membership static 3

  Switch2(config-if)#int e0/16

  Switch2(config-if)#vlan-membership static 3

  Switch2(config-if)#

  (3)名为"Switch3"的交换机的VLAN端口号配置如下(它包括两个VLAN组的配置),先看VLAN 4(Huma)的配置代码:

  Switch3(config)#int e0/2

  Switch3(config-if)#vlan-membership static 4

  Switch3(config-if)#int e0/3

  Switch3(config-if)#vlan-membership static 4

  Switch3(config-if)#int e0/4

  Switch3(config-if)#vlan-membership static 4

  ……

  Switch3(config-if)#int e0/8

  Switch3(config-if)#vlan-membership static 4

  Switch3(config-if)#int e0/9

  Switch3(config-if)#vlan-membership static 4

  Switch3(config-if)#

  下面是VLAN5(Info)的配置代码:

  Switch3(config)#int e0/10

  Switch3(config-if)#vlan-membership static 5

  Switch3(config-if)#int e0/11

  Switch3(config-if)#vlan-membership static 5

  Switch3(config-if)#int e0/12

  Switch3(config-if)#vlan-membership static 5

  ……

  Switch3(config-if)#int e0/20

  Switch3(config-if)#vlan-membership static 5

  Switch3(config-if)#int e0/21

  Switch3(config-if)#vlan-membership static 5

  Switch3(config-if)#

下页更精彩:首页 上一页 1 2
本文已影响893
+1
0