Juniper Ex系列交換機(jī)基本配置
Juniper Ex系列交換機(jī)啟動(dòng)時(shí)間比較長(zhǎng),大概需要2-3分鐘左右,啟動(dòng)時(shí),請(qǐng)耐心等待。Console口連接后,如果是我已經(jīng)配置的交換機(jī),已經(jīng)配置了用戶名和密碼,請(qǐng)輸入用戶名:root,密碼:xxxxxx,回車進(jìn)入系統(tǒng)。如果是未配置的交換機(jī),默認(rèn)用戶是root,且沒有密碼,直接可以進(jìn)入系統(tǒng)。
Juniper Ex系列交換機(jī)配置登錄系統(tǒng)
登錄系統(tǒng)后,進(jìn)入的應(yīng)該是xxxx%模式,此模式為shell模式,不用理會(huì),輸入cli回車,進(jìn)入普通模式,如:
- root@xxx-test% cli
- root@xxx-test>
如果要進(jìn)行配置,那要進(jìn)入配置模式,輸入:
- root@xxx-test> configure
- Entering configuration mode
- [edit]
- root@xxx-test#
進(jìn)入配置模式后(#),就可以進(jìn)行具體配置了。
Juniper Ex系列交換機(jī)配置用戶密碼
***次進(jìn)入交換機(jī)必須先配置密碼:
- 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#
恢復(fù)系統(tǒng)默認(rèn)配置
- 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]
重啟完成后,就成功恢復(fù)出廠設(shè)置。
Juniper Ex系列交換機(jī)配置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進(jìn)行關(guān)聯(lián)
- root# set vlans test vlan-id 10
- l3-interface vlan.10
提交生效
- root# commit
- commit complete
- [edit]
- root#
Juniper Ex系列交換機(jī)二層交換上定義VLAN
二層交換機(jī)上劃分VLAN的話,只需要執(zhí)行三層交換機(jī)上的***步和第四步即可。
Juniper Ex系列交換機(jī)設(shè)置靜態(tài)路由
- [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系列交換機(jī)的基本配置就是以上這些步驟,不要再為配置的事情發(fā)愁了,趕快來動(dòng)手操作一下吧!本文轉(zhuǎn)載至http://www.zhaofengcao.com