Cisco Vlan Trunking: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Thomas (Diskussion | Beiträge) |
Thomas (Diskussion | Beiträge) |
||
| (Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt) | |||
| Zeile 86: | Zeile 86: | ||
1004 fddinet-default act/unsup | 1004 fddinet-default act/unsup | ||
1005 trnet-default act/unsup | 1005 trnet-default act/unsup | ||
| + | </pre> | ||
| + | =trunk interfaces einstellen= | ||
| + | *switch-gelb#configure terminal | ||
| + | Enter configuration commands, one per line. End with CNTL/Z. | ||
| + | *switch-gelb(config)#interface FastEthernet1/0/48 | ||
| + | *switch-gelb(config-if)#switchport trunk encapsulation ? | ||
| + | dot1q Interface uses only 802.1q trunking encapsulation when trunking | ||
| + | isl Interface uses only ISL trunking encapsulation when trunking | ||
| + | negotiate Device will negotiate trunking encapsulation with peer on interface | ||
| + | *switch-gelb(config-if)#switchport trunk encapsulation dot1q | ||
| + | *switch-gelb(config-if)#switchport mode trunk | ||
| + | *switch-gelb(config-if)#do show interfaces trunk | ||
| + | <pre> | ||
| + | Port Mode Encapsulation Status Native vlan | ||
| + | Fa1/0/48 on 802.1q trunking 1 | ||
| + | |||
| + | Port Vlans allowed on trunk | ||
| + | Fa1/0/48 1-4094 | ||
| + | |||
| + | Port Vlans allowed and active in management domain | ||
| + | Fa1/0/48 1,10,20,30 | ||
| + | |||
| + | Port Vlans in spanning tree forwarding state and not pruned | ||
| + | Fa1/0/48 1 | ||
| + | </pre> | ||
| + | |||
| + | *switch-rot(config)#interface Gi1/0/24 | ||
| + | *switch-rot(config-if)#switchport trunk encapsulation dot1q | ||
| + | *switch-rot(config-if)#switchport mode trunk | ||
| + | *switch-rot(config-if)#do show interfaces trunk | ||
| + | <pre> | ||
| + | Port Mode Encapsulation Status Native vlan | ||
| + | Gi1/0/24 on 802.1q trunking 1 | ||
| + | |||
| + | Port Vlans allowed on trunk | ||
| + | Gi1/0/24 1-4094 | ||
| + | |||
| + | Port Vlans allowed and active in management domain | ||
| + | Gi1/0/24 1,10,20,30 | ||
| + | |||
| + | Port Vlans in spanning tree forwarding state and not pruned | ||
| + | Gi1/0/24 1,10,20,30 | ||
| + | </pre> | ||
| + | =Anzeige des Trunkinetrfaces= | ||
| + | *switch-gelb#show interfaces FastEthernet1/0/48 switchport | ||
| + | <pre> | ||
| + | Name: Fa1/0/48 | ||
| + | Switchport: Enabled | ||
| + | Administrative Mode: trunk | ||
| + | Operational Mode: trunk | ||
| + | Administrative Trunking Encapsulation: dot1q | ||
| + | Operational Trunking Encapsulation: dot1q | ||
| + | Negotiation of Trunking: On | ||
| + | Access Mode VLAN: 1 (default) | ||
| + | Trunking Native Mode VLAN: 1 (default) | ||
| + | Administrative Native VLAN tagging: enabled | ||
| + | Voice VLAN: none | ||
| + | Administrative private-vlan host-association: none | ||
| + | Administrative private-vlan mapping: none | ||
| + | Administrative private-vlan trunk native VLAN: none | ||
| + | Administrative private-vlan trunk Native VLAN tagging: enabled | ||
| + | Administrative private-vlan trunk encapsulation: dot1q | ||
| + | Administrative private-vlan trunk normal VLANs: none | ||
| + | Administrative private-vlan trunk associations: none | ||
| + | Administrative private-vlan trunk mappings: none | ||
| + | Operational private-vlan: none | ||
| + | Trunking VLANs Enabled: ALL | ||
| + | Pruning VLANs Enabled: 2-1001 | ||
| + | Capture Mode Disabled | ||
| + | Capture VLANs Allowed: ALL | ||
| + | |||
| + | Protected: false | ||
| + | Unknown unicast blocked: disabled | ||
| + | Unknown multicast blocked: disabled | ||
| + | Appliance trust: none | ||
</pre> | </pre> | ||
Aktuelle Version vom 1. Februar 2016, 11:10 Uhr
Zwei Switche
- switch-gelb#
- switch-rot#
status switch-gelb
- switch-gelb#show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa1/0/1, Fa1/0/2, Fa1/0/3, Fa1/0/6, Fa1/0/7, Fa1/0/8
Fa1/0/12, Fa1/0/18, Fa1/0/19, Fa1/0/20, Fa1/0/21
Fa1/0/22, Fa1/0/23, Fa1/0/24, Fa1/0/25, Fa1/0/26
Fa1/0/27, Fa1/0/28, Fa1/0/29, Fa1/0/30, Fa1/0/31
Fa1/0/32, Fa1/0/33, Fa1/0/34, Fa1/0/35, Fa1/0/36
Fa1/0/37, Fa1/0/38, Fa1/0/39, Fa1/0/40, Fa1/0/41
Fa1/0/42, Fa1/0/43, Fa1/0/44, Fa1/0/45, Fa1/0/46
Fa1/0/47, Fa1/0/48, Gi1/0/1, Gi1/0/2, Gi1/0/3, Gi1/0/4
10 office active Fa1/0/4, Fa1/0/5
20 work active Fa1/0/9, Fa1/0/10, Fa1/0/11
30 labor active Fa1/0/13, Fa1/0/14, Fa1/0/15, Fa1/0/16, Fa1/0/17
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
status switch-rot
- switch-rot#show vlan brief
switch-rot#show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Gi1/0/1, Gi1/0/2, Gi1/0/3
Gi1/0/4, Gi1/0/5, Gi1/0/6
Gi1/0/7, Gi1/0/8, Gi1/0/9
Gi1/0/10, Gi1/0/11, Gi1/0/12
Gi1/0/13, Gi1/0/14, Gi1/0/15
Gi1/0/16, Gi1/0/17, Gi1/0/18
Gi1/0/19, Gi1/0/20, Gi1/0/21
Gi1/0/22, Gi1/0/23, Gi1/0/24
Gi1/0/25, Gi1/0/26, Gi1/0/27
Gi1/0/28
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
switch-rot auf stand von swich-gelb bringen
- switch-rot#configure terminal
- switch-rot(config)#vlan 10
- switch-rot(config-vlan)#name office
- switch-rot(config-vlan)#vlan 20
- switch-rot(config-vlan)#name work
- switch-rot(config-vlan)#vlan 30
- switch-rot(config-vlan)#name labor
- switch-rot(config)#end
interfaces vlans zuordnen
- switch-rot(config)#interface range Gi1/0/3 - 6
- switch-rot(config-if-range)#switchport access vlan 10
- switch-rot(config-if-range)#switchport mode access
- switch-rot(config-if-range)#interface range Gi1/0/7 - 10
- switch-rot(config-if-range)#switchport access vlan 20
- switch-rot(config-if-range)#switchport mode access
- switch-rot(config-if-range)#interface range Gi1/0/11 - 14
- switch-rot(config-if-range)#switchport access vlan 30
- switch-rot(config-if-range)#switchport mode access
- switch-rot(config-if-range)#end
vlan anzeigen
- switch-rot#show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Gi1/0/1, Gi1/0/2, Gi1/0/15
Gi1/0/16, Gi1/0/17, Gi1/0/18
Gi1/0/19, Gi1/0/20, Gi1/0/21
Gi1/0/22, Gi1/0/23, Gi1/0/24
Gi1/0/25, Gi1/0/26, Gi1/0/27
Gi1/0/28
10 office active Gi1/0/3, Gi1/0/4, Gi1/0/5
Gi1/0/6
20 work active Gi1/0/7, Gi1/0/8, Gi1/0/9
Gi1/0/10
30 labor active Gi1/0/11, Gi1/0/12, Gi1/0/13
Gi1/0/14
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
trunk interfaces einstellen
- switch-gelb#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
- switch-gelb(config)#interface FastEthernet1/0/48
- switch-gelb(config-if)#switchport trunk encapsulation ?
dot1q Interface uses only 802.1q trunking encapsulation when trunking isl Interface uses only ISL trunking encapsulation when trunking negotiate Device will negotiate trunking encapsulation with peer on interface
- switch-gelb(config-if)#switchport trunk encapsulation dot1q
- switch-gelb(config-if)#switchport mode trunk
- switch-gelb(config-if)#do show interfaces trunk
Port Mode Encapsulation Status Native vlan Fa1/0/48 on 802.1q trunking 1 Port Vlans allowed on trunk Fa1/0/48 1-4094 Port Vlans allowed and active in management domain Fa1/0/48 1,10,20,30 Port Vlans in spanning tree forwarding state and not pruned Fa1/0/48 1
- switch-rot(config)#interface Gi1/0/24
- switch-rot(config-if)#switchport trunk encapsulation dot1q
- switch-rot(config-if)#switchport mode trunk
- switch-rot(config-if)#do show interfaces trunk
Port Mode Encapsulation Status Native vlan Gi1/0/24 on 802.1q trunking 1 Port Vlans allowed on trunk Gi1/0/24 1-4094 Port Vlans allowed and active in management domain Gi1/0/24 1,10,20,30 Port Vlans in spanning tree forwarding state and not pruned Gi1/0/24 1,10,20,30
Anzeige des Trunkinetrfaces
- switch-gelb#show interfaces FastEthernet1/0/48 switchport
Name: Fa1/0/48 Switchport: Enabled Administrative Mode: trunk Operational Mode: trunk Administrative Trunking Encapsulation: dot1q Operational Trunking Encapsulation: dot1q Negotiation of Trunking: On Access Mode VLAN: 1 (default) Trunking Native Mode VLAN: 1 (default) Administrative Native VLAN tagging: enabled Voice VLAN: none Administrative private-vlan host-association: none Administrative private-vlan mapping: none Administrative private-vlan trunk native VLAN: none Administrative private-vlan trunk Native VLAN tagging: enabled Administrative private-vlan trunk encapsulation: dot1q Administrative private-vlan trunk normal VLANs: none Administrative private-vlan trunk associations: none Administrative private-vlan trunk mappings: none Operational private-vlan: none Trunking VLANs Enabled: ALL Pruning VLANs Enabled: 2-1001 Capture Mode Disabled Capture VLANs Allowed: ALL Protected: false Unknown unicast blocked: disabled Unknown multicast blocked: disabled Appliance trust: none