- 1、本文档共6页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Juniper交换机配置手册
Juniper 交换机配置手册
一、交换机配置部分
1. 使用console 线连接至交换机
COM 参数:
2 .使用root 账号登陆,默认为空密码
login: root
JUNOS 9.1R2.10 built 2008-07-01 04:34:43 UTC
root@%
开启交换机命令行:
root@% cli //%为unix shell 提示符
root //为cli 提示符
3 . 进入configuration 模式
root configure
[edit]
root#
juniper 交换机有3 种命令行模式
Root 模式:当以root 密码登陆console 时默认进入该模式
用户模式:在 root 模式中输入 cli 命令进入该模式,该模式主要用于检查交换机配置、
状态使用。
配置模式:在用户模式中输入configure 进入。该模式下主要用于更改交换机配置。
4 . 设置交换机root 账号密码
[edit]
root# set system root-authentication plain-text-password
New password:
Retype new password:
5 . 配置网络管理参数
[edit]
root# edit system
[edit system]
root# set services telnet //配置使用telnet 服务登陆交换机
[edit system]
root# set services ssh
[edit system]
root# set services web-management http
[edit system]
root# commit and-quit
commit complete
Exiting configuration mode
root@switch
6 . 配置其他管理员账号密码, 以添加一个admin 账号为例
[edit]
Set system login user admin class super-user authentication plain-text-password
New password:
Retype new password:
7 . 提交配置文件使配置生效
[edit]
commit
8. 配置VLAN ,三层VLAN 虚拟地址及VLAN 接口
以配置valn10 为例,下面为配置命令:
[edit]
set vlans vlan_10 vlan-id 10
set vlans vlan_10 l3-interface vlan.10
set interface vlan unit 10 family inet address 67/24
将接口划入到VLAN 中
set interface ge-0/0/10 unit 0 family ethernet-switching vlan members vlan_10
将接口配置成trunk 方法
Set interface ge-0/0/23 unit 0 family ethernet-switching port-mode trunk vlan
members all //将ge-0/0/23 接口配置成为VLAN,并允许所有VLAN 数据通过
9. 配置链路捆绑
具体命令如下:
set chassis aggregated-devices ethernet device-count 5 //配置链路聚合端口
数目为5 个(ae0-ae4)
set interface ae0 aggregated-ether-options lacp active //配置ae0 接口链路聚合的
模式
set interface ae0 unit 0 family ethernet-switching port mode trunk vlan members all
//配置ae0 为trunk 并允许所有VLAN 通过
delete interface ge-0/0/4 //删除ge-0/0/4 的默认配置
delete interface ge-1/0/4
set interface ge-0/0/4 ether-op
文档评论(0)