Anda di halaman 1dari 24

Training objectives

HUAWEI

Understand VLAN generation background Understand VLAN protocol Understand GVRP protocol

Uderstand VLAN configuration

datacomm.huawei.com

HUAWEI

Cause of VLAN Generation -Broadcast Storm

Broadcast

datacomm.huawei.com

HUAWEI

Segment Network with Routers


Router

B r o a d c a s t

datacomm.huawei.com

HUAWEI

Divide Broadcast Domain through VLAN


C e n tralSw itch
Broadcast domain 3 vlan 30 Broadcast domain 2 vlan 20

Broadcast domain 1 vlan 10

F in a n c ial Departm e n t

M a rketing Departm e n t E n g in e e r ingDepartm e n t


datacomm.huawei.com

HUAWEI

Divide Broadcast Domain through VLAN


C e n tralSw itch
Broadcast domain 3 vlan 30 Broadcast domain 2 vlan 20

Broadcast domain 1 vlan 10

F in a n c ial Departm e n t

M a rketing Departm e n t E n g in e e r ingDepartm e n t


datacomm.huawei.com

Port based VLAN


HUAWEI

VLAN Table
Port
Ethernet Switch

Port 1 Port 2 Port 7 Port 10

Subordinat e VLAN VLAN 5 VLAN 10 VLAN 5 VLAN 10

ostA

HostB

HostC

HostD
datacomm.huawei.com

Protocol based VLAN


HUAWEI

VLAN Table
Ethernet Switch

Protocol type IPX Protocol

Subordinate VLAN VLAN 5 VLAN 10

ost A uses IPX col Host B that runs the IP protocol

Host C uses IPX protocol

IP Protocol

Host D that runs the IP protocol


datacomm.huawei.com

VLAN Based on Subnetwork


HUAWEI

VLAN Table
Ethernet Switch

IP network IP 1.1.1.1 mask 255.255.255.0 IP 1.1.2.1 mask 255.255.255.0

Subordinate VLAN VLAN 5 VLAN 10

Host B 1.1.2.88 ost A 1.1.5 Host C 1.1.1.8

Host D 1.1.2.99

datacomm.huawei.com

IEEE802.1Q Overview
HUAWEI

E
VLAN structure

I
Services provided by VLAN VLAN involved protocols and algorithms

datacomm.huawei.com

Frame Format of VLAN


HUAWEI

Standard Ethernet frame Standard Ethernet Frame

T C I

Ethernet Frame with IEEE802.Iq Flag


datacomm.huawei.com

Access Link and Trunk Link


HUAWEI

k B a c k b o n eL in

Access Link

datacomm.huawei.com

HUAWEI

Frame Changes in Network Communication

vlan 2

E thernetfram e w ithvlanlflag

vlan 1 E thernet fram ew ithout vlanflag

E thernetfram e w ithvlan2flag

vlan 1

vlan 2
datacomm.huawei.com

Trunk and VLAN


HUAWEI

vlan 1
Broadcast message transmit

Trunk Link
vlan 5

vlan2

vlan 1

vlan 3

vlan2

vlan 1

vlan5

vlan 5

vlan 2

datacomm.huawei.com

VLAN Basic Configuration


HUAWEI

Enter into the VLAN configuration mode; if the designated VLAN is not created, then create it:
[no] vlan vlan_id

Add/delete Ethernet interface for a designated vlan


port ethernet port_num [ to port_num ] & < 1-10 >
datacomm.huawei.com

HUAWEI

Set/Cancel Trunk with VLAN Interface

Usage: open/close VLAN trunk functions of Ethernet interface, based on the IEEE802.1Q standard. Command format:
trunk { vlan_list | all } no trunk [ vlan_list | all ]

Default value:
Close VLAN trunk functions in default

Command mode:
datacomm.huawei.com

HUAWEI

VLAN Basic Configuration Illustration

Q u idway(config)#Vlan 4 Q u idway(config-vlan4)#port e 0/9 to 0/10 interface ethernet0/2 Q u idway(config)# trunk all Q u idway(config-if-Ethernet0/2)# exit Q u idway(config-if-Ethernet0/2)# show interface e thernet0/2 Q u idway(config)# ... ... PVIDis1 ... ... It is a vlan trunking port, vlan(s) passing this port: 1(default vlan), 4-5 vlan(s) allowed to pass this port: 1(default vlan), 2-4000 ... ... datacomm.huawei.com

GARP Basis
HUAWEI

Property claim and registration


GARP message

Property claima n d registration gureabove:GARPmodel gurebelow:GARPworkprocess

a: Indicate a certain property that needs to be registered A: Claim about the property Property will be broadcast to the whole network through GARP "claim-register-claim"
datacomm.huawei.com

GARP Basis
HUAWEI

datacomm.huawei.com

GVRP Configurations
HUAWEI

1. O p e n /closeGVRPprotocol gvrp{enable|disable} enable O p e nG V R P disable C loseG V R P nogvrp 2.AftersettingtheGVRPregistrationtypeGVRPstartofevery channellink,theusercanfurthersettheregistrationtypeofGVRP. gvrp registration { norm a l | fixed | forbidden } normal It is allowedtodynamicallycreate,register,andcancel VLANatthisinterface.norm a l is the default registration m odeofthe in terface. fixed It is allowedtomanuallycreateorregisterVLAN,and proventcancellationofVLANandknownsVLANatothertrunk in terfaces. forbidden It w il cancelallVLANsexceptVLAN1,andprohibit creationandregistrationofanyotherVLANatthisinterface. no gvrp registration

datacomm.huawei.com

GVRP Configuration Cases(1)


HUAWEI

vlan5~10

Port1

Port1 Port2

A
Port2 Port3

B
Port3

Port1

Port1

Port1

Port1

vlan5~10

vlan15~20

vlan15~20

vlan25~30
datacomm.huawei.com

GVRP Configuration Cases(2)


HUAWEI

vlan5~10

A
Port 2

Port 1 Port 1 (Fixed) Port 2 Port 3

B
Port 3

Port 1

Port 1

Port 1

Port 1

vlan5~10

vlan15~20

vlan15~20

vlan25~30
datacomm.huawei.com

GVRP Configuration Cases(3)


HUAWEI

vlan5~10

Port 1

Port 1 Port 2

A
Port 2 Port 3

B
Port 3 Port 1 Forbid

Port 1

Port 1

Port 1

vlan5~10

vlan15~20

vlan15~20

vlan25~30
datacomm.huawei.com

GVRP Configuration Cases(4)


HUAWEI

vlan5~10

A
Port 2

Port 1 Port 1 trunk 15 to 24 Port 2 Port 3 Port 1 Port 1

B
Port 3 Port 1

Port 1

vlan5~10

vlan15~20

vlan15~20

vlan25~30
datacomm.huawei.com

Summary
HUAWEI

VLAN basic concepts and networking advantages

VLAN configuration GVRP protocols and configuration

datacomm.huawei.com

Anda mungkin juga menyukai