H3C S5500-SI 03-组播VLAN配置
- 格式:pdf
- 大小:245.63 KB
- 文档页数:13
IP地址-IP性能目录目录第1章 IP地址配置..................................................................................................................1-11.1 IP地址简介.........................................................................................................................1-11.1.1 IP地址的分类和表示................................................................................................1-11.1.2 特殊的IP地址...........................................................................................................1-21.1.3 子网和掩码..............................................................................................................1-21.2 配置IP地址.........................................................................................................................1-31.2.1 配置接口的IP地址....................................................................................................1-31.2.2 IP地址配置举例.......................................................................................................1-41.3 IP地址的显示和维护...........................................................................................................1-6第2章 IP性能配置..................................................................................................................2-12.1 IP性能简介.........................................................................................................................2-12.2 配置允许接收和发送定向广播报文.....................................................................................2-12.2.1 配置允许接收定向广播报文.....................................................................................2-12.2.2 配置允许转发定向广播报文.....................................................................................2-22.2.3 允许接收和发送定向广播报文配置举例...................................................................2-22.3 配置TCP属性.....................................................................................................................2-42.3.1 配置TCP的可选参数................................................................................................2-42.4 配置ICMP差错报文发送功能..............................................................................................2-42.5 IP性能显示和维护..............................................................................................................2-7第1章 IP 地址配置1.1 IP 地址简介1.1.1 IP 地址的分类和表示连接到Internet 上的设备接口必须有一个全球唯一的IP 地址。
H3C交换机vlan简单配置H3C交换机vlan简单配置 华三通信安全产品线专注于⽹络安全以及应⽤安全,为⽤户提供融合⽹络和应⽤的产品与解决⽅案。
下⾯是关于H3C交换机vlan简单配置,希望⼤家认真阅读! 进⼊系统视图 vlan 10 display vlan all port e0/1 to e0/2 quit vlan 20 port e0/3 to e0/4 quit vlan 30 port e0/1 to e0/4 此时缺省⼀个端⼝只属于⼀个vlan,需要修改e0/1--e0/4的端⼝模式为混杂模式,⼀个端⼝可属于多个vlan有多个vlanid 但只能有⼀个pvid interface e0/1 port link-type hybrid(混杂模式) port hybrid vlan 10 30 untagged port hybrid pvid vlan 10 修改端⼝的'pvid quit interface e0/2 port link-type hybrid(混杂模式) port hybrid vlan 10 30 untagged port hybrid pvid vlan 10 quit interface e0/3 port link-type hybrid(混杂模式) port hybrid vlan 20 30 untagged port hybrid pvid vlan 20 quit interface e0/4 port link-type hybrid(混杂模式) port hybrid vlan 20 30 untagged port hybrid pvid vlan 20 quit interface e0/9 port link-type hybrid(混杂模式) port hybrid vlan 10 20 30 untagged port hybrid pvid vlan 30 quit ;vlan 10 1 2 9 ;vlan 20 3 4 9 ;vlan 30 1 2 3 4 9 vlanid配置完成,此时需要确定pvid 是否正确 display interface e 0/1 ; 查看端⼝信息中的缺省pvid项 端⼝untagged 的⽬的是如果9⼝接不⽀持标记的设备如单台服务器的⽹卡,则不通信,如果9⼝接上级交换则也可tagged。
H3C路由器配置VLANH3C路由器配置VLAN以前经常使用的VLAN设置,基本都是靠交换机来实现。
但随着路由器技术的发展,VLAN技术也被引入到路由器中。
一,路由器中实现VLAN益处1,在路由器上实现VLAN可以把一些原本需要上面组合的情况变成路由器、二层交换机搭配接入交换机的组合。
而一般二层交换机的价格是三层交换机的1/2 ~ 1/3,所以通过使用路由器VLAN可以节省整体采购成本。
2,H3C新一代宽带路由器ER系列能够全面支持VLAN特性,通过路由器可以轻松把局域网划成多个虚拟隔离区域,例如按照企业的不同部门进行划分,可以保证虚拟网络之前互相独立,以保证信息安全。
同时基于WEB的智能化管理界面,让管理员的手工操作更简单,这也有助于提升管理效率。
3,H3C ER系列路由器针对不同行业还作了定制的优化设计。
如,在酒店网络环境中,根据公安部82号令,要求酒店中每一个房间都必须划分VLAN,而且报文必须携带VLAN号以进行上网监控。
管理员需要对每间客房、办公区都单独划分VLAN,来保证信息安全与可控。
如果管理员分别去配置每一个房间的VLAN,工作量将非常大。
H3C ER5100是ER系列中专门针对酒店业务的路由器,配套有专用酒店网络管理软件。
在此软件中,管理员只需要输入地址池和VLAN范围,ER 5100便会自动为房间分配网络地址和VLAN,而不需要手工一一输入,这也大大减少了管理维护的工作量。
H3C ER系列路由器的VLAN特性,非常适用于酒店、企业、网吧等场所。
既可帮您节省成本又可助您提升工作效率。
二,下面看一个有关H3C路由器配置VLAN的例子H3C华为路由器qos car+nat+dhcp+vlan配置一个小型办公网络,有两家公司(A、B)在一个写字楼办公,共申请一条4M独享VDSL专线(其中A是缴3M 的专线费用,B是缴1M的专线费用),共60台电脑左右,各30台电脑,各三台非网管24口D-LINK交换机,一台华为1821路由器(1wan口,4lan口)。
第1章 VLAN 典型配置指导1.1 基于端口的VLAN 典型配置指导1.1.1 组网图Host1Host2Server2Server1图1-1 基于端口的VLAN 组网示意图1.1.2 应用要求●如基于端口的VLAN 组网示意图所示,Switch A 和Switch B 分别连接了不同部门使用的Host1/Host2和Server1/Server2。
●为保证部门间数据的二层隔离,现要求将Host1和Server1划分到VLAN100中,Host2和Server2划分到VLAN200中。
并分别为两个VLAN 设置描述字符为“Dept1”和“Dept2”。
●在SwitchA 上配置VLAN 接口,对Host1发往Server2的数据进行三层转发。
1.1.3 适用产品、版本表1-1 配置适用的产品与软硬件版本关系1.1.4 配置过程和解释●配置Switch A# 创建VLAN100,并配置VLAN100的描述字符串为“Dept1”,将端口GigabitEthernet1/0/1加入到VLAN100。
<SwitchA> system-view[SwitchA] vlan 100[SwitchA-vlan100] description Dept1[SwitchA-vlan100] port GigabitEthernet 1/0/1[SwitchA-vlan100] quit# 创建VLAN200,并配置VLAN200的描述字符串为“Dept2”。
[SwitchA] vlan 200[SwitchA-vlan200] description Dept2[SwitchA-vlan200] quit# 创建VLAN100和VLAN200的接口,IP地址分别配置为192.168.1.1和192.168.2.1,用来对Host1发往Server2的报文进行三层转发。
[SwitchA] interface Vlan-interface 100[SwitchA-Vlan-interface100] ip address 192.168.1.1 24[SwitchA-Vlan-interface100] quit[SwitchA] interface Vlan-interface 200[SwitchA-Vlan-interface200] ip address 192.168.2.1 24●配置Switch B# 创建VLAN100,并配置VLAN100的描述字符串为“Dept1”,将端口GigabitEthernet1/0/13加入到VLAN100。
目录1 端口隔离配置.....................................................................................................................................1-11.1 端口隔离简介.....................................................................................................................................1-11.2 配置单隔离组.....................................................................................................................................1-11.2.1 将端口加入隔离组...................................................................................................................1-11.3 隔离组显示和维护.............................................................................................................................1-11.4 端口隔离典型配置举例......................................................................................................................1-21 端口隔离配置1.1 端口隔离简介为了实现报文之间的二层隔离,可以将不同的端口加入不同的VLAN,但会浪费有限的VLAN资源。
H3C S5500基本配置思路及实用命令1.总体配置思路:1)添加VLAN1,并将相应端口添加到该VLAN。
(在VLAN状态下才可一次将多个端口加入相应VLAN,interfacee1/0/1toe1/0/24)2)添加VLAN2,并将其置为管理VLAN(在#状态下management-vlan 2),才可设置其VLAN的IP地址。
3)添加静态路由。
4)配置端口TRUNK模式。
5)配置远程登录VTY认证。
6)配置本地用户。
2.进入特权模式System View<H3C> System ViewSystem View:return to User View with Ctrl+Z.[H3C]dis[H3C]display cur3.配置交换机主机名sysnamesysname H3C4.添加VLANvlan 1或在此状态下直接将相应端口加入该VLAN (否则只能一个口的添加)Interface e 1/0/1 to e 1/0/245.配置管理VLAN-- management-vlanmanagement-vlan 26.给管理VLAN添加IP地址interface Vlan-interface1 ip address10."10."40."176255."255."255."07.添加端口到VLAN:port access vlan 1port access vlan 18.远程登录配置及3A认证模式user-interface vty 0 4authentication-mode scheme9.配置3A认证本地用户及属性local-user testpassword simple testpwdauthorization-attribute level 3可能的配置local-user testpassword simple test level 310."将端口配置为Trunk口port link-type trunkport trunk permit vlan all 11."添加静态路由ip route-static0."0.0."00."0.0."010."10."40."112."查看路由表display ip routing-table[H3C]display ip routing-tableRouting Tables:PublicDestinations :7 Routes :7Destination/Mask Proto Pre Cost NextHop Interface0.0."0.0/0 Static 60 010."10."40."1 Vlan210."10."40."0/24 Direct 0 010."10."40."180 Vlan210."40."180/32 Direct 0 0 127."0.0."1 InLoop0127."0.0."0/8 Direct 0 0 127."0.0."1 InLoop0127."0.0."1/32 Direct 0 0 127."0.0."1 InLoop019168."76."0/24 Direct 0 0192."168."76."3 Vlan76192."168."76."3/32 Direct 0 0127."0.0."1 InLoop013."显示当前配置display current-configuration[H3C]display current-configuration14."查看端口及VLAN的up/down状态display brief interface[H3C]display brief interfaceThe brief information of interface(s) under route mode:Interface Link Protocol-link Protocol type Main IPNULL0 UP UP(spoofing) NULL --Vlan1 UP UP ETHERNET192."168."76."3Vlan2 UP UP ETHERNET10."10."40."180The brief information of interface(s) under bridge mode:Interface Link Speed Duplex Link-type PVIDGE1/0/1 UP 1G(a) full(a) access 1GE1/0/2 DOWN auto auto access 1GE1/0/3 DOWN auto auto access 1The brief information of interface(s) under bridge mode:Interface Link Speed Duplex Link-type PVIDGE1/0/1 UP 1G(a) full(a) access 1display brief interface Vlan-interface 1[H3C]display brief interface Vlan-interface 1The brief information of interface(s) under route mode:Interface Link Protocol-link Protocol type Main IPVlan1 UP UP ETHERNET192."168."76."315."查看MAC地址缓存表display mac-address[H3C]display mac-address16."查看某一端口的MAC地址缓存表17."查看ARP缓存表display arp[H3C]display arpType:S-Static D-DynamicIP Address MAC Address VLAN ID Interface Aging Type192."168."76."56 0016-eca2-d69d 1 GE1/0/1 20 D192."168."76."131 0016-3642-e888 1 GE1/0/1 19 D192."168."76."171 0024-1d6e-6fbe 1 GE1/0/1 13 D10."10."40."1 0018-742d-4fc0 2 GE1/0/19 14 D192."168."76."1 0018-742d-4fc0 1 GE1/0/19 10 D18."Tftp备份配置1)查看配置文件名及所在文件夹-dir配置文件名可能为startup.cfg或config.cfg配置文件可能在flash:/或unit1>flash:/目录下<jyzx-px-zhongxin>dir flash:/Directory of flash:/0 -rw- Aug 11 2010 16:27:52 s5500tpsi-cmw520-r2202p11."bin1 -rw- 2365 Apr 26 2000 12:13:58startup.cfg(配置文件名)31496 KB total (23460 KB free)<jyzx-bg-3-d>dirDirectory of unit1>flash:/1 -rw- 3146 Jan 01 2004 00:00:00 config.def2 (*) -rw- Mar 25 2011 16:51:52 s31si_e-cmw310-r2211p07."bin3 (*) -rw- 886025 Jan 01 2004 00:00:00 h3c-http3."1.9-0019."web4 (*) -rw- 2834 Apr 03 2000 01:20:33config.cfg(配置文件名)7239 KB total (2739 KB free)(*) -with main attribute (b) -with backup attribute(*b) -with both main and backup attribute<jyzx-bg-4-x>tftp172."16."8.91 put unit1>flash:/config.cfg10."10."40."185."txtFile will be transferred in binary mode.Sending file to remote tftp server. Please wait... |TFTP:2979 bytes sent in 0 second(s).File uploaded successfully.<jyzx-bg-4-x>dirDirectory ofunit1>flash:/1 -rw- 3146 Jan 01 2004 00:00:00 config.def2 (*) -rw- Mar 25 2011 16:51:52 s31si_e-cmw310-r2211p07."bin3 (*) -rw- 886025 Jan 01 2004 00:00:00 h3c-http3."1.9-0019."web4 (*) -rw- 2979 Apr 02 2000 07:17:02config.cfg7239 KB total (2739 KB free)(*) -with main attribute (b) -with backup attribute(*b) -with both main and backup attribute2)配置可以使用tftp的ACLacl number 2000rule permit source172."16."8.91 0[jyzx-px-zhongxin]acl number 2000[jyzx-px-zhongxin-acl-basic-2000]rule permit source172."18.91 ?0 Wildcard bits :0."0.0."0 ( a host )X.X.X.X Wildcard of source[jyzx-px-zhongxin-acl-basic-2000]rule permit source172."16."8.91 03)配置tftp服务器- tftp-server acl 2000tftp-server acl 2000[jyzx-px-zhongxin]tftp-server acl 2000The ACL number does not exist or contains no rule. Continue? [Y/N]:y(如果还没有配置ACL,则会有此提示)[jyzx-px-zhongxin]tftp client source ip172."16."8.914)备份配置文件到tftp软件所在目录下(在用户视图下,即“>”状态下)172."16."8.91 put flash:/startup.cfg (无目标文件名则表示与源文件名同名)tftp172."16."8.91 put flash:/startup.cfg startup.txt(将配置文件保存为txt文件)<jyzx-px-zhongxin>tftp 172."16."8.91 put flash:/startup.cfgFile will be transferred in binary modeSending file to remote TFTP server. Please wait... \TFTP:2365 bytes sent in 0 second(s).File uploaded successfully.<jyzx-px-zhongxin>tftp172."16."8.91 put flash:/startup.cfg10."10."40."177."txtFile will be transferred in binary modeSending file to remote TFTP server. Please wait... \ TFTP:2365 bytes sent in 0 second(s).File uploaded successfully.5)小结过程在特权状态下配置ACL和Tftp-server信息acl number 2000rule permit source172."16."8.91 0quittftp-server acl 2000save在用户视图下备份配置tftp172."16."8.91 put flash:/startup.cfg10."10."40."177."txt19."关闭实时信息-undo info-center enable[jyzx-bg-4-x]undo info-center enable% Information center is disabled20."21."问题1:无法用system-view命令进入特权模式问题2:无法配置VLAN的IP地址原因:因为local-user中用户认证属性设置不对,level 3必须设置。