Juniper Ex系列交換機基本配置
Juniper Ex系列交換機啟動時間比較長,大概需要2-3分鐘左右,啟動時,請耐心等待。Console口連接后,如果是我已經配置的交換機,已經配置了用戶名和密碼,請輸入用戶名:root,密碼:xxxxxx,回車進入系統。如果是未配置的交換機,默認用戶是root,且沒有密碼,直接可以進入系統。
Juniper Ex系列交換機配置登錄系統
登錄系統后,進入的應該是xxxx%模式,此模式為shell模式,不用理會,輸入cli回車,進入普通模式,如:
- root@xxx-test% cli
- root@xxx-test>
如果要進行配置,那要進入配置模式,輸入:
- root@xxx-test> configure
- Entering configuration mode
- [edit]
- root@xxx-test#
進入配置模式后(#),就可以進行具體配置了。
Juniper Ex系列交換機配置用戶密碼
***次進入交換機必須先配置密碼:
- root@xxx-test# set system
- root-authentication plain-text-password
- New password:
- Retype new password:
- [edit]
- root@xxx-test#
提交配置后才能生效(記住,所做的所有配置,需要提交以后才可以生效),如下:
- root@xxx-test# commit
- commit complete
- [edit]
- root@xxx-test#
恢復系統默認配置
- 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#
然后重啟,需要出廠值:
- root@xxx-test# run request system reboot
- Reboot the system ? [yes,no] (no) yes
- Shutdown NOW!
- [pid 1417]
- [edit]
重啟完成后,就成功恢復出廠設置。
Juniper Ex系列交換機配置vlan
三層交換上定義VLAN分為三步:
***步:定義vlan-id
- root# set vlans test description test-vlan
- vlan-id 10
第二步:定義vlan-interface
- root# set interfaces vlan unit 10 family
- inet address 192.168.0.1/24
第三步:將vlan-id與vlan-interface進行關聯
- root# set vlans test vlan-id 10
- l3-interface vlan.10
提交生效
- root# commit
- commit complete
- [edit]
- root#
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#
Juniper Ex系列交換機的基本配置就是以上這些步驟,不要再為配置的事情發愁了,趕快來動手操作一下吧!本文轉載至http://www.zhaofengcao.com