如何在 MX960 上新增一個連線單位的指令
連線單位資訊
1. 全名: NTRC School
2. 簡稱:NTRC_2
3. 連線速率:100m
區網資料
1.介接 Port:ge-0/0/0
IPv4
1. 區網 WAN IP Address:203.64.255.1/30
2. 連線單位 WAN IP Address:203.64.255.2/30
3. WAN網段:203.64.255.0/30
3. 連線單位所屬網段:163.22.1.0/24
IPv6
1. 區網 WLAN IP Address:2001:288:0:f:108::10/127
2. 連線單位 WLAN IP Address:2001:288:0:f:108::11
3. 連線單位網段:2001:288:c099::/48
指令如下:
set interfaces ge-0/0/0 description "NTRC School"
set interfaces ge-0/0/0 speed 100m
set interfaces ge-0/0/0 link-mode full-duplex
set interfaces ge-0/0/0 unit 0 family inet filter input NTRC_2
set interfaces ge-0/0/0 unit 0 family inet filter output netflow
set interfaces ge-0/0/0 unit 0 family inet address 203.64.255.1/30
set interfaces ge-0/0/0 unit 0 family inet6 address 2001:288:0:f:108::10/127
set routing-options static route 163.22.1.0/24 next-hop 203.64.255.2
set routing-options static route 163.22.1.0/24 tag 108
set routing-options rib inet6.0 static route 2001:288:c099::/48 next-hop 2001:288:0:f:108::11
set firewall family inet filter NTRC_2 term 1 from source-address 163.22.1.0/24
set firewall family inet filter NTRC_2 term 1 from source-address 203.64.255.0/30
set firewall family inet filter NTRC_2 term 1 then sample
set firewall family inet filter NTRC_2 term 1 then accept
set firewall family inet filter NTRC_2 term 2 then discard