Juniper Ex系列交换机基本配置

本文主要为大家介绍了Juniper Ex系列交换机的基本配置,面对眼前你无从下手的交换机,还不会配置
首页 新闻资讯 行业资讯 Juniper Ex系列交换机基本配置

Juniper Ex系列交换机启动时间比较长,大概需要2-3分钟左右,启动时,请耐心等待。Console口连接后,如果是我已经配置的交换机,已经配置了用户名和密码,请输入用户名:root,密码:xxxxxx,回车进入系统。如果是未配置的交换机,默认用户是root,且没有密码,直接可以进入系统。

Juniper Ex系列交换机配置登录系统

登录系统后,进入的应该是xxxx%模式,此模式为shell模式,不用理会,输入cli回车,进入普通模式,如:

复制

root@xxx-test% cli   root@xxx-test>
  • 1.

  • 2.

  • 3.

如果要进行配置,那要进入配置模式,输入:

复制

root@xxx-test> configure   Entering configuration mode   [edit]   root@xxx-test#
  • 1.

  • 2.

  • 3.

  • 4.

  • 5.

  • 6.

  • 7.

进入配置模式后(#),就可以进行具体配置了。

Juniper Ex系列交换机配置用户密码

***次进入交换机必须先配置密码:

复制

root@xxx-test# set system   root-authentication plain-text-password   New password:   Retype new password:   [edit]   root@xxx-test#
  • 1.

  • 2.

  • 3.

  • 4.

  • 5.

  • 6.

  • 7.

  • 8.

  • 9.

  • 10.

  • 11.

提交配置后才能生效(记住,所做的所有配置,需要提交以后才可以生效),如下:

复制

root@xxx-test# commit   commit complete   [edit]   root@xxx-test#
  • 1.

  • 2.

  • 3.

  • 4.

  • 5.

  • 6.

  • 7.

恢复系统默认配置

复制

root@xxx-test# load factory-default   warning: activating factory configuration   [edit]   root@xxx-test# set system root-authentication plain-text-password   New password:   Retype new password:   [edit]   root@xxx-test# commit   commit complete   [edit]   root@xxx-test#
  • 1.

  • 2.

  • 3.

  • 4.

  • 5.

  • 6.

  • 7.

  • 8.

  • 9.

  • 10.

  • 11.

  • 12.

  • 13.

  • 14.

  • 15.

  • 16.

  • 17.

  • 18.

  • 19.

  • 20.

  • 21.

然后重启,需要出厂值:

复制

root@xxx-test# run request system reboot   Reboot the system ? [yes,no] (no) yes   Shutdown NOW!   [pid 1417]   [edit]
  • 1.

  • 2.

  • 3.

  • 4.

  • 5.

  • 6.

  • 7.

  • 8.

  • 9.

重启完成后,就成功恢复出厂设置。

Juniper Ex系列交换机配置vlan

三层交换上定义VLAN分为三步:

***步:定义vlan-id

复制

root# set vlans test description test-vlan   vlan-id 10
  • 1.

  • 2.

  • 3.

第二步:定义vlan-interface

复制

root# set interfaces vlan unit 10 family   inet address 192.168.0.1/24
  • 1.

  • 2.

  • 3.

第三步:将vlan-id与vlan-interface进行关联

复制

root# set vlans test vlan-id 10   l3-interface vlan.10
  • 1.

  • 2.

  • 3.

提交生效

复制

root# commit   commit complete   [edit]   root#
  • 1.

  • 2.

  • 3.

  • 4.

  • 5.

  • 6.

  • 7.

Juniper Ex系列交换机二层交换上定义VLAN

二层交换机上划分VLAN的话,只需要执行三层交换机上的***步和第四步即可。

Juniper Ex系列交换机设置静态路由

复制

[edit]   root# set routing-options static route   0.0.0.0/0 next-hop 192.168.0.2   [edit]   root# commit   commit complete   [edit]   root#
  • 1.

  • 2.

  • 3.

  • 4.

  • 5.

  • 6.

  • 7.

  • 8.

  • 9.

  • 10.

  • 11.

  • 12.

  • 13.

  • 14.

  • 15.

Juniper Ex系列交换机的基本配置就是以上这些步骤,不要再为配置的事情发愁了,赶快来动手操作一下吧!本文转载至http://www.zhaofengcao.com

14    2011-08-16 09:55:37    Juniper Ex系列交换机