Cisco 2 routing vlan command to create a configuration

Switcher can be vlan (VLAN) division, to prevent the occurrence probability of broadcast storms.

Switch # vlan data # to enter the vlan mode
Switch (vlan) #vlan 10 name a # vlan 10 create and name a 
cancellation creation of vlan 10 Switch (vlan) #no vlan 10 name a #, in front of the no statement to delete statement
Switch (config) #interface f0 / 1 # proceeds to f0 / 1 interface to the
Switch (config-if) #switchport mode access # Set f0 / 1 Interface Mode
Switch (config-if) #switchport access vlan 10 # interface is added 10 to VLAN Switch (config) #interface Range f0 / 2-3 # proceeds to f0 / 2-3 under Interface
Switch (config-if-range) #switchport mode access # set f0 / 2-3 Interface mode
Switch (config- if-range) #switchport access vlan 10 # current range interface to the vlan 10
Switch (config-if) #switchport mode trunk # sets the current interface to the trunk mode 
Switch (config-if) #switchport trunk allowed vlan all # Allow all provided by vlan
Switch (config-if-range) #switchport mode trunk # sets the current All interfaces as trunk
Switch (config-if-range) #switchport trunk allowed vlan all # allow all provided by vlan

Guess you like

Origin www.cnblogs.com/Dpkg/p/12183088.html