H3C機配置三層交換機的具體步驟
H3C配置三層交換機一共有4個步驟,分別是劃分VLAN,并描述;給VLAN劃網關;給VLAN指定端口;配置路由協議;,下面我們一起來看看吧!
language-modechinese//切換到中文模式
system-view//進入系統視圖
[H3C]displaycurrent-configuration//顯示當前配置三層交換機
//以下開始配置三層交換機
配置三層交換機第一步:劃分VLAN,并描述
vlan1
descriptionlocal-s3600//本交換機使用
#
vlan2
descriptionlink-to-shanxicentre//陜西省中心
#
vlan3
descriptionlink-to-shangjiecentre//商界分中心內部使用
#
vlan4
descriptionlink-to-shangdongsuo//商東所
#
vlan5
descriptionlink-to-shangnansuo//商南所
配置三層交換機第二步:給VLAN劃網關
#
interfaceVlan-interface2
descriptionlinktoshanxicentre
ipaddress10.61.242.110255.255.255.252//省中心指定廣域網關、子網掩碼
#
interfaceVlan-interface3
descriptionlinktoshangjiecentre
ipaddress10.161.134.65255.255.255.192//商界分中心局域網關、子網掩碼
#
interfaceVlan-interface4
descriptionlinktoshangdongsuo
ipaddress10.61.242.113255.255.255.252//商東所廣域網關、子網掩碼
#
interfaceVlan-interface5
descriptionlinktoshangnansuo
ipaddress10.61.242.117255.255.255.252//商南所廣域網關、子網掩碼
配置三層交換機第三步:給VLAN指定端口
#
interfaceEthernet1/0/2//將交換機的'端口2指定給省中心使用
descriptionlinktoshanxicentre
portaccessvlan2
#
interfaceEthernet1/0/15-24//將交換機的端口15-24指定給分中心內部使用
descriptionlinktoshangjiecentre
portaccessvlan3
#
interfaceEthernet1/0/3//將交換機的端口3指定給商東所使用
descriptionlinktoshangdongsuo
portaccessvlan4
#
interfaceEthernet1/0/4//將交換機的端口4指定給商南所使用
descriptionlinktoshangnansuo
portaccessvlan5
配置三層交換機第四步:配置路由協議
//配靜態路由(只用對遠端設備配一條路由即可,本地自通)
iproute0.0.0.00.0.0.010.61.242.109//指定所有網段到商東所的路由
//配置三層交換機商東所的反向路由
iproute10.161.134.0255.255.255.010.61.242.114
iproute10.161.135.0255.255.255.010.61.242.114
//配置三層交換機商南所的反向路由
iproute10.161.135.0255.255.255.010.61.242.118
iproute10.161.136.0255.255.255.010.61.242.118
//省中心配置三層交換機:
iproute10.61.242.0255.255.255.010.61.242.110//商東所242.114和商南所242.118共屬的242.0指向分中心網關
iproute10.161.134.0255.255.255.010.61.242.110//分中心內部網段指向分中心網關
//iproute10.161.134.0255.255.255.010.61.242.110
//iproute10.161.135.0255.255.255.010.61.242.110
//iproute10.161.136.0255.255.255.010.61.242.110
【H3C機配置三層交換機的具體步驟】相關文章: