华为三层交换机配置

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

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

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

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.118共属的242.0指向分中心网关

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

//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