华为三层交换机配置

华为三层交换机配置 三层交换机配置顺序?

三层交换机配置顺序?

三层交换机配置顺序?

1ltH3Cgtlanguage-modechinese////切换到中文模式 ltH3Cgtsystem-view///进入系统视图 [H3C]displaycurrent-configuration//显示当前三层交换

2第一步配置三层交换机:VLAN,并描述

vlan1

description local-s3600///本交换机使用

#

vlan2

description link-to-jilincentre///吉林省中心

#

vlan3

description link-to-shangjiecentre//商业分中心内部使用

#

vlan4

description link-to-chaoyangsuo//朝阳所

#

vlan5

description link-to-nanguansuo//南关所

3配置三层交换机第二步:VLAN划网关

#

interfaceVlan-interface2

description linktojilincentre

ipaddress 10.61.242.110 255.255.255.252//广域网关指定省中心,子网掩码

#

interfaceVlan-interface3

description linktoshangjiecentre

ipaddress 10.161.134.65255.255.255.192//商业分中心局域网关,子网掩码

#

interfaceVlan-interface4

description linktochaoyangsuo

ipaddress 10.61.242.113255.255.255.252///朝阳所广域网关

#

interfaceVlan-interface5

description linktonanguansuo

ipaddress 10.61.242.117255.255.255.252///南关广域网关

4配置三层交换机第三步:VLAN指定端口

#

interfaceEthernet1/0/2//指定交换机的端口2到省中心使用

description linktojilincentre

port access vlan2

#

interfaceEthernet1/0/15-24//指定交换机端口15-24在分中心内部使用

description linktoshangjiecentre

port access vlan3

#

interfaceEthernet1/0/3//指定交换机的端口3到朝阳

description linktochaoyangsuo

port access vlan4

#

interfaceEthernet1/0/4//向南关指定交换机的端口4

description linktonanguansuo

portaccessvlan5

5配置三层交换机第四步:配置路由协议

//配备静态路由(远程设备只能配备一条路由,本地自通)

iproute 0.0.0.0 0.0.0.0 10.61.242.109//路由指定所有网段到朝阳所

//配置三层交换机朝阳所反向路由

iproute 10.161.134.0 255.255.255.0 10.61.242.114

iproute 10.161.135.0 255.255.255.0 10.61.242.114

//在南关配置三层交换机

iproute 10.161.135.0 255.255.255.0 10.61.242.118

iproute 10.161.136.0 255.255.255.0 10.61.242.118

//省中心配置三层交换机:

iproute 10.61.242.0 255.255.255.0 10.61.242.110//朝阳所242.114和南关所242.18共属的242.0指向分中心网关

iproute 10.161.134.0 255.255.255.0 10.61.242.10//分中心内部网段指向分中心网关

//iproute 10.161.134.0 255.255.255.0 10.61.242.110

//iproute 10.161.135.0 255.255.255.0 10.61.242.110

//iproute 10.161.136.0 255.255.255.0 10.61.242.11