欢迎来到天天文库
浏览记录
ID:7813172
大小:41.00 KB
页数:11页
时间:2018-02-26
《juniper交换机配置指南》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、juniper交换机配置指南开机后:login:rootLastlogin:FriJan1722:21:55onttyd0---JUNOS7.2R3.3built2002-03-2302:44:36UTCTerminaltype?[vt100]root@% 注意使用root用户登录的情况下,输入帐号/密码以后,默认是进入shell模式的(而只有root用户帐号有这个现象),要输入cli命令进入用户模式:root@% cliroot>配置模式用户模式下输入configure命令进入配置模式,配置模式下可以对设备进行各种参数的配置root>configure[edit]
2、root#设置root用户密码命令:setsystemroot-authenticationplain-text-password路由器初始化root用户是没有密码的,在第一次进行配置的时候必须要配置root密码才能commit成功。密码采用字母+数字方式。Example: lab@M7i_GZ#setsystemroot-authenticationplain-text-password Newpassword:Retypenewpassword:添加系统用户命令:setsystemloginuserjuniperuid2000 <-设置用户名为juniper用户id为
3、2000setsystemloginuserjuniperclasssuper-user <-设置juniper用户为超级用户setsystemloginuserjuniperauthenticationplain-text-password <-设置juniper用户的密码设置主机名命令:setsystemhost-nameM7i_GZ <-设置主机名为M7i_GZ开启系统telnet服务命令:setsystemservicestelnet说明:系统默认是没有打开telnet功能的,只有打开telnet服务之后才能从网络上登陆到路由器。开启系统ftp服务命令:setsyst
4、emservicesftp说明:系统默认是没有打开ftp功能的,只有打开ftp服务之后才能从网络上ftp到路由器。配置SNMPsetsnmpcommunity authorization clients #设置SNMP字符串setsnmptrap-optionssource-address192.168.1.1 #设置snmptrap的原地址为192.168.1.1setsnmpcontact #设置snmp的联系信息setsnmpeng
5、ine-idlocal #设置snmpv3engineID信息setsnmpdescription #设置snmp的系统描述配置物理端口参数user@host#set interfacege-slot/pic/portdescriptiondescription#配置端口描述user@host#set interfacege-slot/pic/portmtumtu-number#配置端口MTUuser@host#set interfacege-slot/pic/portether-optionsspeed(10m
6、100m
7、1g)#配置
8、端口速率user@host#set interfacege-slot/pic/portether-optionslink-mode(automatic
9、full-duplex
10、half-duplex)#配置端口双工user@host#set interfacege-slot/pic/portether-options(auto-negotiation
11、no-auto-negotiation)#配置端口自动协商Example:root@host>editEnteringconfigurationmode[edit]root@host#setinterfacesge-3/0/0des
12、cription“to_BJ-4200-1”[edit]root@host#setinterfacesge-3/0/0mtu9216[edit]root@host#setinterfacesge-3/0/0ether-optionsspeed1g[edit]root@host#setinterfacesge-3/0/0ether-optionslink-modefull-duplex[edit]root@host#setinterfacesge-3/0/0ether-option
此文档下载收益归作者所有