Network Enhancers - "Delivering Beyond Boundaries" Headline Animator

Wednesday, February 9, 2011

How to copy and paste a config from a text file on to a J-series router?


The command "load replace terminal" can be used to copy a configuration from a text file to the J-series router. After you execute this command the router will start accepting configuration data via the paste option. To exit this mode use the CTRL-D or ^D to exit the terminal mode and return back to the router prompt. 

A sample example is below

root@Router# load replace terminal   
[Type ^D at a new line to end input]
interfaces {
    ge-0/0/0 {
        unit 0 {
            family inet {
                address 192.168.100.1/24;
            }
        }
    }
    ge-0/0/3 {
        speed 100m;
        link-mode full-duplex;
        gigether-options {
            no-auto-negotiation;
        }
        unit 0 {
            family inet {
                    address 172.19.51.157/23;
            }
        }
    }
}
load complete
[edit]
root@Router# commit



No comments:

Post a Comment

My Blog List

Networking Domain Jobs