JUNOS 配置的复制粘贴

r1的配置

[edit logical-routers]
posong@Hongkong# show
r1 {
    policy-options {
        policy-statement ospf {
            from tag 100;
            then {
                external {
                    type 1;
                }
            }
        }
    }
}
r2;

[edit logical-routers]
posong@Hongkong#

r1的配置复制到r2

[edit logical-routers r2]
posong@Hongkong# load merge terminal relative
[Type ^D at a new line to end input]
policy-options {
        policy-statement ospf {
            from tag 100;
            then {
                external {
                    type 1;
                }
            }
        }
    }^C[abort]

[edit logical-routers r2]
posong@Hongkong# show
policy-options {
    policy-statement ospf {
        from tag 100;
        then {
            external {
                type 1;
            }
        }
    }
}

[edit logical-routers r2]
posong@Hongkong# commit check
configuration check succeeds

[edit logical-routers r2]
posong@Hongkong#

直接粘贴配置后用 ctrl+c 告诉JUNOS 结束粘贴配置 呵呵

你可能感兴趣的:(职场,休闲,JUNOS)