Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Basic Question: Switchport Mode or Access ?? 1

Status
Not open for further replies.

bran2235

IS-IT--Management
Feb 13, 2002
703
0
0
US
Newby here...
What's difference here ???

Thanks!
Brandon
 
SORRY!! TYPO-

Question- Switchport Moae ACCESS or TRUNK??? What's the difference???


Thanks!
Brandon
 
Switchport mode - only allows 1 vlan - no tagging

switchport mode access
switchport access vlan 100

Trunking (802.1q) - allows multiple VLANs through 1 port - tagged VLANs - utilises Ingress and Egress and PVIDs.

switchport mode trunk (may require 802.1q as well)
switchport trunk allowed vlan (VLANs required)
Also a good idea to set a native VLAN on a trunked link.

Reamin positive. The affect on those around you will amaze.
 
Awesome info...
Thanks!
Brandon
 
Hi, I'm a Newbie Please Help.

After setting up a Cisco 3550-48 Switch, I get the following:

"Vlan1 is up, line protocol is down
Internet address is 10.156.138.16/25"

also, what does:
"interface FastEthernet0/1 switchport mode dynamic desirable" mean?


Here are the relevant setting from my config:

version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname WET-3548-1
!
enable secret
enable password
!
ip subnet-zero
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
!
!
!
interface FastEthernet0/1
switchport mode dynamic desirable
!
interface FastEthernet0/2
switchport mode dynamic desirable
!
!
!
!
!
!
!
interface FastEthernet0/48
switchport mode dynamic desirable
!
interface GigabitEthernet0/1
no switchport
no ip address
!
interface GigabitEthernet0/2
switchport mode dynamic desirable
!
interface Vlan1
ip address 10.156.138.16 255.255.255.128
no ip route-cache
!
ip classless
ip http server
!
!
line con 0
line vty 0 4
password
login
line vty 5 15
password
Login
!
!
end
 
switchport mode

To set the interface type, use the switchport mode command. To reset the mode to the appropriate default mode for the device, use the no form of this command.

switchport mode {access | dot1q-tunnel | trunk | dynamic {auto | desirable}}

switchport mode private-vlan {host | promiscuous | trunk}

no switchport mode dot1q-tunnel

no switchport mode private-vlan
Syntax Description

access


Specifies a nontrunking, nontagged single VLAN Layer 2 interface.

dot1q-tunnel


Specifies an 802.1Q tunnel port.

trunk


Specifies a trunking VLAN Layer 2 interface.

dynamic auto


Specifies that the interface convert the link to a trunk link.

dynamic desirable


Specifies that the interface actively attempt to convert the link to a trunk link.

private-vlan host


Specifies that the ports with a valid PVLAN trunk association become active host private VLAN trunk ports.

private-vlan promiscuous


Specifies that the ports with a valid PVLAN mapping become active promiscuous ports.

private-vlan trunk


Specifies that the ports with a valid PVLAN trunk association become active host private VLAN trunk ports.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top