2012年11月20日 星期二

20121120 Juniper EX-2200

將工作上設定的一些指令貼上,設定一台 L3 switch

set system root-authentication encrypted-password "~!@#"          --設定 root 密碼(自動加密)

set interfaces interface-range lan member-range ge-0/0/1 to ge-0/0/23       --將port1~23加入lan群組

set interfaces interface-range lan unit 0 family ethernet-switching vlan members lan      --將 lan 群組加入名為 lan 的 VLAN 中

set interfaces ge-0/0/0 unit 0 family inet address X.X.X.165/30     --設定 port 0 的 IP

set interfaces vlan unit 16 family inet address Y.Y.Y.190/26       --設定 VLAN 16 的 IP

set routing-options static route 0.0.0.0/0 next-hop X.X.X.166        --預設的靜態路由

set routing-options static route Y.Y.Y.128/26 next-hop Y.Y.Y.190       --返回的路由設定

set vlans default l3-interface vlan.0             --開啟 VLAN 1 的 L3 繞送

set vlans lan vlan-id 16             --建立 VLAN 16

set vlans lan l3-interface vlan.16             --開啟 VLAN 16 的 L3 繞送

沒有留言:

張貼留言