




已阅读5页,还剩6页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
juniper交换机配置指南开机后:login: rootLast login: Fri Jan 17 22:21:55 on ttyd0- JUNOS 7.2R3.3 built 2002-03-23 02:44:36 UTCTerminal type? vt100 root%注意使用root用户登录的情况下,输入帐号/密码以后,默认是进入shell模式的(而只有root用户帐号有这个现象),要输入cli命令进入用户模式:root%cliroot配置模式用户模式下输入configure命令进入配置模式,配置模式下可以对设备进行各种参数的配置root configureeditroot#设置root用户密码命令:set system root-authentication plain-text-password路由器初始化root用户是没有密码的,在第一次进行配置的时候必须要配置root密码才能commit成功。密码采用字母+数字方式。Example:labM7i_GZ# set system root-authentication plain-text-passwordNew password:Retype new password:添加系统用户命令:set system login user juniper uid 2000 -设置用户名为juniper用户id为2000set system login user juniper class super-user -设置juniper用户为超级用户set system login user juniper authentication plain-text-password -设置juniper用户的密码设置主机名命令:set system host-name M7i_GZ -设置主机名为M7i_GZ开启系统telnet服务命令:set system services telnet说明:系统默认是没有打开telnet功能的,只有打开telnet服务之后才能从网络上登陆到路由器。开启系统ftp服务命令:set system services ftp说明:系统默认是没有打开ftp功能的,只有打开ftp服务之后才能从网络上ftp到路由器。配置SNMPset snmp community authorization clients # 设置SNMP字符串set snmp trap-options source-address #设置snmp trap的原地址为set snmp contact #设置snmp的联系信息set snmp engine-id local #设置snmp v3 engine ID信息set snmp description #设置snmp的系统描述配置物理端口参数userhost#setinterface ge-slot/pic/port description description#配置端口描述userhost#setinterface ge-slot/pic/port mtu mtu-number#配置端口MTUuserhost#setinterface ge-slot/pic/port ether-options speed (10m | 100m | 1g)#配置端口速率userhost#setinterface ge-slot/pic/port ether-options link-mode (automatic | full-duplex |half-duplex )#配置端口双工userhost#setinterface ge-slot/pic/port ether-options (auto-negotiation |no-auto-negotiation )#配置端口自动协商Example:roothost editEntering configuration modeeditroothost# set interfaces ge-3/0/0 description “to_BJ-4200-1”editroothost# set interfaces ge-3/0/0 mtu 9216editroothost# set interfaces ge-3/0/0 ether-options speed 1geditroothost# set interfaces ge-3/0/0 ether-options link-modefull-duplexeditroothost# set interfaces ge-3/0/0 ether-options auto-negotiation配置物理端口二层接口editroothost# set interfaces ge-0/0/16 unit 0 family ethernet-switchingport-mode access配置物理端口作为二层access模式的接口,端口默认情况下就是二层access端口。edituserhost# show interfacesge-0/0/16 unit 0 family ethernet-switching;配置物理端口三层接口EX交换机物理接口可以支持三层路由接口功能,直接可以在接口上配置三层地址editroothost# set interfaces ge-0/0/17 unit 0 family inet address/24配置VLAN初始化配置时候,所有端口属于default VLAN,default vlan 的默认ID是0userhost# set interfaces name unit 0 family ethernet-switching port-mode access#配置端口的access模式,默认端口就是access模式。userhost#setvlans vlan-name vlan-id number#配置VLAN分配vlan IDEX支持2种方式来配置access接口分配到VLAN,采用其中一种就可以实现端口VLAN的划分。方式一:userhost#setvlans vlan-name interface interface_name直接在VLAN中添加多个物理端口方式二:或是在物理接口下:userhost#setinterfaces interface-name unit 0 family ethernet-switching vlan membersvlan-name or vlan-id#添加端口到特定VLANuserhost# show vlans vlan-name detail#查看VLAN信息Example:roothost editEntering configuration modeeditroothost# set vlans sales vlan-id 100editroothost# set vlans sales interface ge-0/0/1#或者可以如下配置,实现相同的配置效果editroothost# set interfaces ge-0/0/1 unit 0 family ethernet-switchingvlan members sales配置Vlan trunk配置端口作trunk端口,支持802.1Q的标准封装。userhost# set interfaces name unit 0 family ethernet-switching port-mode trunk#配置端口的VLAN模式为trunk模式userhost# set interfaces name unit 0 family ethernet-switching vlan membersall|number#配置trunk端口的允许通过的VLAN,9.1版本目前不支持vlan-range,预期在9.2版本支持。Example:roothost editEntering configuration modeeditroothost#showinterfaces ge-0/0/3 unit 0 family ethernet-switching port-mode trunk;vlan members orange blue ;ge-0/0/4 unit 0 family ethernet-switching port-mode trunk;vlan members 100 200 ;配置 native-vlan-idEX在trunk端口下支持native-vlan 的配置:roothost editEntering configuration modeeditroothost# set interface ge-0/0/8 unit 0 family Ethernet-switchnative-vlan-id purpleeditroothost#showinterfacege-0/0/8 unit 0 family ethernet-switching port-mode trunk;vlan members orange blue purple ;native-vlan-id purple;静态路由协议手工添加到路由表下一跳必须有效所以的配置在routing-options 级别Syntax:editrouting-options static defaults static-options;route destination-prefix next-hop next-hop;qualified-next-hop address metric metric;preference preference;static-options;Example:edituserhost# showrouting-options static route /0 next-hop ;OSPF单区域edituserhost# set protocols ospf area 0 interface ge-0/0/0edituserhost# show protocols ospfospf area interface ge-0/0/0.0;配置OSPF 多区域edituserhost# show protocols ospfospf area interface ge-0/0/0.0;edituserhost# set protocols ospf area 1 interface at-0/1/1.100edituserhost# show protocols ospfospf area interface ge-0/0/0.0;area interface at-0/1/1.100;综合实例:set system root-authentication plain-text-passwordset system login user juniper uid 2000 -设置用户名为juniper用户id为2000set system login user juniper class super-user -设置juniper用户为超级用户set system login user juniper authentication plain-text-password -设置juniper用户set system services telnetset vlans 10 vlan-id 10set vlans 20 vlan-id 20set vlans 1 lan-id 1set interfaces ge0/0/0 unit 0 family ethernet-switching port-mode trunkset interfaces ge0/0/0 unit 0 family ethernet-switching vlan members allset interface ge-0/0/0 unit 0 family Ethernet-switch native-vlan-id 1set int vlan unit 10 family inet add /24 配置vlan 10的3层地址set int vlan unit 20 family inet add 192.168.2.
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 交通事故现场处理流程培训
- 经济师考试重点难点真题解析
- 英语时态综合训练与应用技巧
- 施工现场安全培训计划与实施报告
- 农业科技创新推广合作契约
- 农民工薪资支付与权益保障措施
- 篮球抢篮板专项技能训练课方案
- 小学六年级语文单元练习题解析
- 书法经典集字及创作指南
- 公共服务行业员工职业道德行为规范
- 2025年专转本计算机真题答案
- 江西省赣州市赣县区实验学校2025-2026学年高一上学期9月月考物理试题(含解析)
- 凿岩台车安全培训内容课件
- 2025鄂尔多斯市国源矿业开发有限责任公司社会招聘75人笔试参考题库附带答案详解
- 动态血压监测结果解读
- 2025至2030银行贷款产业深度调研及前景趋势与投资报告
- 竞彩考试题目及答案
- 教科版(2024)科学二年级上册第一单元《造房子》测试卷(含答案)
- 中线导管学习汇报
- 中药制剂进修汇报
- 2025全国中学生天文知识竞赛决赛试题及答案
评论
0/150
提交评论