Difference between revisions of "Switchport"
Jump to navigation
Jump to search
↑ https://community.cisco.com/t5/routing/can-we-assign-multiple-vlans-to-same-physical-switch-port-access/td-p/2289824
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | * <code>[[switchport]] mode access | trunk</code> | + | * <code>[[switchport]] mode access | [[trunk]]</code> |
− | ** switchport mode access | + | ** <code>switchport mode access</code> |
− | ** switchport mode trunk | + | ** <code>switchport mode trunk</code> |
* <code>[[switchport access]] vlan 45452</code> | * <code>[[switchport access]] vlan 45452</code> | ||
Line 12: | Line 12: | ||
switchport access vlan 4545 | 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> | ||
Line 22: | Line 27: | ||
* <code>[[show interfaces]]</code> | * <code>[[show interfaces]]</code> | ||
* <code>[[interface]]</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 == |
Latest revision as of 08:47, 15 February 2021
switchport mode access | trunk
switchport mode access
switchport mode trunk
switchport access vlan 45452
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
View all interfaces status:
show interfaces switchport
(Extended format)show vlan br
Related commands[edit]
show running-config interface TenGigabitEthernet 1/0/12
show interfaces
interface
- IOS: Create a new VLAN
- NAC:
switchport port-security mac-address 0050.3e8d.6400
switchport trunk native vlan ##
See also[edit]
- VLAN, VTP, VLAN Access-List (VACL), IOS: Create a VLAN, Change vlan configuration,
show vlan
,show vlan brief
,show vlan summary
,show vtp status
,switchport
,set vlan
,vtp mode transparent
- Cisco IOS: Cisco IOS XE, Config (mode), VLANs, Cisco IOS logging, VTP, ACLs,
show logging
,show logging history
,show interface status
,debug
,archive
,show archive
,conf t
,int
,ip http server
,ip ssh
,ip address
, vty,show mac address-table
,show access-list
, Access-list,ip access-group
,admin
Advertising: