Cisco intrinsic VLAN packet capture experiment

Source: Internet
Author: User

Experiment: packet capture with intrinsic VLAN

Lab topology

650) this. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/4D/D3/wKiom1Ra2eXDvF5vAACuEQ7Gk7A838.jpg "title =" Image 1.png "style =" float: none; "alt =" wKiom1Ra2eXDvF5vAACuEQ7Gk7A838.jpg "/>

Lab requirements

The two PCs are in the same VLAN, so that the VLAN on the two lines is different. After communication, capture packets and view the data frame encapsulation on the two lines.

Lab procedure

1. Create a VLAN on the vSwitch

R1 # vlan database

R1 (vlan) # vlan 2

VLAN 2 added:

Name: VLAN0002

R1 (vlan) # vlan 3

VLAN 3 added:

Name: VLAN0003

R1 (vlan) # exit

APPLY completed.

Exiting ....

 

R2 # vlan database

R2 (vlan) # vlan 2

VLAN 2 added:

Name: VLAN0002

R2 (vlan) # vlan 3

VLAN 3 added:

Name: VLAN0003

R2 (vlan) # exit

APPLY completed.

Exiting ....

 

R3 # vlan database

R3 (vlan) # vlan 2

VLAN 2 added:

Name: VLAN0002

R3 (vlan) # vlan 3

VLAN 3 added:

Name: VLAN0003

R3 (vlan) # exit

APPLY completed.

Exiting ....

2. Place the interface connected to the PC into the corresponding VLAN

R1 (config) # int f0/0

R1 (config-if) # switchport access vlan 2

 

R3 (config-if) # int f0/0

R3 (config-if) # switchport access vlan 2

3. Change the interfaces connected to the vSwitch to the trunk port, encapsulate 802.1q frames, and modify the intrinsic VLAN. native 2 is used between R1 and R2, and native 3 is used between R2 and R3.

R1 (config-if) # int f0/1

R1 (config-if) # switchport mode trunk // modify the interface type

R1 (config-if) # switchport trunk native vlan 2 // modify the intrinsic VLAN

R1 (config-if) # switchport trunk encapsulation dot1q // encapsulate 802.1q frames

 

R2 (config) # int f0/1

R2 (config-if) # switchport mode trunk

R2 (config-if) # switchport trunk native vlan 2

R2 (config-if) # switchport trunk encapsulation dot1q

R2 (config-if) # int f0/2

R2 (config-if) # switchport mode trunk

R2 (config-if) # switchport trunk native vlan 3

R2 (config-if) # switchport trunk encapsulation dot1q

 

R3 (config-if) # int f0/1

R3 (config-if) # switchport trunk native vlan 3

R3 (config-if) # switchport trunk encapsulation dot1q

4. Configure IP addresses for PCs

650) this. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/4D/D2/wKioL1Ra2kiBtlxJAABnVfphtr4890.jpg "title =" Image 2.png "style =" float: none; "alt =" wKioL1Ra2kiBtlxJAABnVfphtr4890.jpg "/>

5. View communication

650) this. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/4D/D2/wKioL1Ra2kjAb_KlAACDNbW3YG8425.jpg "title =" Image 3.png "style =" float: none; "alt =" wkiol1ra2kjab_klaacdnbw3yg8w.jpg "/>

6. View captured packages

(1) between R1 and R2

650) this. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/4D/D3/wKiom1Ra2eWiGTaAAAOSUW9qcLA676.jpg "title =" Image 4.png "style =" float: none; "alt =" wkiom1ra2ewitaaaaosuw9qcla676.jpg "/> 650) this. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/4D/D2/wKioL1Ra2kjz-OwEAAEViZdW18M477.jpg "title =" Image 5.png "style =" float: none; "alt =" wKioL1Ra2kjz-OwEAAEViZdW18M477.jpg "/>

802.1q frame not encapsulated

(2) between R2 and R3

650) this. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/4D/D3/wKiom1Ra2eWTLwi3AAHZglOigNo875.jpg "title =" Image 6.png "style =" float: none; "alt =" wKiom1Ra2eWTLwi3AAHZglOigNo875.jpg "/>







Cisco intrinsic VLAN packet capture experiment

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.