华为三层交换机配置方法命令及实例.docx

上传人:b****0 文档编号:12583259 上传时间:2023-04-20 格式:DOCX 页数:14 大小:22.17KB
下载 相关 举报
华为三层交换机配置方法命令及实例.docx_第1页
第1页 / 共14页
华为三层交换机配置方法命令及实例.docx_第2页
第2页 / 共14页
华为三层交换机配置方法命令及实例.docx_第3页
第3页 / 共14页
华为三层交换机配置方法命令及实例.docx_第4页
第4页 / 共14页
华为三层交换机配置方法命令及实例.docx_第5页
第5页 / 共14页
点击查看更多>>
下载资源
资源描述

华为三层交换机配置方法命令及实例.docx

《华为三层交换机配置方法命令及实例.docx》由会员分享,可在线阅读,更多相关《华为三层交换机配置方法命令及实例.docx(14页珍藏版)》请在冰豆网上搜索。

华为三层交换机配置方法命令及实例.docx

华为三层交换机配置方法命令及实例

华为三层交流机设置装备摆设办法

(1)之羊若含玉创作

(2008-07-2111:

27:

34)

标签:

杂谈

分类:

工作报告请示

本文以河南平临高速所使用的华为华三通信的H3CS3600-28P-SI为例,设置装备摆设前首先要确定型号后缀是SI照样EI,EI的支持所有协议,SI的不支持OSPS动态协议,因此SI设置装备摆设路由时可以使用静态协议和RIP协议,具体设置装备摆设如下:

system-view //进入系统视图

[H3C]displaycurrent-configuration  //显示当前设置装备摆设

//以下开端设置装备摆设

//第一步:

划分VLAN,并描写

vlan1

 descriptionlocal-S3600

vlan2

 descriptionlink-to-wenquan

vlan3

 descriptionlink-to-ruzhou

vlan4

 descriptionlink-to-xiaotun

vlan5

 descriptionlink-to-baofeng

vlan6

 descriptionlink-to-pingxi

vlan7

 descriptionlink-to-pingnan

vlan8

 descriptionUplink-to-Putian

vlan9

 descriptionlink-to-pingxicentre

//第二步:

给VLAN划网关

interfaceVlan-interface2

 descriptionlinktowenquan

interfaceVlan-interface3

 descriptionlinktoruzhou

interfaceVlan-interface4

 descriptionlinktoxiaotun

interfaceVlan-interface5

 descriptionlinktobaofeng

interfaceVlan-interface6

 descriptionlinktopingxi

interfaceVlan-interface7

 descriptionlinktopingnan

interfaceVlan-interface8

 descriptionuplinktoputian

interfaceVlan-interface9

 descriptionlinktopingxicentre

//第三步:

给VLAN指定端口

interfaceEthernet1/0/2

 descriptionlinktowenquan

 portaccessvlan2

interfaceEthernet1/0/3

 descriptionlinktoruzhou

 portaccessvlan3

interfaceEthernet1/0/4

 descriptionlinktoxiaotun

 portaccessvlan4

interfaceEthernet1/0/5

 descriptionlinktobaofeng

 portaccessvlan5

interfaceEthernet1/0/6

 descriptionlinktopingxi

 portaccessvlan6

interfaceEthernet1/0/7

 descriptionlinktopingnan

 portaccessvlan7

interfaceEthernet1/0/8

 descriptionuplinktoputian

 portaccessvlan8

interfaceEthernet1/0/9toEthernet1/0/24

 descriptionlinktopingxicentre

 portaccessvlan9

//第四步:

设置装备摆设路由协议

//

(1)用RIP配动态路由

rip

//

(2)配静态路由(只用对远

华为三层交流机设置装备摆设敕令

分类:

默认栏目

2007.6.207:

28作者:

weiwei2501|评论:

1|阅读:

0

Enable      //进入私有模式

Configureterminal      //进入全局模式

servicepassword-encryption     //对暗码进行加密

hostnameCatalyst3550-12T1      //给三层交流机界说名称

enablepassword123456.         //enable暗码

Enablesecret654321         //enable的加密暗码(应该是乱码而不是654321这样)

Ipsubnet-zero        //允许使用全0子网(默认都是打开的)

Servicedhcp      //提供DHCP办事

iprouting      //启用三层交流机上的路由模块

Exit

Vtpmodeserver          //界说VTP工作模式为sever模式

Vtpdomaincentervtp     //界说VTP域的名称为centervtp

Vlan2namevlan2        //界说vlan并给vlan取名(如果不取名的话,vlan2的名字应该是vlan002)

Vlan3namevlan3

Vlan4namevlan4

Vlan5namevlan5

Vlan6namevlan6

Vlan7namevlan7

Vlan8namevlan8

Vlan9namevlan9

Exit

interfacePort-channel1           //进入虚拟的以太通道组1

Interfacegigabitethernet0/1      //进入模块0上的吉比特以太口1

channel-group1modeon            //把这个接口放到快速以太通道组1中

Interfacegigabitethernet0/2      //同上channel-group1modeon

port-channelload-balancesrc-dst-ip    //界说快速以太通道组的负载平衡方法(依靠源和目标IP的方法)

interfacegigabitethernet0/3           //进入模块0上的吉比特以太口3

interfacegigabitethernet0/4     //同上

interfacegigbitethernet0/5      //同上

interfacegigbitethernet0/6      //同上

interfacegigbitethernet0/7       //进入模块0上的吉比特以太口7

noshutdown

spanning-treevlan6-9cost1000      //在生成树中,vlan6-9的开销界说为10000

interfacerangegigabitethernet0/8–10     //进入模块0上的吉比特以太口8,9,10

noshutdown

spanning-treeportfast      //在这些接口上使用portfast(使用portfast以后,在生成树的时候不介入运算,直接成为转发状态)

interfacegigabitethernet0/11    //进入模块0上的吉比特以太口11

interfacegigabitethernet0/12    //同上

interfacevlan1        //进入vlan1的逻辑接口(不是物理接口,用来给vlan做路由用)

ipaddress172.16.1.7255.255.255.0    //设置装备摆设IP地址和子网掩码

noshutdown

standby1priority110preempt     //界说这个三层交流机在冗余热备份组1中的优先级为110,preempt是用来开启抢占模式

interfacevlan2       //同上

noshutdown

standby2priority110preempt

ipaccess-group101in     //在入偏向上使用扩大的拜访掌握列表101

interfacevlan3        //同上

noshutdown

standby3priority110preempt

ipaccess-group101in

interfacevlan4          //同上

noshutdown

standby4priority110preempt

ipaccess-group101in

interfacevlan5

noshutdown

standby5priority110preempt

ipaccess-group101in

interfacevlan6

noshutdown

standby6priority100preempt

interfacevlan7

noshutdown

standby7priority100preempt

interfacevlan8

noshutdown

standby8priority100preempt

interfacevlan9

noshutdown

standby9priority100preempt

access-list101denyipany172.16.7.00.0.0.255    //扩大的拜访掌握列表101

access-list101permitipanyany

Interfacevlan1                  //进入vlan1这个逻辑接口

Iphelper-address172.16.8.1      //可以转发广播(helper-address的作用就是把广播转化为单播,然后发向172.16.8.1)

Interfacevlan2

Interfacevlan3

interfacevlan4

interfacevlan5

interfacevlan6

interfacevlan7

interfacevlan9

routerrip      //启用路由协议RIP

version2       //使用的是RIPv2,如果没有这句,则是使用RIPv1

network172.16.0.0     //宣告直连的网段

exit

linecon0

lineaux0

linevty015         //telnet线路(路由器只有5个,是0-4)

password12345678     //login暗码

login

end

copyrunning-configstartup-config      保管设置装备摆设

 

 

cisco3550

Switch#configureterminal

Switch(config)#vtpmodetransparent

Switch(config)#vlan10

Switch(config-vlan)#namevlan10

Switch(config)#exit

Switch(config)#vlan11

Switch(config-vlan)namevlan11

Switch(config-vlan)end

Switch#configureterminal

Switch(config)#interfacefastethernet0/9

Switch(config-if)#switchportmodeaccess

Switch(config-if)#switchportaccessvlan10

Switch(config-if)#exit

Switch(config)#interfacefastethernet0/10

Switch(config-if)#switchportmodeaccess

Switch(config-if)#switchportaccessvlan10

Switch(config-if)#exit

Switch(config)#interfacefastethernet0/11

Switch(config-if)#switchportmodeaccess

Switch(config-if)#switchportaccessvlan11

Switch(config-if)#exit

Switch(config)#interfacefastethernet0/12

Switch(config-if)#switchportmodeaccess

Switch(config-if)#switchportaccessvlan11

Switch(config-if)#exit

Switch(config)#interfacevlan10

Switch(config-if)#ipaddress192.168.0.1255.255.255.0

Switch(config-if)#noshutdown

Switch(config-if)#exit

Switch(config)#interfacevlan11

Switch(config-if)#ipaddress192.168.1.1255.255.255.0

Switch(config-if)#noshutdown

Switch(config-if)#exit

Switch(config)#iprouting

Switch(config)#ipforward-protocoludp

Switch(config)#intervlan10

iphelper172.16.11.255//这个敕令又是什么意思?

是不是转发整个网段的UDP协议?

为什么用到了172.16.11.255这个地址?

Switch(config)#exit

Switch(config)#intervlan11

Switch(config-if)#iphelper172.16.10.255//同上?

Switch(config-if)#exit

Switch(config)#iproute0.0.0.00.0.0.0Vlan10

Switch(config)#iproute0.0.0.00.0.0.0Vlan11

Switch(config)#conft

Switch(config)#access-list103permitip172.16.11.00.0.0.255172.16.10.00.0.0.255

Switch(config)#access-list103permitudpanyanyeqbootpc

Switch(config)#access-list103permitudpanyanyeqtftp

Switch(config)#access-list103permitudpanyeqbootpcany

Switch(config)#access-list103permitudpanyeqtftpany

Switch(config)#intervlan10

Switch(config-if)#ipdirected-broadcast103//请说明一下这个的具体寄义,自己不是太明确,懂一点意思(直接广播这个列表?

是不是)

Switch(config-if)#exit

Switch(config)#access-list104permitip172.16.10.00.0.0.255172.16.11.00.0.0.255

Switch(config)#access-list104permitudpanyanyeqbootpc

Switch(config)#access-list104permitudpanyanyeqtftp

Switch(config)#access-list104permitudpanyeqbootpcany

Switch(config)#access-list104permitudpanyeqtftpany

Switch(config)#intervlan11

Switch(config-if)#ipdirected-broadcast104//同上

Switch(config)#end

Switch#copyrunstar

华为三层交流机设置装备摆设实例一例

网络技巧2008-07-2506:

08:

28阅读243评论0  字号:

大中小 订阅

华为三层交流机设置装备摆设实例一例办事器1双网卡,内网IP:

192.168.0.1,其它盘算机通过其代理上网

PORT1属于VLAN1

PORT2属于VLAN2

PORT3属于VLAN3

VLAN1的机械可以正常上网

即可实现VLAN间互联

如果VLAN2和VLAN3的盘算机要通过办事器1上网

则需在三层交流机上设置装备摆设默认路由

然后再在办事器1上设置装备摆设回程路由

进入敕令提示符

这个时候vlan2和vlan3中的盘算机就可以通过办事器1拜访internet了~~

华为路由器与CISCO路由器在设置装备摆设上的不同

华为路由器与同档次的CISCO路由器在功效特性与设置装备摆设界面上完全一致,有些方面还依据国内用户的需求作了很好的改良.例如中英文可切换的设置装备摆设与调试界面,使中文用户再也不必面临着一大堆的英文专业单词而无从下手了.别的它的软件升级,远程设置装备摆设,备份中心,PPP回拨,路由器热备份等,对用户来说均是极有用的功效特性.

  在设置装备摆设方面,华为路由器以前的软件版本(VRP1.0-相当于CISCO的IOS)与CISCO有细微的不同,但今朝的版本(VRP1.1)已和CISCO兼容,下面首先介绍VRP软件的升级办法,然后给出设置装备摆设上的说明. 

一、VRP软件升级操纵 

  升级前用户应懂得自己路由器的硬件设置装备摆设以及相应的引导软件bootrom的版本,因为这关系到是否可以升级以及升级的办法,不然升级失败会导致路由器不克不及运行.在此我们以从VRP1.0升级到VRP1.1为例说明升级的办法.

  1.路由器设置装备摆设电缆一端与PC机的串口一端与路由器的console口衔接

  2.在win95/98下树立使用直连线的超等终端,参数如下:

  波特率9600,数据位8,停止位1,无效验,无流控,VT100终端类型

  3.超等终端连机后打开路由器电源,屏幕上会出现引导信息,在出现:

  PressCtrl-BtoenterBootMenu.

  时三秒内按下Ctrl+b,会提示输入暗码

  PleaseinputBootrompassword:

  默认暗码为空,直接回车进入引导菜单BootMenu,在该菜单下选1,即Downloadapplicationprogram升级VRP软件,之后屏幕提示选择下载波特率,我们一般选择38400bps,随即出现提示信息:

  Downloadspeedis38400bps.Pleasechangetheterminal'sspeedto38400bps,  andselectXMODEMprotocol.PressENTERkeywhenready.

  此时进入超等终端“属性”,修改波特率为38400,修改后应断开超等终端的衔接,再进入衔接状态,以使新属性起效,之后屏幕提示:

  Downloading…CCC

  这暗示路由器已进入等待吸收文件的状态,我们可以选择超等终端的文件“发送”功效,选定相应的VRP软件文件名,通讯协议选Xmodem,之后超等终端自动发送文件到路由器中,整个传送进程大约耗时8分半钟.完成后有提示信息出现,系统会将收到的VRP软件写入FlashMemory笼罩原来的系统,此时整个升级进程完成,系统提示改回超等终端的波特率:

  Restoretheterminal'sspeedto9600bps.

  PressENTERkeywhenready.

  修改完跋文住进行超等终端的断开和衔接操纵使新属性起效,之后路由器软件开端启动,用showver敕令将看见相应的版本信息.

  下面是与CISCO互通时应注意的地方:

  

二、在默认链路层封装上的区别(主要用于DDN的设置装备摆设) 

  1.华为VRP1.0及其以前的版本,在设置装备摆设时,由于CISCO的默认链路层封装格局为HDLC,而华为路由器的默认链路层封装格局为PPP,因此为了能互通,需要将CISCO路由器的封装格局改为PPP格局,即使用敕令:

  encapsulationPPP

  2.华为VRP1.1及其以后的版本,增加了HDLC封装格局.这样,不需要修改CISCO的封装格局,而将华为路由器的封装格局改为HDLC封装格局即可,即使用敕令:

  encapsulationhdlc 

三、在设置装备摆设X.25上的区别 

  1.华为VRP1.0及其以前的版本在设置装备摆设时,由于CISCO的X25默认封装格局为它自己的尺度.而华为路由器的封装格局为国际尺度IETF,因此为了能互通,需要将CISCO路由器的封装格局改为ietf格局,即使用敕令:

  encapsulationx25ietf

  2.华为VRP1.1及其以后的版本,特地增加了与CISCO兼容的封装格局.这样,不需要修改CISCO的封装格局,而将华为路由器的X25封装格局改为CISCO兼容封装格局即可,即使用敕令:

  encapsulationx25cisco 

四、在设置装备摆设帧

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 解决方案 > 学习计划

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1