This presentation is the property of its rightful owner.
Sponsored Links
1 / 58

虚拟局域网 PowerPoint PPT Presentation


  • 112 Views
  • Uploaded on
  • Presentation posted in: General

虚拟局域网. 3. 3. 4.1 虚拟局域网概述. 1. 3. 4.2 虚拟局域网的划分. 4.5 三层交换技术. 2. 5. 4.3 虚拟局域网的基本配置. 4.4 虚拟局域网中数据的转发. 4. 虚拟局域网. 4.1 虚拟局域网概述. 广播风暴的产生. 虚拟局域网的产生. 广播风暴导致的后果. 如何解决广播风暴的问题. 广播风暴的产生. 广播风暴的产生.

Download Presentation

虚拟局域网

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


5590994


5590994

3

3

4.1

1

3

4.2

4.5

2

5

4.3

4.4

4


5590994

4.1


5590994


5590994

Multicast Frame4-1ABARPBMACAARPFloodingARP


5590994

4-1 ARP


5590994


5590994

vlan

1-4VLAN

VLANVLANVLANVLANVLANVLANVLAN

4-2 VLAN


5590994

4.2

4.2.1 VLAN

VLANVLANVLAN 4-5

4-5 VLAN


5590994

1.

VLAN

2.

MACVLANVLANVLANMACIPVLANCISCOVLANVMPSMACVLANMACVLAN

VLAN


5590994

VLAN

VLAN

IPVLAN

VLAN

IPVLAN

MACVLAN

VLAN


1 vlan

1VLAN

VLANVLAN

PC

VLANVLAN

VLANPort-VLANTag-VLANAccessTrunkAccessPort-VLANTrunkVLANVLANTrunkVLANVLANTrunkNative-VLANNative-VLANTrunkTag-VLAN


2 vlan

2.VLAN

VLANIP


3 mac vlan

3.MACVLAN

MACVLANVLANMACVLANMAC

VLAN

MACVLANMACVLANVLAN

VLANVLAN

MACVLAN


4 ip vlan

4.IPVLAN

IPOSIVLANVLANVLANVLANVLANMACVLAN

VLANVLANVLAN

VLANVLANVLAN


5 ip vlan

5IPVLAN

VLANVLAN


6 vlan

6VLAN

VLANVLANVLAN

MAC

IP


4 2 2 native vlan

4.2.2 Native VLAN

Native VLANVLANVLANVLAN 1Native VLAN

trunkNative VLANtrunkVLANtrunkNative VLAN

Access PortVLANVALN 1Native VLANVALN 1VLANVLAN 10VLANNative VLANVLAN

Trunk portVLAN Trunk portNative VLANVLAN 1Trunk portNative VLANVLAN 1switchport trunk native vlan 10 Native VLANvlan10no switchport trunk native vlanNative VLANvlan1

Trunk Trunk native VLAN


5590994

4.3

4.3.1 VLAN

4-1 VLAN


1 port vlan

1Port VLAN

1VLAN10test

Switch# configure terminal

Switch(config)# vlan 10

Switch(config-vlan)# name test

Switch(config-vlan)# end

2 0/10VLAN10

Switch# configure terminal

Switch(config)# interface fastethernet 0/10

Switch(config-if)# switchport mode access

Switch(config-if)# switchport access vlan 10

Switch(config-if)# end

3VLAN

Switch(config)#interface range fastethernet 0/1-80/150/20

Switch(config-if-range)# switchport access vlan 20

0/1-8


2 tag vlan trunk

2Tag VLAN-Trunk

1Fa0/1Trunk

Switch# configure terminal

Switch(config)# interface fastethernet0/1

Switch(config-if)# switchport mode trunk

2Fa0/20 Trunkvlan 2

Switch(config)# interface fastethernet 0/20

Switch(config-if)# switchport trunk allowed vlan remove 2

Switch(config-if)# end


3 native vlan

3Native VLAN

1vlan 20native vlan

Switch(config)# interface fastethernet 0/20

Switch(config-if)# switchport trunk native vlan 20

Switch(config-if)# end

2fastethernet 0/20native vlan VLAN 1

Switch(config)# interface fastethernet 0/20

Switch(config-if)# no switchport trunk native vlan

Switch(config-if)# end

Trunknative VLANVLAN 1

TrunkTrunknative VLAN


4 vlan

4VLAN

1VLAN

Switch# Show vlan

2VLANTRUNK

Switch# Show interface fastethernet0/20 swithchport

3VLANflash

Switch# write memory

4flashVLAN

Switch# delete flash:vlan.dat

5RAMVLAN

Switch(config)# no vlan VLAN-id


4 3 2 vlan

4.3.2VLAN

VLANVLANVLAN

VLANVLANVLANTRUNK

TRUNKVLANVLAN


5590994

1VLANPING

2VLAN

3TRUNKVLANPING

4.3.2VLAN

4-7


4 3 2 vlan1

4.3.2VLAN

P31-32

1VLAN

2VLANTRUNK

S2126G# ping 192.168.10.1

S2126G# show vlan

S2126G# show interfaces FastEthernet 0/24

S2126G#show interface vlan

S2126G#show interface switchport

S2126G#show interface trunk


5590994

4.4

VLAN

MACVLANMACVLANVLANVLANMAC

VLANMACMACVLANVLANVLAN


4 4 1 vlan

4.4.1 VLAN

VLANVLANTRUNK4-7PC1PC3PC2PC4Trunk Link

VLANTrunk Link100Mbps

VLANAccess LinkTrunk LinkPCVLANVLANVLANVLAN


4 4 2 vlan

4.4.2 VLAN

vlanVLANVLAN

1VLAN

2VLAN


1 vlan1

1VLAN

VLANVLANVLANIPIPVLANIPVLANVLAN4-8

VLANVLANVLANVLANIPVLAN

4-8 VLAN


2 vlan1

2VLAN

VLANIPIPVLANVLANVLANVLAN


5590994

1(routed port) no switchportIPVLANVLAN

2TRUNKTRUNKVLANVLANTRUNK(SVI)VLANVLAN

SVIswitch virtual interfacesVLANIPinterface vlan SVISVIIPIPVLANVLAN

3(L3 Aggregate Link)IP

4ACCESSACCESSVLANACCESSVLAN


5590994

1(routed port)

2TRUNKTRUNKVLAN

3(L3 Aggregate Link)IP1

4ACCESSACCESSVLANVLANVLANACCESS


5590994

4.5

4.5.1

VLANVLANVLAN VLAN

IPOSI

/Gbps/IP/IPX


5590994

4.5

IP4-94

4-9


5590994

4.5

IPABAIP192.168.10.1BIP192.168.10.2BBAVLAN 10

1AB MAC

AIPIPBIP192.168.10.2IPA192.168.10.1MACBit

AARPWindowsarp rARPIPInternet AddressMACPhysical AddressARPIPMACAARPBMAC


5590994

4.5

ARPMACAMAC0011.2F06.E0111MACMACMACARPVLAN 10BARPARPMACBMAC0011.2F06.E012MACAMAC0011.2F06.E011MACBMAC0011.2F06.E012B2MACABMACMACAA

ABMACARPBIPMAC


5590994

4.5

2A1

3A1VLAN 10 2MACshow mac-address-tableB22VLAN 1012B

4ABABMACMACVLANMAC


5590994

4.5

VLAN

1ACACVLAN10VLAN20ATCP/IP

AIPIPCIP192.168.20.1IPA192.168.10.1MAC

AARPIPMACARPARPIPAVLANIPSVIAIPARPAARPAVLAN 10MACAIPMAC

AARP33


5590994

4.5

23VLAN 10 4

4IPIP192.168.20.1show ip route

C 192.168.10.0/24 is directly connected, Vlan10

C 192.168.20.0/24 is directly connected, Vlan20

VLAN 20

IPCPU

3IPVLAN 10 VLAN 20SVI

ARPshow arpCIPMACVLAN 20ARPVLANSVIMACMACHardware Addr00E0.F90E.ACE0

Protocol Address Age (min) Hardware Addr Type Interface

Internet 192.168.10.1 1 0011.2f06.e011 ARPA Vlan10

Internet 192.168.10.254 - 00E0.F90E.ACE0 ARPA Vlan10

Internet 192.168.20.1 1 0011.2f06.e021 ARPA Vlan20

Internet 192.168.20.254 - 00E0.F90E.ACE0 ARPA Vlan20

MACVLAN 20Hardware Addr00E0.F90E.ACE0MACCMAC0011.2f06.e0215VLAN 20

5CMAC0011.2f06.e021VLAN 20MACCf0/3


5590994

4.5

45VLAN 20 6Cf0/3

5VLANMAC

Vlan Mac Address Type Ports

10 00d0.97d1.3e61 DYNAMIC Fa0/1

20 000d.bde9.227e DYNAMIC Fa0/2

AC


4 5 2

4.5.2

4-9

4-9

1VLAN

2VLANPING

4-9


4 5 21

4.5.2

()

S3550-24:

Switch(config)# int vlan 20

vlan 20

Switch(config-if)#ip address 192.168.20.254 255.255.255.0

vlan 20192.168.20.254

Switch(config-if)#no shutdown

vlan 20

Switch(config-if)#exit


4 5 22

4.5.2

Switch# show ip int

PC APC BPC CPC D1234 PC A PC BPC CPC D192.168.10.1192.168.10.2192.168.20.1192.168.20.2PC A PCB192.168.10.254PC CPC D192.168.20.254PC APING192.168.10.2192.168.20.1192.168.20.2PING


5590994

4.6

4-8

1VLAN2 3

224

VLANping

  • 4-8 VLAN


5590994

4.6

p41-42

/*10VLAN*/

R2632(config)# int f1/0.10

/* enc dot1q VLAN 2VLAN*/

R2632(config-subif)# enc dot1q 2

/*IP192.168.2.1 */

R2632(config-subif)# ip add 192.168.2.1 255.255.255.0

R2632(config-subif)# no shut

R2632(config-subif)# exit

/*20*/

R2632(config)# int f1/0.20

/* enc dot1q VLAN 3VLAN*/

R2632(config-subif)# enc dot1q 3

R2632(config-subif)# ip add 192.168.3.1 255.255.255.0

R2632(config-subif)# no shut

R2632(config-subif)# exit


5590994

4.6

1VLAN2PC1PC2IP192.168.2.0/24192.168.2.1VLAN3PC3IP192.168.3.0/24192.168.3.1VLAN2PING VLAN3

PC 1

ping 192.168.2.1

ping 192.168.2.10

ping 192.168.3.1

ping 192.168.3.10

S2126G# show vlan

S2126G# show interfaces FastEthernet 0/24

S2126G# show interface vlan

S2126G# show interface switchport

S2126G# show interface trunk


5590994

4.7

4.7.1

SVITRUNKTRUNKVLAN


5590994

1124TRUNK4-10

2

3

4VLAN10IP192.168.10.0/24192.168.10.254VLAN20IP192.168.20.0/24192.168.20.254

4-10


5590994

1VLAN

2VLAN

P39-41

1VLANPNGVLANPING

2VLANVLANSVIVLANVLANIP


5590994

VLAN

4-11


5590994

1f1/0f1/1TRUNK4-11

2VLAN 2345

3f1/0.2 f1/0.3f1/1.4 f1/1.5

4VLAN2192.168.2.0/24192.168.2.1VLAN3192.168.3.0/24192.168.3.1VLAN4192.168.4.0/24192.168.4.254VLAN5192.168.5.0/24192.168.5.254

1

2VLAN

R2632-1

R2632-1(config)# int f1/1.4

R2632-1(config-subif)# enc dot1q 4

R2632-1(config-subif)# ip address 192.168.4.1 255.255.255.0

R2632-1(config-subif)#no shut

R2632-1(config-subif)# exit

R2632-1(config)# int f1/1.5

R2632-1(config-subif)# enc dot1q 5

R2632-1(config-subif)# ip address 192.168.5.1 255.255.255.0

R2632-1(config-subif)# no shut

R2632-1(config-subif)# exit

R2632-1(config)# int f1/0.2

R2632-1(config-subif)# enc dot1q 2

R2632-1(config-subif)# ip address 192.168.2.1 255.255.255.0

R2632-1(config-subif)# no shut

R2632-1(config-subif)# exit

R2632-1(config)# int f1/0.3

R2632-1(config-subif)# enc dot1q 3

R2632-1(config-subif)# ip address 192.168.3.1 255.255.255.0


5590994

4-12


5590994

14-12f1/1VLAN 45VLAN4192.168.4.0/24192.168.4.254IP192.168.4.4VLAN5192.168.5.0/24192.168.5.254IP192.168.5.5

2f1/1PCIP192.168.0.2

3f0/23

VLAN 1ACCESSf1/1VLAN 1f1/1VLAN SVI

TRUNKTRUNKVLANVLAN 4VLAN 5 TRUNK

SVI


5590994

1

2

1

R2632-1(config)# interface FastEthernet 1/0

R2632-1(config-if)# ip address 192.168.0.254 255.255.255.0

!

R2632-1(config)# interface FastEthernet 1/1

R2632-1(config-if)# ip address 192.168.1.1 255.255.255.0

!

R2632-1(config)# ip route 192.168.4.0 255.255.255.0 192.168.1.2

R2632-1(config)# ip route 192.168.5.0 255.255.255.0 192.168.1.2


5590994

2f0/23()

1f0/23VLAN 1ACCESS

S3760 (config)# interface f0/23

S3760 (config-if)# switchport mode access

S3760 (config-if)# switchport access vlan 1

S3760 (config)# interface VLAN 1

S3760 (config-if)# ip address 192.168.1.2 255.255.255.0

2f0/23TRUNK

S3760 (config)# interface f0/23

S3760 (config-if)# switchport mode trunk

S3760 (config)# interface VLAN 1

S3760 (config-if)# ip address 192.168.1.2 255.255.255.0

3f0/23

S3760 (config)# interface f0/23

S3760 (config-if)# noswitchport

S3760 (config-if)# ip address 192.168.1.2 255.255.255.0

3

S3760 (config)# interface VLAN 4

S3760 (config-if)# ip address 192.168.4.254 255.255.255.0

!

S3760 (config)# interface VLAN 5

S3760 (config-if)# ip address 192.168.5.254 255.255.255.0

!

S3760 (config)# ip route 192.168.0.0 255.255.255.0 192.168.1.1

S3760 (config)# ip route 0.0.0.0 0.0.0.0 192.168.1.1


5590994

1VLANPING

2PING

S3760# show vlan

S3760# show interfaces FastEthernet 0/1

S3760# show interface vlan 2

S3760# show interface switchport

S3760# show interface trunk

S3760# show ip route

R2632-1# show ip route

R2632-1# ping 192.168.4.4 PC4

R2632-1# ping 192.168.5.5 PC5

PC2:\> ping 192.168.4.4

PC2:\> ping 192.168.5.5

PC4:\> ping 192.168.0.2

PC5:\> ping 192.168.0.2


5590994

Thank You !


  • Login