2. copy
● 設定のコピー
● 設定例
○ copy interfaces ge-0/0/0 to ge-0/0/1
ge-0/0/0 {
unit 0 {
family inet {
address 192.168.0.1/24;
}
}
}
ge-0/0/1 {
unit 0 {
family inet {
address 192.168.0.1/24;
}
}
}
ge-0/0/0 {
unit 0 {
family inet {
address 192.168.0.1/24;
}
}
}
3. rename
● 設定の名称の変更
● 設定例
○ rename interfaces ge-0/0/0 to ge-1/0/0
ge-1/0/0 {
unit 0 {
family inet {
address 192.168.0.1/24;
}
}
}
ge-0/0/0 {
unit 0 {
family inet {
address 192.168.0.1/24;
}
}
}
4. replace
● 設定内容のパターンマッチング変更
● 設定例
○ replace pattern 192.168 with 172.16
ge-0/0/0 {
unit 0 {
family inet {
address 172.16.0.1/24;
}
}
}
ge-1/0/0 {
unit 0 {
family inet {
address 172.16.0.1/24;
}
}
}
ge-0/0/0 {
unit 0 {
family inet {
address 192.168.0.1/24;
}
}
}
ge-1/0/0 {
unit 0 {
family inet {
address 192.168.0.1/24;
}
}
}
5. insert
● 設定の位置替え
● 設定例
○ insert firewall filter ff term 2 before term 1
○ insert firewall filter ff term 1 after term 2
filter ff {
term 2 {
from {
protocol pim;
}
}
term 1 {
from {
protocol ospf;
}
}
}
filter ff {
term 1 {
from {
protocol ospf;
}
}
term 2 {
from {
protocol pim;
}
}
}
6. deactivate/activate
● 設定の無効化と有効化
● 設定例
○ deactivate interfaces ge-1/0/0
inactive: ge-1/0/0 {
unit 0 {
family inet {
address 2.2.2.2/24;
}
}
}
ge-1/0/0 {
unit 0 {
family inet {
address 192.168.0.1/24;
}
}
}