Home >Database >Mysql Tutorial >switch mode命令详解

switch mode命令详解

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 15:03:566039browse

switch mode有三种模式: 1.access------将某个端口加入 某个 vlan , 该端口将为access模式,从该端口出来的包或者贞将不带有tag,主要用来接入终端设备,如PC机、服务器、打印服务器等。 s1(config)#int fa 0/24 s1( config-if )#switch mode access ---指

switch mode有三种模式:
      1.access------将某个端口加入 某个vlan该端口将为access模式,从该端口出来的包或者贞将不带有tag,主要用来接入终端设备,如PC机、服务器、打印服务器等。   
    s1(config)#int fa 0/24
       s1(config-if)#switch mode access ---指定24口为普通端口模式

     2.trunk--------trunk模式的端口用于交换机与交换机,交换机与路由器,大多用于级联网络设备,从该端口出来的包或者贞将带有tag,以便在线路上承载多个vlan。
       s1(config)#int fa 0/24
       s1(config-if)#switch mode   trunk ---指定24口为普通端口模式
  
    3.multi: 在一个线路中承载多个vlan,但不像trunk,它不对承载的数据打标签。主要用于接入支持多vlan的服务器或者一些网络分析设备。现在基本不使用此类接口,在cisco的网络设备中,也基本不支持此类接口了。
   
    注意:以下配置交换机虽然不出错,但会以最后配置的那条为准
    s1(config)#int fa 0/24
     s1(config-if)#switch mode access
    s1(config-if)#switch    access vlan 80
     s1(config-if)#switch mode   trunk
    

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn