017 inter-vlan routing configuration issue1.1

13
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved www.huawei.com Internal ODA041003 Inter- VLAN Routing Configuration ISSUE 1.1

Upload: josecitocba

Post on 21-Oct-2015

59 views

Category:

Documents


5 download

TRANSCRIPT

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved

www.huawei.com

Internal

ODA041003 Inter-VLAN Routing Configuration

ISSUE 1.1

HUAWEI TECHNOLOGIES CO., LTD. Page 2All rights reserved

This course introduces inter-VLAN

routing configuration

HUAWEI TECHNOLOGIES CO., LTD. Page 3All rights reserved

Upon completion of this course, you will

be able to:

Know the inter-VLAN configuration

HUAWEI TECHNOLOGIES CO., LTD. Page 4All rights reserved

Set/delete VLAN Route Interface

Usage:

Setting a virtual vlan interface

Command:

[undo] interface vlan-interface vif_id

parameter:

vif_id : the virtual interface number

HUAWEI TECHNOLOGIES CO., LTD. Page 5All rights reserved

Configure/delete IP address for VLAN Interface

Usage:

Configure/ delete IP address for vlan interface

Commands:

[undo] ip address ip address mask

parameter:

Ip address : the IP address of vlan

Mask: the mask of subnet

HUAWEI TECHNOLOGIES CO., LTD. Page 6All rights reserved

The example of inter-VLAN routing

VLAN 100VLAN 100 VLAN 200VLAN 200

1.1.1.254/241.1.1.254/24 2.2.2.254/242.2.2.254/241.1.1.100/241.1.1.100/24Default gatewayDefault gateway1.1.1.2541.1.1.254

2.2.2.100/242.2.2.100/24Default gatewayDefault gateway2.2.2.2542.2.2.254

HUAWEI TECHNOLOGIES CO., LTD. Page 7All rights reserved

Configuration flow

configure VLAN

Create L3 interfaces and configure their IP addresses

configure the default gateways for the hosts

configure the dynamic routing protocols or static routes

HUAWEI TECHNOLOGIES CO., LTD. Page 8All rights reserved

The example of inter-VLAN routing

[Quidway] vlan 100

[Quidway-vlan100] port e0/1 to e0/10

[Quidway] vlan 200

[Quidway-vlan200] port e0/11 to e0/20

configure VLAN

HUAWEI TECHNOLOGIES CO., LTD. Page 9All rights reserved

The example of inter-VLAN routing

[Quidway-vlan100] interface vlan 100

[Quidway-vlan-interface100] ip address 1.1.1.254 255.255.255.0

[Quidway-vlan200] interface vlan 200

[Quidway-vlan-interface200] ip address 2.2.2.254 255.255.255.0

Create L3 interfaces and configure their IP addresses

HUAWEI TECHNOLOGIES CO., LTD. Page 10All rights reserved

The example of inter-VLAN routing

Configure default gateway for the host, pointing the default gateway to

the interface address of all VLANs at the layer 3 switch

Ping from one host to another host

Configuring routing protocol on layer 3 switch if there are several swit

ches

HUAWEI TECHNOLOGIES CO., LTD. Page 11All rights reserved

Configure OSPF

AS 1AS 1

Area 1Area 1

Area 0Area 0

AS 2AS 2

VLAN 1 VLAN 1 1.1.1.11.1.1.1

VLAN 2 VLAN 2 1.1.1.21.1.1.2

VLAN 3 VLAN 3 1.1.1.31.1.1.3

VLAN 4 VLAN 4 1.1.2.31.1.2.3

VLAN 5 VLAN 5 1.1.2.41.1.2.4

VLAN 6 VLAN 6 2.2.2.32.2.2.3

VLAN 7 VLAN 7 2.2.2.52.2.2.5

LSW 1LSW 1 LSW 2LSW 2

LSW 3LSW 3

LSW 4LSW 4

LSW 5LSW 5 3.3.3.63.3.3.6

HUAWEI TECHNOLOGIES CO., LTD. Page 12All rights reserved

inter-vlan routing configurationSummary

www.huawei.com

Thank You