Cisco layer-3 Switching Network Construction

Source: Internet
Author: User

Shows the network topology:

3560 Configuration:
 
Switch> enable
Switch # config terminal
Switch (config) # hostname 3560
3560 (config) # enable secret glable
3560 (config) # line vty 0 15
3560 (config-line) # password telnet
3560 (config-line) # login
3560 (config-line) # exit
3560 (config) # exit
3560 # vlan database
3560 (vlan) # vtp domain full
3560 (vlan) # vtp server
3560 (vlan) # exit
3560 # config terminal
3560 (config) # vlan 2
3560 (config-vlan) # vlan 3
3560 (config-vlan) # vlan 4
3560 (config-vlan) # interface f0/1
3560 (config-if) # switchport trunk allowed vlan all
3560 (config-if) # switchport trunk encapsulation dot1q
3560 (config-if) # switchport mode trunk
3560 (config-if) # interface f0/2
3560 (config-if) # switchport trunk allowed vlan all
3560 (config-if) # switchport trunk encapsulation dot1q
3560 (config-if) # switchport mode trunk
3560 (config-if) # interface vlan 2
3560 (config-if) # ip address 192.168.1.254 255.255.255.0
3560 (config-if) # no shutdown
3560 (config-if) # interface vlan 3
3560 (config-if) # ip address 192.168.2.254 255.255.255.0
3560 (config-if) # no shutdown
3560 (config-if) # interface vlan 4
3560 (config-if) # ip address 192.168.3.254 255.255.255.0
3560 (config-if) # no shutdown
3560 (config-if) # exit
3560 (config) # exit
3560 # write
 
2960A Configuration:
 
Switch>
Switch> enalbe
Switch # config terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch (config) # hostname Market
Market (config) # enable secret 12345
Market (config) # line vty 0 15
Market (config-line) # password telnet
Market (config-line) # login
Market (config-line) # exit
Market (config) # exit
Market # vlan
Market # vlan database
Market (vlan) # vtp domain full
Market (vlan) # vtp client
Market (vlan) # exit
Market # config terminal
Market (config) # interface f0/1
Market (config-if) # switchport mode trunk
Market (config-if) # switchport trunk allowed vlan all
Market (config-if) # interface range f0/2-24
Market (config-if-range) # switchport access vlan 2
Market (config-if-range) # exit
Market (config) # exit
Market # write
 
2960B Configuration:
 
Switch> enable
Switch # config terminal
Switch (config) # hostname pro
Pro (config) # enable secret 1234
Pro (config) # line vty 0 15
Pro (config-line) # password telnet
Pro (config-line) # login
Pro (config-line) # exit
Pro (config) # exit
Pro # vlan database
Pro (vlan) # vtp domain full
Pro (vlan) # vtp client
Pro (vlan) # exit
Pro (config) # int f0/1
Pro (config-if) # switchport mode trunk
Pro (config-if) # switchport trunk allowed vlan all
Pro (config-if) # int f0/2
Pro (config-if) # switchport access vlan 3
Pro (config-if) # int f0/20
Pro (config-if) # switchport access vlan 4
Pro (config-if) # exit
Pro (config) # exit
Pro # write
 
Configure computer 0
IP: 192.168.1.1
Subnet Mask: 255.255.255.0
Gateway: 192.168.1.254
 
Configure computer 1
IP: 192.168.2.1
Subnet Mask: 255.255.255.0
Gateway: 192.168.2.254
 
Configure computer 2
IP: 192.168.3.1
Subnet Mask: 255.255.255.0
Gateway: 192.168.3.254
Ping each other between computers, collect packets normally, and build the network.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.