■Mode flow based → packet based
★packet basedで動作確認できていない
スタティックルート入れてもルーティングテーブルへ反映されない
root> show security flow status
Flow forwarding mode:
Inet forwarding mode: flow based
Inet6 forwarding mode: drop
MPLS forwarding mode: drop
ISO forwarding mode: drop
Flow trace status
Flow tracing status: off
Flow session distribution
Distribution mode: RR-based
Flow ipsec performance acceleration: off
Flow packet ordering
Ordering mode: Hardware
delete security
set security forwarding-options family mpls mode packet-based
set security forwarding-options family iso mode packet-based
set security forwarding-options family inet6 mode packet-based
root> show security flow status
Flow forwarding mode:
Inet forwarding mode: packet based
Inet6 forwarding mode: packet based
MPLS forwarding mode: packet based
ISO forwarding mode: packet based
Flow trace status
Flow tracing status: off
Flow session distribution
Distribution mode: RR-based
Flow ipsec performance acceleration: off
Flow packet ordering
Ordering mode: Hardware
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
■Interface
ge-0/0/1
ge-0/0/2
ge-0/0/3
ge-0/0/4
ge-0/0/5
◆routed
set interfaces lo0 unit 0 family inet address 192.168.5.5/32
set interfaces fe-0/0/0 unit 0 family inet address 192.168.0.254/24
*seconday上書きされない
set interfaces fe-0/0/0 unit 0 family inet address 172.16.0.254/24
◆Acccess
set interfaces ge-0/0/3 unit 0 family ethernet-switching port-mode access
set interfaces ge-0/0/3 unit 0 family ethernet-switching vlan members vlan100
set interfaces ge-0/0/2 unit 0 family ethernet-switching port-mode access
set interfaces ge-0/0/2 unit 0 family ethernet-switching vlan members vlan110
◆Trunk
方法1
set interfaces ge-0/0/5 unit 0 family ethernet-switching port-mode trunk
set interfaces ge-0/0/5 unit 0 family ethernet-switching vlan members vlan100
set interfaces ge-0/0/5 unit 0 family ethernet-switching vlan members vlan110
set interfaces ge-0/0/5 unit 0 family ethernet-switching native-vlan-id vlan120
sh vlan detail
方法2
set interfaces ge-0/0/0 vlan-tagging
set interfaces ge-0/0/0 unit 0 vlan-id 10
set interfaces ge-0/0/0 unit 0 family inet address 192.168.10.254/24
set interfaces ge-0/0/0 unit 1 vlan-id 20
set interfaces ge-0/0/0 unit 1 family inet address 192.168.20.254/24
◆その他設定
Sppped duplex filter
set interfaces fe-0/0/0 speed 100m
set interfaces fe-0/0/0 link-mode full-duplex
set interfaces fe-0/0/0 fastether-options source-filtering
set interfaces fe-0/0/0 fastether-options source-address-filter 00:00:00:11:22:33
set interfaces ge-0/0/1 ether-options auto-negotiation
※上書き削除
rename interfaces fe-0/0/0 unit 0 family inet address 10.1.1.1/24 to address 10.2.2.2/24
delete interfaces fe-0/0/0 unit 0 family inet address 192.168.0.254/24
★CiscoCatalystと接続時
対向機器がCatalystスイッチで「PVST+」または「rapid-PVST+」が動作している場合、802.1d BPDUは
VLAN1宛てに送信されるため、Juniper EX側のTrunkポートのNative VLANを1に設定する必要があります。
set interfaces ge-0/0/1 unit 0 family ethernet-switching native-vlan-id 1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
◆VLAN
set vlans vlan110 vlan-id 110
set vlans vlan100 filter input TEST
set interfaces irb unit 100 family inet filter output f1
set interface ge-0/0/1 unit 0 family inet filter input from_CENTSV02
set firewall filter TEST ※ SRX設定不可
set firewall family inet filter TEST term Allow-PC from source-address 10.1.1.1/32
set firewall family inet filter TEST term Allow-PC then accept
set firewall family inet filter TEST term Allow-PING from protocol icmp
set firewall family inet filter TEST term Allow-PING then accept
set firewall family ethernet-switching filter ingress-port-filter term TEST2 from source-address 192.0.2.14
set firewall family ethernet-switching filter ingress-port-filter interface-specific
◆SVI
IRB 可能な時ブリッジ、必要な時ルーティング 拡張L2SoftWareサポート時の名称 ないときはRVI
set interfaces irb unit 110 family inet address 192.0.2.1/25
set vlans vlan110 vlan-id 110
set vlans vlan110 l3-interface irb.110
RVI(Routed VLAN Interface)は、特定のVLANにルーティング機能を提供する論理L3インターフェース
set interfaces vlan unit 100 family inet address 11.1.1.1/24
set vlans vlan100 vlan-id 100
set vlans vlan100 l3-interface vlan.100
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
■LinkAggregation
●static
スイッチに設定するLAGの数を定義( 設定例:1つ )
set chassis aggregated-devices ethernet device-count 1
LAGの作成( 設定例:L2アクセスポートとして ae0 の作成 )
set interfaces ae0 unit 0 family ethernet-switching
LAGに参加させる既存のインターフェースの設定の削除( 設定例:ge-0/0/1とge-0/0/2 )
delete interfaces ge-0/0/1 unit 0
delete interfaces ge-0/0/2 unit 0
LAGに参加させるインターフェースの設定( 設定例:ge-0/0/1とge-0/0/2 )
set interfaces ge-0/0/2 ether-options 802.3ad ae0
set interfaces ge-0/0/4 gigether-options 802.3ad ae0
set interfaces ge-0/0/5 gigether-options 802.3ad ae0
LAGポートの設定( 設定例:ae0のLAGをアクセスポートとしてVLAN10を割り当て )
set interfaces ae0 unit 0 family ethernet-switching port-mode access
set interfaces ae0 unit 0 family ethernet-switching vlan members vlan100
LAGインターフェースを、全てのVLANトラフィックを転送するL2トランクポートする場合の設定は以下のように設定
set interfaces ae0 unit 0 family ethernet-switching port-mode trunk vlan members all
●LACP
LACPとして設定する場合、上記のStatic Link Aggregationの設定に加えて次の設定を追加するだけです。
LACPの有効化
set interfaces ae0 aggregated-ether-options lacp active
set interfaces ae0 aggregated-ether-options lacp periodic fast
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
■ACL
●適用
set vlans vlan100 filter input TEST
set interfaces irb unit 110 family inet filter output TEST
set interface ge-0/0/1 unit 0 family inet filter input TEST
vSRX設定不可‘packet`base
set firewall family ethernet-switching filter ingress-port-filter interface-specific
●フィルタ作成
set firewall filter TEST ※ SRX設定不可
set firewall family inet filter TEST term Allow-PC from source-address 10.1.1.1/32
set firewall family inet filter TEST term Allow-PC then accept
set firewall family inet filter TEST term Allow-PING from protocol icmp
set firewall family inet filter TEST term Allow-PING then accept
set firewall family ethernet-switching filter ingress-port-filter term TEST from source-address 192.0.2.14
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
■Routing static
set routing-options static route 10.1.1.0/24 next-hop 172.16.0.254
set routing-options static route 10.1.1.0/24 next-hop 172.16.0.254
set routing-options static route 0.0.0.0/0 next-hop 172.16.1.254
■Routing OSPF
set protocols ospf area 0.0.0.0 interface ge-0/0/0
set protocols ospf area 0.0.0.0 interface ge-0/0/1
set protocols ospf area 0.0.0.0 interface ge-0/0/0.0
set protocols ospf area 0.0.0.0 interface ge-0/0/1.0
set protocols ospf area 0.0.0.0 interface all
set protocols ospf area 0.0.0.0 interface ge-0/0/2 disable
passive
set protocols ospf area 0.0.0.0 interface lo0 passive
set protocols ospf area 0.0.0.0 interface ge-0/0/1 passive
show route
show ospf database
show ospf neighbor
●ルータID
set routing-options router-id 1.1.1.1
●コスト変更
① インターフェースのコスト変更 コスト値は 10 加算
set protocols ospf area 0.0.0.0 interface fe-0/0/1 metric 10
② インターフェースの帯域の変更(メトリック上の帯域の変更)
set interface fe-0/0/1 unit 0 bandwidth 10m
③ Reference Bandwidthコマンドによる計算式の変更
set protocols ospf reference-bandwidth 1G
●priority 変更
set protocols ospf area 0.0.0.0 interface ge-0/0/0 priority 255
●HelloInterval
set protocols ospf area 0.0.0.5 interface ge-0/0/0 hello-interval 5
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
■VR
set routing-instances VR1 instance-type virtual-router
set routing-instances VR2 instance-type virtual-router
set routing-instances VR1 interface ge-0/0/1.0
set routing-instances VR1 interface irb.110
set routing-instances VR1 routing-options instance-import import-from-VR2
set routing-instances VR2 routing-options instance-import import-from-VR1
set policy-options policy-statement import-from-VR1 term 1 from instance VR1
set policy-options policy-statement import-from-VR1 term 1 then accept
set policy-options policy-statement import-from-VR2 term 1 from instance VR2
set policy-options policy-statement import-from-VR2 term 1 then accept
from route-filter from prefix-list from interface
show route instance VR1