安奈特中文操作指南.doc

上传人:爱问知识人 文档编号:5021547 上传时间:2020-01-29 格式:DOC 页数:34 大小:654.50KB
返回 下载 相关 举报
安奈特中文操作指南.doc_第1页
第1页 / 共34页
安奈特中文操作指南.doc_第2页
第2页 / 共34页
安奈特中文操作指南.doc_第3页
第3页 / 共34页
安奈特中文操作指南.doc_第4页
第4页 / 共34页
安奈特中文操作指南.doc_第5页
第5页 / 共34页
点击查看更多>>
资源描述

《安奈特中文操作指南.doc》由会员分享,可在线阅读,更多相关《安奈特中文操作指南.doc(34页珍藏版)》请在三一文库上搜索。

1、目 录初始登录设置:2预备操作知识:2三层交换机vlan基本配置:3IP基本配置:6IP Helper设置(广播转发):7DHCP(动态主机配置协议)服务器设置:7IP Filter的配置(访问控制列表,ACL):8Hardware Filter的设置(硬件包过滤,HWF):10IP NAT的配置(网络地址转换,标准IP NAT只适用于路由器):13SNMP(简单网络管理协议)设置:13Ping Polling的设置:16Trigger(触发器)的设置:17Test工具之Virtual Cable Test Facility:18OSPF(开放式最短路径优先)的设置:19VRRP(虚拟路由器冗

2、余协议)的设置:23QoS(服务质量)的设置:24物理端口速率限制:25各种二层隧道协议及IPSec VPN设置:25配置文件的保存及设置:31上传下载文件至路由器/三层交换机:31#初始登录设置:#使用超级终端通过串口登录进入路由器/三层交换机。超级终端设置:9600波特率,8数据位,1停止位,No奇偶校验,硬件流控制。在login:状态输入用户名:manager密码:friend如果有相应权限,也可通过telnet路由器/三层交换机的任意活跃接口的IP地址访问设备。安奈特路由器/三层交换机的配置环境是不区分层次化的,不存在类似Cisco的“全局配置模式”、“接口配置模式”、“路由协议配置模

3、式”,所有的配置命令均在同一模式/界面下执行,其提示符为:登录用户级别 设备名称例如,使用Manager权限用户登录名称为Test的设备,则显示为:Manager Test使用SecurityOfficer权限用户登录名称为CoreSwitch的设备,则显示为:SecOff CoreSwitch然后即可配置所有内容。%#预备操作知识:#安奈特路由器/三层交换机的主要配置命令包括五个:createdestroycreate:创建原本并不存在的实体。例如,缺省所有交换机端口属于仅有的一个vlan1,不存在其他的vlan。如果要创建其他的vlan,则需使用create vlan=vlan-name

4、vid=vlan-iddestroy:删除通过create创建的实体,在删除之前,需先删除其他的关联配置内容。例如,如果要删除vlan2,则需先删除vlan2中所有的port,删除vlan2的ip地址(如果有),删除其他地方对于interface vlan2的引用,等等。add deleteadd:对已有的实体增加属性。例如,vlan1缺省存在,不能用create创建,也不能用destroy删除,如果要对vlan1增加端口,则:add vlan=1 port=port-list;如果要对vlan1增加ip地址,则:add ip int=vlan1 ip=ip-address mask=ip-m

5、ask;如果对已经创建的vlan2增加ip地址,则:add ip int=vlan2 ip=ip-address mask=ip-mask;如果要增加路由,则:add ip route=dest-ip-segment mask=dest-ip-segment-mask int=out-interface-name nexthop=nexthop-ip-address;delete:对已有的实体删除某些属性。例如,将某些端口从vlan3删除,则:delete vlan=3 port=port-list;如果要删除vlan4的ip地址设置,则:delete ip int=vlan4 ip=ip-a

6、ddress;如果要删除已存在的防火墙规则条目10,则:delete firewall policy=fire rule=10;setset:对已有的实体属性进行修改。例如,直接修改接口vlan2的ip地址,则:set ip int=vlan2 ip=new-ip-address mask=new-ip-mask;设置用户自身的密码,则:set password;设置其他用户的密码(需具备高级权限),则:set user=user-name password=password;注意:create与destroy对应,add与delete对应。因此,如果通过create创建的实体,不能使用del

7、ete删除;如果通过add增加的属性,不能使用destroy删除。%#三层交换机vlan基本配置:#Port-Based VLAN with Untagged Ports设置需求:VLAN name VLAN ID PortsMarketing VID=2 PORT 1-3Training VID=3 PORT 14-16配置示例:1. Create VLANs.#Create the two VLANs using the following commands on the switch:create vlan=marketing vid=2create vlan=training vid=

8、32. Add ports to VLANs.#Add the ports to these VLANs on the switch by using the following commands:add vlan=marketing port=1-3add vlan=training port=14-16#Check the VLAN configuration by using the command:show vlan3. Check the switch.#Check that the switch is switching across the ports. Traffic on t

9、he switch can be monitored using the command:show switch counterVLAN with Tagged Ports设置需求:Switch A Switch BVLAN name VID Tagged portsUntagged ports Tagged ports Untagged portsAdmin VID=2 PORT 2 PORT 1Training VID=3 PORT 26 PORT 3 PORT 25 PORT 21,22Marketing VID=4 PORT 2,26 PORT 4 PORT 25 PORT 23To

10、configure Switch A1. Create VLANs.#Create the three VLANs using the following commands on the switch:create vlan=admin vid=2create vlan=training vid=3create vlan=marketing vid=42. Add ports to VLANs.#Add the ports to these VLANs on the switch by using the following commands:add vlan=admin port=2 fra

11、me=taggedadd vlan=admin port=1 frame=untaggedadd vlan=training port=26 frame=taggedadd vlan=training port=3 frame=untaggedadd vlan=marketing port=2,26 frame=taggedadd vlan=marketing port=4 frame=untagged#Check the VLAN configuration by using the command:show vlanTo configure Switch B1. Create VLANs.

12、#Create the two VLANs using the following commands on the switch:create vlan=training vid=3create vlan=marketing vid=42. Add ports to VLANs.#Add the ports to these VLANs on the switch by using the following commands:add vlan=training port=5 frame=taggedadd vlan=training port=1,2 frame=untaggedadd vl

13、an=marketing port=5 frame=taggedadd vlan=marketing port=3 frame=untagged#Check the VLAN configuration by using the command:show vlanCheck#Check that the switch is switching across the ports. Traffic on Switch A can be monitored using the command:show switch counter=1-4,26#Traffic on Switch B can be

14、monitored using the command:show switch counter=21-23,25#IP基本配置:#针对路由器/三层交换机配置IP内容,为每个网段指定IP地址,作为该网段客户端PC的网关地址。首先,激活IP功能模块:Enable ip假定int=eth1连接了Internet路由器,本地eth1的地址为192.168.2.253,Internet路由器与本地路由器相连的接口IP地址为192.168.2.254。add ip int=eth1 ip=192.168.2.253 mask=255.255.255.0添加缺省路由,以允许内部网络联接外部网络,例如联接In

15、ternet。add ip route=0.0.0.0 mask=0.0.0.0 int=eth1 next=192.168.2.254关于网络地址转换内容请见后文叙述。在下面的配置中,假定允许eth1的客户端只可以访问内部企业网各网段,不能访问其他地址,例如不能访问INTERNET。#IP Helper设置(广播转发):#假定Windows服务器位于eth0,其地址为10.94.4.1/3/5/7。客户端位于eth1,那么需要配置ip helper address转发NetBIOS流量。# port=137指明protocol port=137enable ip helperadd ip h

16、elper port=137 int=eth1 destination=10.94.4.1add ip helper port=137 int=eth1 destination=10.94.4.3add ip helper port=137 int=eth1 destination=10.94.4.5add ip helper port=137 int=eth1 destination=10.94.4.7add ip helper port=138 int=eth1 destination=10.94.4.1add ip helper port=138 int=eth1 destination

17、=10.94.4.3#DHCP(动态主机配置协议)服务器设置:#如果需要,可以为每个以太网接口设置一个DHCP服务器。# DHCP configuration - Post IP#enable dhcpcreate dhcp poli=RJC lease=14400add dhcp poli=RJC subn=255.255.255.0add dhcp poli=RJC rou=192.168.3.1add dhcp poli=RJC dnss=10.94.4.5create dhcp ran=eth0 poli=RJC ip=192.168.1.2 num=50create dhcp pol

18、i=YZGH lease=14400add dhcp poli=YZGH subn=255.255.255.0add dhcp poli=YZGH rou=192.168.2.1add dhcp poli=YZGH dnss=10.94.4.5create dhcp ran=eth1 poli=YZGH ip=192.168.2.2 num=50对打印机等设备进行固定IP地址分配:create dhcp poli=XXJSJ lease=14400add dhcp poli=XXJSJ subn=255.255.255.0add dhcp poli=XXJSJ rou=192.168.25.1

19、add dhcp poli=XXJSJ dnss=10.94.4.5create dhcp ran=vlan25 poli=XXJSJ ip=192.168.25.2 num=80add dhcp range=office policy=XXJSJ IP=192.168.25.50 address=00-00-0c-00-28-73#IP Filter的配置(访问控制列表,ACL):#Traffic filter:ADD IP FILter=0.99 ACtion=INCLude|EXCLude SOurce=ipadd SMask=ipadd SPort=port-name|port-id

20、DEStination=ipadd DMask=ipadd DPort=port-name|port-id ICMPCode=icmp-code-name|icmp-code-idICmptype=icmp-type-name|icmp-type-id LOG=4.1600|Dump|Header|None OPtions=False|OFF|ON|NO|True|YESPROTocol=protocol|Any|Egp|Icmp|Ospf|Tcp|UdpSEssion=Any|Established|Start SIze=size ENTry=1.255Policy filter:ADD I

21、P FILter=100.199 POLIcy=0.15 SOurce=ipadd SMask=ipadd SPort=port-name|port-id DEStination=ipadd DMask=ipadd DPort=port-name|port-id ICMPCode=icmp-code-name|icmp-code-idICmptype=icmp-type-name|icmp-type-id LOG=4.1600|Dump|Header|None OPtions=False|OFF|ON|NO|True|YESPROTocol=protocol|Any|Egp|Icmp|Ospf

22、|Tcp|UdpSEssion=Any|Established|Start SIze=size ENTry=1.255Priority filter:ADD IP FILter=200.299 PRIOrity=P0.P7 SOurce=ipadd SMask=ipadd SPort=port-name|port-id DEStination=ipadd DMask=ipadd DPort=port-name|port-id ICMPCode=icmp-code-name|icmp-code-idICmptype=icmp-type-name|icmp-type-id LOG=4.1600|D

23、ump|Header|None OPtions=False|OFF|ON|NO|True|YESPROTocol=protocol|Any|Egp|Icmp|Ospf|Tcp|UdpSEssion=Any|Established|Start SIze=sizeENTry=1.255Routing filter:ADD IP FILter=300.399 ACtion=INCLude|EXCLude SOurce=ipadd ENTry=1.255 SMask=ipadd设置举例:enable ipadd ip filter=1 so=0.0.0.0 ac=include prot=udp dp

24、=bootpsadd ip filter=1 so=0.0.0.0 ac=include prot=udp dp=bootpcadd ip filter=1 so=192.168.2.0 sm=255.255.255.0 des=10.94.3.0 dm=255.255.255.0 ac=includeadd ip filter=1 so=192.168.2.0 sm=255.255.255.0 des=10.94.4.0 dm=255.255.255.0 ac=includeadd ip filter=1 so=192.168.2.0 sm=255.255.255.0 des=10.94.5

25、.0 dm=255.255.255.0 ac=includeadd ip filter=1 so=192.168.2.0 sm=255.255.255.0 ac=exclude(上面例子中最后这句可以省略,缺省的IP Filter的最后隐含了一句拒绝所有的流量通过,即add ip filter=1 so=0.0.0.0 sm=0.0.0.0 ac=exclude)IP Filter在接口上的使用,总是应用于交换机接口的in方向!每一个IP Filter组中包含的语句由Entry值定位其位置,如果在输入命令时,未指明Entry值,则缺省从1开始,依次累加。通过show ip filter可以查看

26、具体的每个语句的位置,在执行IP Filter的操作时,按照从顶向下的方向执行,一旦匹配某条语句,则立即执行相应操作,并结束IP Filter的查找。通过ACL来实现所有通信流量的单向访问控制非常困难,因为绝大多数时候的通信需求都是双向的,我们拒绝从低优先级侧主动发起会话,但是必须允许从低优先级侧回复给高优先级的会话。(注意:对于无应答的UDP单向通信并不需要额外关心)。因为ACL不保存每个会话的状态,无法判断低优先级测发起的流量是初始发送数据包还是对高优先级数据包的回复,而这种状态检测功能通常由防火墙实现。对于这种情况,所有ACL的实现只能有选择的针对TCP会话实现单向通信。通过指定Esta

27、blished关键字实现(Cisco命令也类似):ADD IP FILTER=filter-number SOURCE=ipadd SMASK=ipadd SESSION=ANY|ESTABLISHED|START譬如,我们可以在低优先级侧(假定接口为vlan100)配置访问控制列表如下:add ip filter=99 so=0.0.0.0 session=established ac=includeset ip int=vlan100 filter=99这样可以允许从Vlan100这个低优先级网段返回高优先级发起的通信,同时拒绝所有低优先级侧对外的所有其他通信。将IP Filter应用于接

28、口的命令为:set ip interface=eth0 filter=filter_id对于本地交换机配置的所有以太网接口,均为直连网段,缺省情况下,所有网段间通信都是被许可的。对于eth1,做了上面所述的访问控制限制。如果将访问控制列表从接口上去掉,可以使用:set ip int=eth1 filter=none。add ip int=eth1 ip=192.168.2.253 filter=1add ip int=eth0 ip=192.168.1.253#Hardware Filter的设置(硬件包过滤,HWF):#硬件包过滤的配置(HWF,可以代替IP Filter的工作,通过硬件执行

29、过滤操作,不牵涉CPU的中断,只适用于三层交换机):# CLASSIFIER general configuration#create class=7 tcpd=4444create class=8 tcpd=445create class=9 udpd=445create class=10 tcpd=593create class=11 udpd=1434create class=12 udpd=135create class=13 tcpd=135create class=14 udpd=139# SWITCH (post-VLAN) configuration#add switch hw

30、f class=7 ac=discardadd switch hwf class=8 ac=discardadd switch hwf class=9 ac=discardadd switch hwf class=10 ac=discardadd switch hwf class=11 ac=discardadd switch hwf class=12 ac=discardadd switch hwf class=13 ac=discardadd switch hwf class=14 ac=discard对于AT-Rapier系列的交换机,HWF的执行方式为,从顶向下执行“所有”的语句,即找

31、到第一个匹配项以后,对数据包做相应的标记,然后继续寻找随后的匹配语句,如果再次匹配某个语句,则做相应的标记。因此,可能出现开始的标记被覆盖的情况。对于AT-SwitchBlade/AT-9900/AT-9800系列的交换机,HWF的执行方式为,从顶向下执行,找到匹配语句以后,则停止执行当前HWF_id组中的其他语句。对于所有的三层交换机,所有不匹配HWF任何语句的数据包均被“允许”通过,按照正常转发动作执行。AT-Rapier系列HWF示例(在Port24上,只允许特定IP地址的全部流量及所有IP地址的特定TCP应用通过,其他TCP流量均丢弃):create class=1 ipprot=tc

32、p tcpdport=5000 eport=24create class=2 ipprot=tcp tcpsport=5000 eport=24create class=3 ipprot=tcp tcpdport=21 eport=24create class=4 ipprot=tcp tcpsport=21 eport=24create class=5 ipprot=tcp tcpdport=25 eport=24create class=6 ipprot=tcp tcpsport=25 eport=24create class=7 ipprot=tcp tcpdport=80 eport=

33、24create class=8 ipprot=tcp tcpsport=80 eport=24create class=9 ipprot=tcp tcpdport=110 eport=24create class=10 ipprot=tcp tcpsport=110 eport=24create class=11 ipprot=tcp tcpdport=1433 eport=24create class=12 ipprot=tcp tcpsport=1433 eport=24create class=13 ipprot=tcp tcpdport=1000 eport=24create cla

34、ss=14 ipprot=tcp tcpsport=1000 eport=24create class=15 ipprot=tcp tcpdport=3000 eport=24create class=16 ipprot=tcp tcpsport=3000 eport=24create class=17 ipprot=tcp tcpdport=9970 eport=24create class=18 ipprot=tcp tcpsport=9970 eport=24create class=19 ipprot=tcp tcpdport=9971 eport=24create class=20

35、ipprot=tcp tcpsport=9971 eport=24create class=100 ipsadd=192.15.200.10 eport=24create class=101 ipdadd=192.15.200.10 eport=24create class=102 ipsadd=192.15.200.227 eport=24create class=103 ipdadd=192.15.200.227 eport=24create class=104 ipsadd=192.15.200.225 eport=24create class=105 ipdadd=192.15.200

36、.225 eport=24create class=900 epo=24 ippr=tcp add switch hwf class=900 action=discardadd switch hwf class=1-20 action=nodropadd switch hwf class=100-105 action=nodrop利用Hardware Filter实现TCP的单向访问:第一种配置方式:# VLAN general configuration, VLAN 3 has higher prioritycreate vlan=v2 vid=2create vlan=v3 vid=3#

37、VLAN port configuration#add vlan=2 port=24add vlan=3 port=1# CLASSIFIER general configuration#create class=1 ipsa=10.12.1.0/24 ipda=11.12.1.0/24 tcpf=syncreate class=2 ipsa=10.12.1.0/24 ipda=11.12.1.0/24 tcpf=ack,syn#创建两条calssifier:classifier1 对应VLAN2 至VLAN3 TCP 标志位为SYN 的流量;classifier2 对应VLAN2 至VLAN

38、3 TCP 标志位为SYN+ACK的流量。# SWITCH (post-VLAN) configuration#add switch hwf class=1 ac=discardadd switch hwf class=2 ac=nodrop#添加hwfiler,禁止匹配classifier1 的所有流量,但允许其中匹配classifier2 的流量通过。# IP configuration#enable ipadd ip int=vlan2 ip=10.12.1.1 mask=255.255.255.0add ip int=vlan3 ip=11.12.1.1 mask=255.255.25

39、5.0第二种配置方式:# CLASSIFIER general configuration#create class=1 prot=0800 ipsa=10.12.1.0/24 ipda=11.12.1.0/24 ippr=tcp match1=0002 mask1=00ff offset1=50#创建一条calssifier:classifier1 对应VLAN2 至VLAN3 只有 TCP 标志位为SYN 的流量。注意:该classsifier 不匹配VLAN2 至VLAN3 TCP 标志位为SYN+ACK的流量!# SWITCH (post-VLAN) configuration#add

40、 switch hwf class=1 ac=discard#添加hwfiler,禁止匹配classifier1 的所有流量。#IP NAT的配置(网络地址转换,标准IP NAT只适用于路由器):#ENABLE IP NAT静态NAT:ADD IP NAT IP=192.168.1.2 GBLIP=203.56.3.78静态ENAT:ADD IP NAT IP=192.168.10.3 PROT=TCP PORT=80 GBLIP=203.56.3.78 GBLPORT=80ADD IP NAT IP=192.168.10.4 PROT=TCP PORT=20 GBLIP=203.56.3.7

41、8 GBLPORT=20ADD IP NAT IP=192.168.10.4 PROT=TCP PORT=21 GBLIP=203.56.3.78 GBLPORT=21动态NAT:ADD IP NAT IP=192.168.1.0 MASK=255.255.255.0 GBLIP=203.56.3.128 GBLMASK=255.255.255.128动态ENAT:ADD IP NAT IP=192.168.1.0 MASK=255.255.255.0 GBLIP=203.56.3.78或者:ADD IP NAT IP=192.168.1.0 MASK=255.255.255.0 GBLINT=eth0对于具备防火墙功能的网络设备,如果开启了防火墙,则NAT功能由Firewall执行,IP NAT将被自动Disable。关于Firewall的详细设置,请参考相应命令手册。%#SNMP(简单网络管理协议)设置:#

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

当前位置:首页 > 研究报告 > 商业贸易


经营许可证编号:宁ICP备18001539号-1