JUNIPER-EX3200交換機配置_第1頁
JUNIPER-EX3200交換機配置_第2頁
JUNIPER-EX3200交換機配置_第3頁
JUNIPER-EX3200交換機配置_第4頁
JUNIPER-EX3200交換機配置_第5頁
已閱讀5頁,還剩5頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、JUNIPER EX3200交換機配置1 Ex3200開機指導開機后:login: rootLast login: Fri Jan 17 22:21:55 on ttyd0- JUNOS 7.2R3.3 built 2002-03-23 02:44:36 UTCTerminal type? vt100 root% 注意使用root用戶登錄的情況下,輸入帳號/密碼以后,默認是進入shell模式的(而只有root用戶帳號有這個現(xiàn)象),要輸入cli命令進入用戶模式:root% cliroot2 配置模式用戶模式下輸入configure命令進入配置模式,配置模式下可以對設備進行各種參數(shù)的配置root

2、configureeditroot#2.1 設置root用戶密碼命令:set system root-authentication plain-text-password路由器初始化root用戶是沒有密碼的,在第一次進行配置的時候必須要配置root密碼才能commit成功。密碼采用字母+數(shù)字方式。Example: labM7i_GZ# set system root-authentication plain-text-password New password:Retype new password:2.2 添加系統(tǒng)用戶命令:set system login user juniper uid

3、2000 -設置用戶名為juniper用戶id為2000set system login user juniper class super-user -設置juniper用戶為超級用戶set system login user juniper authentication plain-text-password -設置juniper用戶的密碼2.3 設置主機名命令:set system host-name M7i_GZ -設置主機名為M7i_GZ2.4 開啟系統(tǒng)telnet服務命令:set system services telnet說明:系統(tǒng)默認是沒有打開telnet功能的,只有打開teln

4、et服務之后才能從網(wǎng)絡上登陸到路由器。2.5 設置交換機地址命令:Edit systemSet name-server 25Commit刪除:Edit systemDelete name-server 252.6 開啟系統(tǒng)ftp服務命令:set system services ftp說明:系統(tǒng)默認是沒有打開ftp功能的,只有打開ftp服務之后才能從網(wǎng)絡上ftp到路由器。2.7 配置SNMPset snmp community authorization clients # 設置SNMP字符串set snmp trap-options source

5、-address #設置snmp trap的原地址為set snmp contact #設置snmp的聯(lián)系信息set snmp engine-id local #設置snmp v3 engine ID信息set snmp description #設置snmp的系統(tǒng)描述2.8 配置物理端口參數(shù)userhost#set interface ge-slot/pic/port description description#配置端口描述userhost#set interface ge-slot/pic/port mtu mtu-number#配置端口M

6、TUuserhost#set interface ge-slot/pic/port ether-options speed (10m | 100m | 1g)#配置端口速率userhost#set interface ge-slot/pic/port ether-options link-mode (automatic | full-duplex |half-duplex )#配置端口雙工userhost#set interface ge-slot/pic/port ether-options (auto-negotiation |no-auto-negotiation )#配置端口自動協(xié)商E

7、xample(例如):roothost editEntering configuration modeeditroothost# set interfaces ge-3/0/0 description “to_BJ-4200-1”editroothost# set interfaces ge-3/0/0 mtu 9216editroothost# set interfaces ge-3/0/0 ether-options speed 1geditroothost# set interfaces ge-3/0/0 ether-options link-modefull-duplexeditroo

8、thost# set interfaces ge-3/0/0 ether-options auto-negotiation2.9 配置物理端口二層接口editroothost# set interfaces ge-0/0/16 unit 0 family ethernet-switchingport-mode access配置物理端口作為二層access模式的接口,端口默認情況下就是二層access端口。edituserhost # show interfacesge-0/0/16 unit 0 family ethernet-switching;2.10 配置物理端口三層接口EX交換機物理接

9、口可以支持三層路由接口功能,直接可以在接口上配置三層地址editroothost# set interfaces ge-0/0/17 unit 0 family inet address/242.11配置VLAN初始化配置時候,所有端口屬于default VLAN,default vlan 的默認ID是0userhost# set interfaces name unit 0 family ethernet-switching port-mode access#配置端口的access模式,默認端口就是access模式。userhost#set vlans vlan-na

10、me vlan-id number#配置VLAN分配vlan IDEX支持2種方式來配置access接口分配到VLAN,采用其中一種就可以實現(xiàn)端口VLAN的劃分。方式一:userhost#set vlans vlan-name interface interface_name直接在VLAN中添加多個物理端口方式二:或是在物理接口下:userhost#set interfaces interface-name unit 0 family ethernet-switching vlan membersvlan-name or vlan-id#添加端口到特定VLANuserhost# show vl

11、ans vlan-name detail#查看VLAN信息Example(例如):roothost editEntering configuration modeeditroothost# set vlans sales vlan-id 100editroothost# set vlans sales interface ge-0/0/1#或者可以如下配置,實現(xiàn)相同的配置效果editroothost# set interfaces ge-0/0/1 unit 0 family ethernet-switchingvlan members sales2.12配置Vlan trunk配置端口作tr

12、unk端口,支持802.1Q的標準封裝。userhost# set interfaces name unit 0 family ethernet-switching port-mode trunk#配置端口的VLAN模式為trunk模式userhost# set interfaces name unit 0 family ethernet-switching vlan membersall|number#配置trunk端口的允許通過的VLAN,9.1版本目前不支持vlan-range,預期在9.2版本支持。Example:roothost editEntering configuration

13、modeeditroothost#showinterfaces ge-0/0/3 unit 0 family ethernet-switching port-mode trunk;vlan members orange blue ;ge-0/0/4 unit 0 family ethernet-switching port-mode trunk;vlan members 100 200 ;2.13配置 native-vlan-idEX在trunk端口下支持native-vlan 的配置:roothost editEntering configuration modeeditroothost#

14、set interface ge-0/0/8 unit 0 family Ethernet-switchnative-vlan-id purpleeditroothost#show interfacege-0/0/8 unit 0 family ethernet-switching port-mode trunk;vlan members orange blue purple ;native-vlan-id purple;2.14 靜態(tài)路由協(xié)議手工添加到路由表下一跳必須有效所以的配置在routing-options 級別Syntax(語法):editrouting-options static

15、 defaults static-options;route destination-prefix next-hop next-hop;qualified-next-hop address metric metric;preference preference;static-options;Example(例如):edituserhost# showrouting-options static route /0 next-hop ;2.15 OSPF單區(qū)域edituserhost# set protocols ospf area 0 interface ge

16、-0/0/0edituserhost# show protocols ospfospf area interface ge-0/0/0.0;配置OSPF 多區(qū)域edituserhost# show protocols ospfospf area interface ge-0/0/0.0;edituserhost# set protocols ospf area 1 interface at-0/1/1.100edituserhost# show protocols ospfospf area interface ge-0/0/0.0;area 0

17、.0.0.1 interface at-0/1/1.100;綜合實例:set system root-authentication plain-text-passwordset system login user juniper uid 2000 -設置用戶名為juniper用戶id為2000set system login user juniper class super-user -設置juniper用戶為超級用戶set system login user juniper authentication plain-text-password -設置juniper用戶set system s

18、ervices telnetset vlans 10 vlan-id 10 set vlans 20 vlan-id 20set vlans 1 lan-id 1set interfaces ge0/0/0 unit 0 family ethernet-switching port-mode trunkset interfaces ge0/0/0 unit 0 family ethernet-switching vlan members allset interface ge-0/0/0 unit 0 family Ethernet-switch native-vlan-id 1set int vlan unit 10 family inet add /24 配置vlan 10的3層地址set int vlan unit 20 family inet add /2

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經(jīng)權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論