IT rookie of the Basic Configuration Switch

Switch belonging to layer two device (belonging to the second layer in the seven layer model osi: data link layer, the IP address does not support recognition) 
> User mode is used to log onto the device
# Privilege mode is used to query the device configuration
(Config) # global mode to configure the device
(Config-VLAN) # VLAN configuration mode (global mode)
(Config-if) # Port Mode
enable a user to log mode privileged mode
configure terminal for switching the global mode privileged mode
exit for the respective higher mode switching mode
interface fastethernet 0/1 Enter port
switchport access vlan 2 calls vlan 2
Port switching device has two modes:
access mode (the default) will be added during this mode, the port needs to be added to the corresponding vlan, the port and into the tag, the tag is determined for an out before, after removing out the label (and the switching device commonly used in computers connected to):
trunk mode : In this mode, the port does not belong to any VLAN, since two switching devices for connecting trunk, does not determine before going out, does not go out after removal of
Added: Trunk for connecting two switching devices
commonly used in the access and switching devices connected to the computer
switchport mode trunk port into the trunk mode
Two switching devices, wherein the trunk is provided a mode switching device as trunk port, the other port of the switching device connected thereto to set the synchronization

 

Guess you like

Origin www.cnblogs.com/renyz/p/11141141.html