才子佳人博客

我的故事我讲述

Juniper EX交换机常用命令
 
来源:xjh  编辑:xjh  2016-03-29

文章给出Juniper EX交换机常用命令:

Juniper EX交换机常用命令

#set system host-name HuanGong3cengHuiJu       /#设置主机名#/

#set chassis alarm management-ethernet link-down ignore  /#设置MTG端口产生告警忽略#/

#set system time-zone Asia/Shanghai   /#设置所在时区#/

# set system root-authentication plain-text-password      /#设置root密码#/
New password:
Retype new password:
# set system login user admin class super-user authentication plain-text-password               /#设置用户名admin,权限为超级用户,并设置密码#/
New password:
Retype new password:

#set system services ssh protocol-version v2   /#开启远程 ssh登陆,并指定版本为v2版本#/

#set system services telnet      /#开启远程 telnet登陆#/

#set interfaces ge-0/0/0 unit 0 family ethernet-switching port-mode access      /#设置端口模式为access#/

#set interfaces ge-0/0/0 unit 0 family ethernet-switching vlan members vlan5    /#设置端口所属VLAN 为vlan5 #/

#set interfaces ge-0/1/3 unit 0 family ethernet-switching port-mode trunk   /#设置端口模式为trunk#/

#set interfaces ge-0/1/3 unit 0 family ethernet-switching vlan members all     /#设置此端口允许通过的VLAN是所有VLAN#/

#set vlans vlan2 vlan-id 2 description manage_vlan       /#设置VLAN 名字为 "vlan2" vlan-id 为 2 并加vlan描述为"manage_vlan"#/

#set vlans vlan2 l3-interface vlan.2       /#将vlan2 绑定三层接口vlan.2#/

#set interfaces vlan unit 2 family inet address 219.226.127.33/25    /#设置vlan2 的三层接口地址#/

#set routing-options static route 0.0.0.0/0 next-hop 219.226.127.1     /#设置默认路由#/

#set snmp community ex-public authorization read-only     /#"设置只读 community串为 ex-public" /

#set poe interface all disable       /#关掉所有poe接口供电#/




分类:网络日志| 查看评论
相关文章
文章点击排行
本年度文章点击排行
发表评论:
  • 昵称: *
  • 邮箱: *
  • 网址:
  • 评论:(最多100字)
  • 验证码: