User Tools

Site Tools


wiki:site:cisco:trunk:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
wiki:site:cisco:trunk:start [2018/01/16 11:10]
root
wiki:site:cisco:trunk:start [2018/01/16 11:21] (current)
root
Line 29: Line 29:
     * 1-bit CFI (Canonical Format Indicator) - určuje zda se jedná o Ethernet nebo TokenRing. Nazývá se též //little-endian, big-endian format//     * 1-bit CFI (Canonical Format Indicator) - určuje zda se jedná o Ethernet nebo TokenRing. Nazývá se též //little-endian, big-endian format//
     * 12-bitů VID (VLAN Identifier) 0-4095 (0,1 a 4095 rezervovány)     * 12-bitů VID (VLAN Identifier) 0-4095 (0,1 a 4095 rezervovány)
 +
 +===== Konfigurace trunku ISL / dot1q =====
 +
 +>Switch(config)# **interface** //type mod/port//
 +>Switch(config-if)# **switchport**
 +>Switch(config-if)# **switchport mode trunk**
 +>Switch(config-if)# **switchport trunk encapsulation {isl | dot1q | negotiate}**
 +>Switch(config-if)# **switchport nonnegotiate**
 +>Switch(config-if)# **switchport trunk native vlan** //vlan-id//
 +>Switch(config-if)# **switchport trunk allowed vlan** {//vlan-list// | **all** | {**add** | **except** | **remove**} //vlan-list//}
 +
 +Vypnuti trunku:
 +>Switch(config-if)#no switchport mode trunk
 +nebo:
 +>Switch(config-if)#switchport mode access
 +
 +>Switch# **show running-config**
 +>Switch# **show interface** //type mod/port//
 +>Switch# **show vlan id** //vlan-id//
 +
 +>Switch# **show interfaces fastethernet 0/1 trunk**
 +<code>
 +Port    Mode      Encapsulation  Status    Native vlan
 +Fa0/1  desirable  n-802.1q       trunking   1
 +Port   Vlans allowed on trunk
 +Fa0/1  1-150
 +<further output omitted>
 +</code>
  
 ====== DTP - Dynamic Trunking Protocol (Cisco) ====== ====== DTP - Dynamic Trunking Protocol (Cisco) ======
Line 34: Line 62:
   * Switche musí být ve stejné VTP doméně (nebo NULL doméně, VTP domain není nakonfigurována)   * Switche musí být ve stejné VTP doméně (nebo NULL doméně, VTP domain není nakonfigurována)
   * Ve všech režimech DTP posílá zprávy každých 30s.   * Ve všech režimech DTP posílá zprávy každých 30s.
 +  * mode auto-auto nefunguje, na jedné straně musí být desirable!
  
 >SW(config)# **interface** //type mod/port// >SW(config)# **interface** //type mod/port//
Line 42: Line 71:
 >Switch(config-if)# **switchport nonegotiate** >Switch(config-if)# **switchport nonegotiate**
  
-===== Konfigurace =====+>Switch# **show running-config** 
 +>Switch# **show dtp** [**interface** //type mod/num//]
  
  
->SW(config)# interface fa0/port_number 
  
->SW(config-if)# switchport mode trunk  
->SW(config-if)# switchport trunk encapsulation {dot1q | isl | negotiate}  
->SW(config-if)# switchport mode dynamic {desirable | auto} 
->SW(config-if)# dot1q native vlan vlan-id 
  
-Vypnuti trunku: 
->Switch(config-if)#no switchport mode trunk 
-nebo: 
->Switch(config-if)#switchport mode access 
- 
->Switch# **show interfaces fastethernet 0/1 trunk** 
-<code> 
-Port    Mode      Encapsulation  Status    Native vlan 
-Fa0/1  desirable  n-802.1q       trunking   1 
-Port   Vlans allowed on trunk 
-Fa0/1  1-150 
-<further output omitted> 
-</code> 
wiki/site/cisco/trunk/start.1516097453.txt.gz · Last modified: 2018/01/16 11:10 by root