ATEN-Chapter 4 Comprehensive Experiment

Source: Internet
Author: User

Tool used in the experiment: Xiao fan Simulator
Lab 1:

1. Change the device name, activate the port, and set it to Trunk.
3L-SW1
Router>
Router> enable
Router # config terminal
Router (config) # hostname 3L-sw1-jing
3L-sw1-jing (config) # interface range f0/1-2, f0/11-12
3L-sw1-jing (config-if-range) # switchport mode trunk
3L-sw1-jing (config-if-range) # no shutdown
3L-sw1-jing (config-if-range) # end
3L-SW2
Router> enable
Router # config terminal
Router (config) # hostname 3L-sw2-jing
3L-sw2-jing (config) # interface range f0/1-2, f0/11-12
3L-sw2-jing (config-if-range) # switchport mode trunk
3L-sw2-jing (config-if-range) # no shutdown
3L-sw2-jing (config-if-range) # end
2L-SW3
Router>
Router> enable
Router # config terminal
Router (config) # hostname 2L-sw3-jin
2L-sw3-jin (config) # interface range f0/11-12
2L-sw3-jin (config-if-range) # switchport mode trunk
2L-sw3-jin (config-if-range) # interface range f0/11-12, f0/1-2
2L-sw3-jin (config-if-range) # no shutdown
2L-sw3-jin (config-if-range) # end
2L-SW4
Router>
Router> enable
Router # config terminal
Router (config) # hostname 2L-sw4-jin
2L-sw4-jin (config) # interface range f0/11-12
2L-sw4-jin (config-if-range) # switchport mode trunk
2L-sw4-jin (config-if-range) # interface range f0/11-12, f0/1-2
2L-sw4-jin (config-if-range) # no shutdown
2L-sw4-jin (config-if-range) # end
2. Configure VTP, create a vlan, and add the port to the corresponding vlan in 2L-SW
3L-SW1
3L-sw1-jin #
3L-sw1-jin # vlan database
3L-sw1-jin (vlan) # vtp domain t208
3L-sw1-jin (vlan) # vlan 2 name jishubu
3L-sw1-jin (vlan) # vlan 3 name renshibu
3L-sw1-jin (vlan) # vlan 4 name caiwubu
3L-sw1-jin (vlan) # vlan 5 name shichangbu
3L-sw1-jin (vlan) # exit
3L-sw1-jin # show vtp status
3L-sw1-jin # show vlan-s
3L-SW2
3L-sw2-jin # show vtp status
3L-sw2-jin # show vlan-s
2L-SW3
2L-sw3-jin # show vtp status
2L-sw3-jin # show vlan-s
2L-sw3-jin # config terminal
2L-sw3-jin (config) # interface f0/1
2L-sw3-jin (config-if) # switchport access vlan 2
2L-sw3-jin (config-if) # interface f0/2
2L-sw3-jin (config-if) # switchport access vlan 3
2L-sw3-jin (config-if) # end
2L-sw3-jin # show vlan-s
2L-SW4
2L-sw4-jin # show vtp status
2L-sw4-jin # show vlan-s
2L-sw4-jin # config terminal
2L-sw4-jin (config) # interface f0/1
2L-sw4-jin (config-if) # switchport access vlan 4
2L-sw4-jin (config-if) # interface f0/2
2L-sw4-jin (config-if) # switchport access vlan 5
2L-sw4-jin (config-if) # end
2L-sw4-jin # show vlan-s
3. Configure ip addresses for vlan on two 3L-sw layer-3 switches
3L-SW1
3L-sw1-jin # config terminal
3L-sw1-jin (config) # ip routing
3L-sw1-jin (config) # interface vlan 2
3L-sw1-jin (config-if) # ip address 255.0.0.1 255.0.0.0
3L-sw1-jin (config-if) # no shutdown
3L-sw1-jin (config-if) # interface vlan 3
3L-sw1-jin (config-if) # ip address 30.0.0.1 255.0.0.0
3L-sw1-jin (config-if) # no shutdown
3L-sw1-jin (config-if) # interface vlan 4
3L-sw1-jin (config-if) # ip address 40.0.0.1 255.0.0.0
3L-sw1-jin (config-if) # no shutdown
3L-sw1-jin (config-if) # interface vlan 5
3L-sw1-jin (config-if) # ip address 50.0.0.1 255.0.0.0
3L-sw1-jin (config-if) # no shutdown
3L-sw1-jin (config-if) # end
3L-sw1-jin # show ip interface brief
3L-SW2
3L-sw2-jin # config terminal
3L-sw2-jin (config) # ip routing
3L-sw2-jin (config) # interface vlan 2
3L-sw2-jin (config-if) # ip address 255.0.0.2 255.0.0.0
3L-sw2-jin (config-if) # no shutdown
3L-sw2-jin (config-if) # interface vlan 3
3L-sw2-jin (config-if) # ip address 30.0.0.2 255.0.0.0
3L-sw2-jin (config-if) # no shutdown
3L-sw2-jin (config-if) # interface vlan 4
3L-sw2-jin (config-if) # ip address 40.0.0.2 255.0.0.0
3L-sw2-jin (config-if) # no shutdown
3L-sw2-jin (config-if) # interface vlan 5
3L-sw2-jin (config-if) # ip address 50.0.0.2 255.0.0.0
3L-sw2-jin (config-if) # no shutdown
3L-sw2-jin (config-if) # end
3L-sw2-jin # show ip interface brief
4. Configure the Ethernet channel (EthernetChannel) on two 3L-SW Switches)
3L-SW1
3L-sw1-jin # config terminal
3L-sw1-jin (config) # interfac range f0/1-2
3L-sw1-jin (config-if-range) # channel-group 1 mode on
3L-sw1-jin (config-if-range) # end
3L-sw1-jin # show etherchannel 1 summary
3L-SW2
3L-sw2-jin # config terminal
3L-sw2-jin (config) # interface range f0/1-2
3L-sw2-jin (config-if-range) # channel-group 1 mode on
3L-sw2-jin (config-if-range) # end
3L-sw2-jin # show etherchannel 1 summary
5. Configure the root bridge on the 3L-SW and vlan2-3--3L-SW1 as the root bridge.
Vlan4-5--3L-SW2 is the root bridge
And act as the backup root bridge for each other.
3L-SW1
3L-sw1-jin # config terminal
3L-sw1-jin (config) # spanning-tree vlan 2 root primary
3L-sw1-jin (config) # spanning-tree vlan 3 root primary
3L-sw1-jin (config) # spanning-tree vlan 4 root secondary
3L-sw1-jin (config) # spanning-tree vlan 5 root secondary
3L-sw1-jin (config) # exit
3L-sw1-jin # show spanning-tree brief
3L-SW2
3L-sw2-jin # config terminal
3L-sw2-jin (config) # spanning-tree vlan 4 root primary
3L-sw2-jin (config) # spanning-tree vlan 5 root secondary
3L-sw2-jin (config) # spanning-tree vlan 5 root primary
3L-sw2-jin (config) # spanning-tree vlan 2 root secondary
3L-sw2-jin (config) # spanning-tree vlan 3 root secondary
3L-sw2-jin (config) # exit
3L-sw2-jin # show spanning-tree brief
6. Configure the uplink speed link and speed port on the 2L-SW vswitches respectively.
2L-SW3
2L-sw3-jin # config terminal
2L-sw3-jin (config) # spanning-tree uplinkfast
2L-sw3-jin (config) # interface f0/12
2L-sw3-jin (config-if) # spanning-tree portfast
2L-sw3-jin (config-if) # end
2L-sw3-jin # show spanning-tree brief
2L-SW4
2L-sw4-jin # config terminal
2L-sw4-jin (config) # spanning-tree uplinkfast
2L-sw4-jin (config) # interface f0/12
2L-sw4-jin (config-if) # spanning-tree portfast
2L-sw4-jin (config-if) # end
2L-sw4-jin # show spanning-tree brief
7. Run the show command to view the configurations of each vswitch.
Show vlan-s
Show vtp status
Show ip interface brief
Show ip route
Show interface trunk
Show etherchannel 1 summary
Show spanning-tree brief
8. Configure the ip address of the PC for verification.
VPCS 1>
VPCS 1> show
VPCS 1> ip Route 0.0.3 route 0.0.1 8
VPCS 1> 2
VPCS 2> ip 30.0.0.3 30.0.0.1 8
VPCS 2> 3
VPCS 3> ip address 40.0.0.3 40.0.0.2 8
VPCS 3> 4
VPCS 4> ip 50.0.0.3 50.0.0.2 8
VPCS 4> show
VPCS 4> ping 40.0.0.2
VPCS 4> ping 40.0.0.3
VPCS 4> ping 30.0.0.3
VPCS 4> ping 255.0.0.3
The experiment is complete !!
Lab 2:

1. Change the device name, activate the port, and set it to trunk.
2L-SW1
Router>
Router> enable
Router # config terminal
Router (config) # hostname 2L-sw1-jin
2L-sw1-jin (config) # interface range f0/0, f0/15
2L-sw1-jin (config-if-range) # switchport mode trunk
2L-sw1-jin (config-if-range) # interface range f0/0-3, f0/15
2L-sw1-jin (config-if-range) # no shutdown
2L-sw1-jin (config-if-range) # end
2L-SW2
Router>
Router> enable
Router # config terminal
Router (config) # hostname 2L-sw2-jin
2L-sw2-jin (config) # interface range f0/15
2L-sw2-jin (config-if-range) # switchport mode trunk
2L-sw2-jin (config-if-range) # interface range f0/15, f0/1-3
2L-sw2-jin (config-if-range) # no shutdown
2L-sw2-jin (config-if-range) # end
2L-SW3
Router>
Router> enable
Router # config terminal
Router (config) # hostname 2L-sw3-jin
2L-sw3-jin (config) # interface range f0/0
2L-sw3-jin (config-if-range) # switchport mode trunk
2L-sw3-jin (config-if-range) # interface range f0/0-2
2L-sw3-jin (config-if-range) # no shutdown
2L-sw3-jin (config-if-range) # end
3L-SW4
Router>
Router> enable
Router # config terminal
Router (config) # hostname 3L-sw4-jin
3L-sw4-jin (config) # interface f0/0
3L-sw4-jin (config-if) # switchport mode trunk
3L-sw4-jin (config-if) # no shutdown
3L-sw4-jin (config-if) # end
R1
Router>
Router> enable
Router # config terminal
Router (config) # hostname R1-jin
2. Configure VTP, create VLANs, add ports to corresponding VLANs on 2L-SW1 and 2, create VLANs on 2L-SW3, and add corresponding ports; set IP addresses for VLANs 2L-SW1 and 2 on 3L-SW4

2L-SW1
2L-sw1-jin # vlan database
2L-sw1-jin (vlan) # vtp domain t208
2L-sw1-jin (vlan) # vlan 2 name jishubu
2L-sw1-jin (vlan) # vlan 3 name renshibu
2L-sw1-jin (vlan) # exit
2L-sw1-jin # show vtp status
2L-sw1-jin # show vlan-s
2L-sw1-jin # config terminal
2L-sw1-jin (config) # interface range f0/1-2
2L-sw1-jin (config-if-range) # switchport access vlan 2
2L-sw1-jin (config-if-range) # interface f0/3
2L-sw1-jin (config-if) # switchport access vlan 3
2L-sw1-jin (config-if) # end
2L-sw1-jin # show vlan-s
2L-SW2
2L-sw2-jin # show vtp status
2L-sw2-jin # show vlan-s
2L-sw2-jin # config terminal
2L-sw2-jin (config) # interface range f0/1-2
2L-sw2-jin (config-if-range) # switchport access vlan 3
2L-sw2-jin (config-if-range) # interface f0/3
2L-sw2-jin (config-if) # switchport access vlan 2
2L-sw2-jin (config-if) # end
2L-sw2-jin # show vlan-s
2L-SW3
2L-sw3-jin # show vlan-s
2L-sw3-jin # vlan database
2L-sw3-jin (vlan) # vlan 2
2L-sw3-jin (vlan) # vlan 3
2L-sw3-jin (vlan) # exit
2L-sw3-jin # show vlan-s
2L-sw3-jin # config terminal
2L-sw3-jin (config) # interface f0/1
2L-sw3-jin (config-if) # switchport access vlan 2
2L-sw3-jin (config-if) # interface f0/2
2L-sw3-jin (config-if) # switchport access vlan 3
2L-sw3-jin (config-if) # end
2L-sw3-jin # show vlan-s
3L-SW4
3L-sw4-jin # show vtp status
3L-sw4-jin # show vlan-s
3L-sw4-jin # config terminal
3L-sw4-jin (config) # ip routing
3L-sw4-jin (config) # interface vlan 2
3L-sw4-jin (config-if) # ip address 255.0.0.1 255.0.0.0
3L-sw4-jin (config-if) # no shutdown
3L-sw4-jin (config-if) # interface vlan 3
3L-sw4-jin (config-if) # ip address 30.0.0.1 255.0.0.0
3L-sw4-jin (config-if) # no shutdown
3L-sw4-jin (config-if) # end
3L-sw4-jin # show ip interface brief
3. enable routing interface on 3L-SW4, configure single-arm routing on R1, and then configure Static Routing respectively.
3L-SW4
3L-sw4-jin # config terminal
Enter configuration commands, one per line. End with CNTL/Z.
3L-sw4-jin (config) # interface f0/1
3L-sw4-jin (config-if) # no switchport
3L-sw4-jin (config-if) # ip address 10.0.0.1 255.0.0.0
3L-sw4-jin (config-if) # no shutdown
3L-sw4-jin (config-if) # end
3L-sw4-jin # config terminal
3L-sw4-jin (config) # ip route 40.0.0.0 255.0.0.0 10.0.0.2
3L-sw4-jin (config) # ip route 50.0.0.0 255.0.0.0 10.0.0.2
3L-sw4-jin (config) # exit
3L-sw4-jin # show ip route
R1
R1-jin> enable
R1-jin # config terminal
R1-jin (config) # interface f0/0
R1-jin (config-if) # no shutdown
R1-jin (config-if) # interface f0/0.1
R1-jin (config-subif) # encapsulation dot1q 2
R1-jin (config-subif) # ip address 40.0.0.1 255.0.0.0
R1-jin (config-subif) # no shutdown
R1-jin (config-subif) # interface f0/0.2
R1-jin (config-subif) # encapsulation dot1q 3
R1-jin (config-subif) # ip address 50.0.0.1 255.0.0.0
R1-jin (config-subif) # no shutdown
R1-jin (config-subif) # exit
R1-jin (config) # interface f1/0
R1-jin (config-if) # ip address 10.0.0.2 255.0.0.0
R1-jin (config-if) # no shutdown
R1-jin (config-if) # exit
R1-jin (config) # ip route 0.0.0 255.0.0.0 10.0.0.1
R1-jin (config) # ip route 30.0.0.0 255.0.0.0 10.0.0.1
R1-jin (config) # exit
R1-jin # show ip route
4. Configure the PC for verification: implement full Netcom mail
VPCS 1>
VPCS 1> show
VPCS 1> ip address 255.0.0.2 255.0.0.1 8
VPCS 1> 2
VPCS 2> ip Route 0.0.3 route 0.0.1 8
VPCS 2> 3
VPCS 3> ip 30.0.0.2 30.0.0.1 8
VPCS 3> 4
VPCS 4> ip 30.0.0.3 30.0.0.1 8
VPCS 4> 5
VPCS 5> ip 30.0.0.4 30.0.0.1 8
VPCS 5> 6
VPCS 6> ip address 255.0.0.4 255.0.0.1 8
VPCS 6> 7
VPCS 7> ip 40.0.0.2 40.0.0.1 8
VPCS 7> 8
VPCS 8> ip 50.0.0.2 50.0.0.1 8
VPCS 8> show
Name ip/CIDR GATEWAY
PC1 255.0.0.2/8 255.0.0.1
PC2 255.0.0.3/8 255.0.0.1
PC3 30.0.0.2/8 30.0.0.1
PC4 30.0.0.3/8 30.0.0.1
PC5 30.0.0.4/8 30.0.0.1
PC6 255.0.0.4/8 255.0.0.1
PC7 40.0.0.2/8 40.0.0.1
PC8 50.0.0.2/8 50.0.0.1
PC9 0.0.0.0/0 0.0.0.0
VPCS 8> ping 40.0.0.2
40.0.0.2 icmp_seq = 1 timeout -- timeout
40.0.0.2 icmp_seq = 2 time = 62.000 MS -- connect OK!
40.0.0.2 icmp_seq = 3 time = 63.000 MS
40.0.0.2 icmp_seq = 4 time = 62.000 MS
40.0.0.2 icmp_seq = 5 time = 63.000 MS
VPCS 8> ping 30.0.0.2
VPCS 8> ping 30.0.0.3
VPCS 8> ping 30.0.0.4
VPCS 8> ping 255.0.0.2
VPCS 8> ping 255.0.0.3
VPCS 8> ping 255.0.0.4
VPCS 8> 7
VPCS 7> ping 30.0.0.2
VPCS 7> ping 30.0.0.3
VPCS 7> ping 255.0.0.4
VPCS 7> 1
VPCS 1> ping 255.0.0.4
VPCS 1> ping 30.0.0.4
VPCS 1> 3
VPCS 3> ping 30.0.0.4

Author: ""

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.