Operational Mode and Configuration Mode
(ref User Guide P.26)
Operational Mode
- To commit the configuration and exit:
[edit]user@host# commit and-quitcommit completeExiting configuration modeuser@host>
- To exit without committing
[edit]user@host# exitExiting configuration modeuser@host>
編輯某一區段
edit
移到上一層
up
移到最上層
top
刪除該區段的指令
delete
增加該段的設定
set
執行前check
commit check
執行所有設定
commit
How to reboot (restart), halt, or shut down the EX Series switch
Power off:關機同時關閉電源,會送一個ACPI訊號通知系統關機
halt:關機但不關閉電源,需手動關閉電池
To Power Off the switch from CLI:
user@switch>request system power-off
To halt the switch from CLI:
user@switch> request system halt
To restart the switch from the CLI:
user@switch> request system reboot
如何監看網路界面的的流量
user@switch> monitor interface traffic
設定switch ex的第1埠 mirror到第7埠
{master:0}
admin@CSES_EX3400> configure
Entering configuration mode
{master:0}[edit]
admin@CSES_EX3400# edit forwarding-options analyzer
{master:0}[edit forwarding-options analyzer]
admin@CSES_EX3400# edit tap-srx
tap-srx=>名稱自訂
admin@CSES_EX3400# set input ingress interface ge-0/0/1
{master:0}[edit forwarding-options analyzer tap-srx]
admin@CSES_EX3400# set input egress interface ge-0/0/1
{master:0}[edit forwarding-options analyzer tap-srx]
admin@CSES_EX3400# show
input {
ingress {
interface ge-0/0/1.0;
}
egress {
interface ge-0/0/1.0;
}
}
{master:0}[edit forwarding-options analyzer tap-srx]
{master:0}[edit forwarding-options analyzer tap-srx]
admin@CSES_EX3400# set output interface ge-0/0/7
{master:0}[edit forwarding-options analyzer tap-srx]
admin@CSES_EX3400# show
input {
ingress {
interface ge-0/0/1.0;
}
egress {
interface ge-0/0/1.0;
}
}
output {
interface ge-0/0/7.0;
}
{master:0}[edit forwarding-options analyzer tap-srx]
admin@CSES_EX3400# commit and-quit
configuration check succeeds
commit complete
Exiting configuration mode
{master:0}
admin@CSES_EX3400>
user@switch> monitor interface traffic
看ge/0/0/1及ge/0/0/7的流量是否一致
沒有留言:
張貼留言