1<H3C>language-modechinese//切換到中文模式 <H3C>system-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指定給省中心使用
port access vlan2
interfaceEthernet1/0/15-24//將交換機的埠15-24指定給分中心內部使用
port access vlan3
interfaceEthernet1/0/3//將交換機的埠3指定給朝陽所使用
port access vlan4
interfaceEthernet1/0/4//將交換機的埠4指定給南關所使用
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
1<H3C>language-modechinese//切換到中文模式 <H3C>system-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