vlan and three switches configuration

Configured on the swither1

en // enter privileged mode
conf t // into the global mode
vlan 10 // create 10 vlan
name xiaoshou // named
exit // return to the previous
vlan 20 // create 20 vlan
name Shichang // named
exit // return to the previous class
vlan 30 // create 30 vlan
name caiwu // named
exit // return to the previous

int r f0 / 5-10 // 5-10 simultaneously enter the interface configuration
sw ma // port to access mode
sw av // add port 10 to the vlan
Exit // Return an
int r f0 / 11- @ 11-15 15 simultaneously enter the interface configuration
sw ma // port to access mode
sw av // add port 20 to the vlan
Exit // return an
int r f0 / 16-20 // 16 simultaneously enter -20 configure the interface
sw ma // port to access mode
sw av // add port 30 to the vlan
Exit // return an
int f0 / 24 (two switch interfaces) // 24 enters the interface
sw mt // port mode to trunk mode
End
SH view vlan vlan br // information
sh vlan id 10 // view vlan 10 information
sh vlan name shichang // view vlan + name information
wr // save and exit

 

================================================== =====================
disposed on the swithcer 2

EN
the conf T
VLAN 10
name xiaoshou
Exit
VLAN 20 is
name Shichang
Exit
VLAN 30
name caiwu
Exit

int r f0/5-10
sw m a
sw a v 10
exit
int r f0/11-15
sw m a
sw a v 20
exit
int r f0/16-20
sw m a
sw a v 30
exit
int f0/24
sw m t
end
sh vlan br
sh vlan id 10
sh vlan name shichang
wr


===============================================
in three switch:

en // enter privileged mode
conf t // global pattern into
int f0 / 24 // 24 into the interface
sw t en dot1q // encapsulated
sw mt // port to Trunk mode
vlan 10 // Create VLAN10
VLAN 20 is created // VLAN20
VLAN 30 // Create VLAN30
EX // return an
ip routing // global mode
int vlan 10 // vlan10 entering the virtual interface
ip add 192.168.1.20 (pc1 gateway) + // subnet mask is arranged vlan10 ip address and subnet mask
int vlan 20 // vlan20 entering the virtual interface
ip add 192.168.2.20 (pc2 gateway) + // ip address configuration vlan20 subnet mask and a subnet mask
int vlan 30 // enter the vlan30 virtual interface
ip add 192.168.3.20 (pc3 gateway) + subnet mask arranged vlan30 // ip address and subnet mask
End // returns first layer
WR // save and exit

 

Guess you like

Origin www.cnblogs.com/XXXX001/p/11205248.html