ImageVerifierCode 换一换
格式:DOCX , 页数:73 ,大小:416.30KB ,
资源ID:5741156      下载积分:12 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/5741156.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(JuniperEX4200中文配置手册.docx)为本站会员(b****6)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

JuniperEX4200中文配置手册.docx

1、JuniperEX4200中文配置手册EX4200/3200交换机命令配置手册 1 交换机基础知识1.1 Junos操作系统基础Juniper交换机支持两种配置方式:采用命令行的CLI(command-line interface)配置方式,以及采用web浏览器界面JWeb配置方式。本指导书主要是采用命令行的配置方式。交换机配置可以采用console终端配置方式,也可以采用远程telnet方式进行配置,第一次配置的时候必须采用console方式,然后在交换机上打开telnet服务并且配置网络IP地址以及设置用户名和密码,然后才可以进行远程telnet配置。系统初始化用户名是root,密码是空。

2、1.1.1 交换机配置模式CLI有两种模式:用户模式和配置模式,用户模式的提示符是,配置模式的提示符是#,在数用户模式下输入configure或者edit可以进入配置模式:用户模式:labEX4200 #用户模式在用户模式下可以显示交换机的配置、端口状态、路由信息等。登录到交换机上即进入交换机的用户模式:Example: login: EX42Password: labEX4200配置模式:labEX4200# #配置模式通过在用户模式使用edit命令或者configure命令进入配置模式:labEX4200 edit Entering configuration modemasteredit

3、labEX4200#labEX4200 configure Entering configuration modemastereditlabEX4200#1.1.2 交换机配置结构Juniper交换机的配置是一种层次化的配置模式,如下图所示:第一层次protocols协议层里面,可以包含bgp、isis和ospf等第二层次参数配置,而ospf层次里面,又可以定义第三层参数,比如area和traceoptions等,area下面又可以定义interface、area-range等第四层参数,而dead-interval、hello-interval等第五层参数则属于第四层interface下面的

4、参数。 由于是层次化结构,因此配置一个参数有两种方式,一是在最外层使用一条set命令将所有层的参数一次写完,另外一种方式是利用edit逐层进入需要配置参数的层次,然后用set命令直接设置参数。例如要在ospf协议area 0中将interface ge-0/0/1.0的hello-interval时间设置为10秒,那么可以有两种设置方式:方法一:labEX4200# set protocols ospf area 0 interface ge-0/0/1.0 hello-interval 10方法二:labEX4200# edit protocols edit protocolslabEX42

5、00# edit ospf edit protocols ospflabEX4200# edit area 0 edit protocols ospf area 0.0.0.0labEX4200# edit interface ge-0/0/1.0 edit protocols ospf area 0.0.0.0 interface ge-0/0/1.0labEX4200# set hello-interval 10 edit protocols ospf area 0.0.0.0 interface ge-0/0/1.0labEX4200#在edit这种方式中,exit可以退回上一次用edi

6、t进入以前的层,直接输入top则退回最上层:labEX4200# edit protocols edit protocolslabEX4200# edit ospf edit protocols ospflabEX4200# exit edit protocolslabEX4200#分两次输入edit进入ospf,最后输入exit退回protols那层。labEX4200# edit protocols ospf edit protocols ospflabEX4200# exit editlabEX4200#分一次edit进入ospf,最后输入exit退回最外层.labEX4200# edi

7、t protocols edit protocolslabEX4200# edit ospf edit protocols ospflabEX4200# top editlabEX4200#输入top直接退出到最外层。另外,juniper的配置参数有些可以一次写几个,比如要一次配置ospf的hello-time和dead-time可以按照下面写法:labEX4200# set protocols ospf area 0 interface ge-0/0/1.0 hello-interval 10 dead-interval 10 输入以上命令之后,交换机的配置如下:protocols ospf

8、 area 0.0.0.0 interface ge-0/0/1.0 hello-interval 10; 注意:如果不知道一条命令里面后面是否还可以跟其它配置参数,那么最好使用 ? 帮助一下:labEX4200# set protocols ospf area 0 interface ge-0/0/1.0 hello-interval 10 ? Possible completions: Execute this command+ apply-groups Groups from which to inherit configuration data+ apply-groups-except

9、 Dont inherit configuration data from these groups authentication bfd-liveness-detection Bidirectional Forwarding Detection options dead-interval Dead interval (seconds) (1.65535) demand-circuit Interface functions as a demand circuit disable Disable OSPF on this interface interface-type Type of int

10、erface ipsec-sa IPSec security association name ldp-synchronization Advertise maximum metric until LDP is operational metric Interface metric (1.65535) neighbor NBMA neighbor no-neighbor-down-notification Dont inform other protocols about neighbor down events passive Do not run OSPF, but advertise i

11、t poll-interval Poll interval for NBMA interfaces (1.65535) priority Designated router priority (0.255) retransmit-interval Retransmission interval (seconds) (1.65535) te-metric Traffic engineering metric (1.65535) transit-delay Transit delay (seconds) (1.65535) | Pipe through a commandedit 1.1.3 TA

12、B和空格键的使用交换机JUNOS命令配置中,可以使用TAB键和空格键来进行参数的补全,在补全系统参数中两个键的作用是一样的,例如:labEX4200# set pro -输入TAB键或者空格键,则会补全protocolslabEX4200# set protocols 而对于用户自己定义的参数,则只能用TAB来补全,比如我们定义了一个Test_Policy_1的策略,要在ospf中配置时可以使用 ?来显示:labEX4200# set protocols ospf export ?Possible completions: Export policy ( Open an expression

13、Test_Policy_1 Open a set of valuesedit 也可以直接输入T之后按TAB键来补全,而此时按空格键则无法补全:labEX4200# set protocols ospf export T show interfaces Physical interface: ge-0/0/1, Enabled, Physical link is Up Interface index: 142, SNMP ifIndex: 31 Link-level type: Ethernet, MTU: 1518, Speed: 100mbps, Loopback: Disabled, So

14、urce filtering: Disabled, Flow control: Enabled Device flags : Present Running Interface flags: SNMP-Traps Internal: 0x4000 CoS queues : 4 supported, 4 maximum usable queues Current address: 00:05:85:dc:cc:db, Hardware address: 00:05:85:dc:cc:db Last flapped : 2007-06-29 20:37:17 HKT (1w2d 00:31 ago

15、) Input rate : 280 bps (0 pps) Output rate : 1280 bps (1 pps) Active alarms : None Active defects : None Logical interface ge-0/0/1.0 (Index 83) (SNMP ifIndex 71) Flags: SNMP-Traps 0x4000 VLAN-Tag 0x8100.33 Encapsulation: ENET2 Input packets : 0 Output packets: 0 Protocol inet, MTU: 1500 Flags: None

16、 labEX4200而在配置下show命令是显示相关的配置,比如show interface则是显示interface部分的配置:labEX4200# show interfaces ge-0/0/1 unit 0 family ethernet-switching vlan members 10 ; family inet; editlabEX4200#因此说用户模式和配置模式下的show命令是不同的,如果要在配置模式下运行用户模式命令,则需要在命令前面加一个run labEX4200# run show interfaces Physical interface: ge-0/0/1, En

17、abled, Physical link is Up Interface index: 142, SNMP ifIndex: 31 Link-level type: Ethernet, MTU: 1518, Speed: 100mbps, Loopback: Disabled, Source filtering: Disabled, Flow control: Enabled Device flags : Present Running Interface flags: SNMP-Traps Internal: 0x4000 CoS queues : 4 supported, 4 maximu

18、m usable queues Current address: 00:05:85:dc:cc:db, Hardware address: 00:05:85:dc:cc:db Last flapped : 2007-06-29 20:37:17 HKT (1w2d 00:36 ago) Input rate : 792 bps (0 pps) Output rate : 672 bps (0 pps) Active alarms : None Active defects : None Logical interface ge-0/0/1.0 (Index 83) (SNMP ifIndex

19、71) Flags: SNMP-Traps 0x4000 VLAN-Tag 0x8100.33 Encapsulation: ENET2 Input packets : 0 Output packets: 0 Protocol inet, MTU: 1500 Flags: None editlabEX4200#labEX4200# run ping 172.27.69.8 PING 172.27.69.8 (172.27.69.8): 56 data bytes64 bytes from 172.27.69.8: icmp_seq=0 ttl=64 time=5.118 ms64 bytes

20、from 172.27.69.8: icmp_seq=1 ttl=64 time=7.949 ms64 bytes from 172.27.69.8: icmp_seq=2 ttl=64 time=7.018 msC- 172.27.69.8 ping statistics -3 packets transmitted, 3 packets received, 0% packet lossround-trip min/avg/max/stddev = 5.118/6.695/7.949/1.178 mseditlabEX4200#labEX4200# run ping 172.27.69.8命

21、令等同于labEX4200 ping 172.27.69.81.1.5 如何将配置转换成set命令在配置模式下使用show或者在用户模式下使用show configure命令,输出结果是“程序化”的配置,这样的配置并不能直接粘贴到另外一台交换机上,不过可以在show后面使用管道符号加上display set将其转换成set格式命令,然后可以直接粘贴到其它交换机上:labEX4200# show protocols ospf export Test_Policy_1;area 0.0.0.0 interface ge-0/0/1.0 hello-interval 10; editlabEX420

22、0# show protocols ospf | display set set protocols ospf export Test_Policy_1set protocols ospf area 0.0.0.0 interface ge-0/0/1.0 hello-interval 10editlabEX4200#1.1.6 commit和rollback在cisco中只要输入命令,回车之后命令马上生效,因为我们修改的就是系统正在使用的running-config配置文件。而在JUNOS中完全不同,我们操作(增加、删除、修改)的那份配置文件只是一个候选文件(candidate config

23、ure),并不是正在运行的配置文件,只有将候选文件通过commit提交之后,配置才会真正的应用到当前系统使用的active配置文件中,从而使得修改的配置生效。为了检查配置是否有错,可以在commit之前使用commit check来对配置进行语法检查。为了避免提交时出错,建议不要同时两个人修改配置。如果提交之后,可以使用rollback进行回滚,rollback 1回滚上一次提前之前的配置,rollback 2则是回滚上2次提交之前的配置:labEX4200# show system host-name host-name EX4200;editlabEX4200# set system ho

24、st-name R1 editlabEX4200# commit commit completeeditlabEX4200# show system host-name host-name EX4200;editlabEX4200# rollback 1 load completeeditlabEX4200# show system host-name host-name EX4200;editlabEX4200# commit commit completeeditlabEX4200#1.2 EX交换机命令菜单结构vlans vlan-name /vlan名字,自定义,下面所有 参数都是针对

25、该vlanmac-limit action; /设置vlan允许的最大macdescription text-description; /vlan描述filter input filter-name; /设置VLAN输入流量过滤条件filter output filter-name; /设置VLAN输出流量过滤条件l3-interface vlan.logical-interface-number; /将vlan绑定到L3的vlan子端口mac-table-aging-time seconds; /设置vlan 的mac表生存时间vlan-id number; /设置vlan idvlan-r

26、ange vlan-id-low-vlan-id-high; /同时创建多个vlan chassis aggregated-devices ethernet device-count number; /设置聚合端口数量,范围是0-64 interfaces ae-x aggregated-ether-options /设置聚合端口参数lacp mode /设置lacp模式periodic fast/slow; /设置lacp包发送间隔时间,选择fast则隔1秒发送,选择 /slow每隔30秒发送 ge-chassis/pic/port /设置ge端口参数description text; /设

27、置描述ether-options /ether-options参数802.3ad aex; /指定加入的聚合端口auto-negotiation; /自动协商flow-control; /流控制link-mode mode; /设置端口工作模式speed (speed | auto-negotiation | no-autonegotiation); /设置端口速率 mtu bytes; /设置端口MTU值,默认是1514unit logical-unit-number /设置逻辑单元参数family ethernet-switching /设置L2参数filter input filter-

28、name; /设置二层输入包过滤条件filter output filter-name; /设置二层输出包过滤条件l3-interface interface-name-logical-unit-number; /在Trunk端口模式下设置允许通过的/L3端口流量native-vlan-id vlan-id /指定navite vlan idport-mode mode; /设置端口L2工作模式,为Trunk或者access模式vlan members (names | vlan-ids) ; /设置端口属于哪个VLAN或者允许哪些VLAN通过 vlan-id vlan-id-number;

29、/仅对GE或者ae端口有效,范围是1 t到 4094 vlan-tagging; /设置端口为vlan-tagging protocols dot1x authenticator authentication-pro access-pro; static mac-address vlan-assignment (vlan-id |vlan-name); interface interface-names; interface (all | interface-name) disable; guest-vlan (vlan-name | vlan-id); maximum-requests seconds; no-reauthentication; quiet-period seconds; reauthentication i

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

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