Difference between revisions of "Switchport"

From wikieduonline
Jump to navigation Jump to search
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
* <code>[[switchport]] mode access | trunk</code>
+
* <code>[[switchport]] mode access | [[trunk]]</code>
* <code>switchport access vlan 45452</code>
+
** <code>switchport mode access</code>
 +
** <code>switchport mode trunk</code>
  
 +
* <code>[[switchport access]] vlan 45452</code>
 +
 +
 +
[[Change vlan configuration]] to port Gi1/0/99
 +
conf t
 +
int Gi1/0/99
 +
[[switchport]] mode access
 +
switchport access vlan 4545
 +
 +
 +
interface FastEthernet0/11
 +
  [[switchport trunk allowed]] vlan 10,20
 +
  switchport mode access
 +
<ref>https://community.cisco.com/t5/routing/can-we-assign-multiple-vlans-to-same-physical-switch-port-access/td-p/2289824</ref>
  
  
 
View all interfaces status:  
 
View all interfaces status:  
* <code>[[show interfaces switchport]]</code>
+
* <code>[[show interfaces switchport]]</code> (Extended format)
 
* <code>[[show vlan br]]</code>
 
* <code>[[show vlan br]]</code>
  
Related commands:
+
== Related commands ==
<code>show running-config interface TenGigabitEthernet 1/0/12</code>
+
* <code>[[show running-config]] interface TenGigabitEthernet 1/0/12</code>
 
+
* <code>[[show interfaces]]</code>
 +
* <code>[[interface]]</code>
 +
* [[IOS: Create a new VLAN]]
 +
* [[NAC]]: <code>[[switchport]] port-security [[mac-address]] 0050.3e8d.6400</code>
 +
* <code>[[switchport trunk native vlan]] ##</code>
  
 
== See also ==
 
== See also ==
* {{Cisco IOS}}
+
* {{vlan}}
 +
* {{IOS}}
  
  
 
[[Category:Cisco]]
 
[[Category:Cisco]]

Latest revision as of 08:47, 15 February 2021

Advertising: