107 lines
2.2 KiB
Django/Jinja
107 lines
2.2 KiB
Django/Jinja
system {
|
|
host-name {{ hostname }};
|
|
root-authentication {
|
|
plain-text-password-value "Juniper1";
|
|
}
|
|
login {
|
|
user neteng {
|
|
uid 2000;
|
|
class super-user;
|
|
authentication {
|
|
plain-text-password-value "Juniper1";
|
|
}
|
|
}
|
|
}
|
|
services {
|
|
ssh {
|
|
root-login allow;
|
|
}
|
|
netconf {
|
|
ssh;
|
|
}
|
|
}
|
|
syslog {
|
|
archive size 100k files 3;
|
|
user * {
|
|
any emergency;
|
|
}
|
|
file messages {
|
|
any notice;
|
|
authorization info;
|
|
}
|
|
file interactive-commands {
|
|
interactive-commands any;
|
|
}
|
|
}
|
|
}
|
|
security {
|
|
forwarding-options {
|
|
family {
|
|
mpls {
|
|
mode packet-based;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
interfaces {
|
|
ge-0/0/0 {
|
|
description "{{ hostname }} ge-0/0/0 <--> gigabitEthernet0 LAB-RELAY";
|
|
unit 0 {
|
|
family inet {
|
|
address 10.0.0.1/31;
|
|
}
|
|
}
|
|
}
|
|
ge-0/0/1 {
|
|
description "{{ hostname }} ge-0/0/1 <--> gigabitEthernet1 LAB-897VA";
|
|
unit 0 {
|
|
family inet {
|
|
address 10.0.0.4/31;
|
|
}
|
|
}
|
|
}
|
|
ge-0/0/2 {
|
|
description "{{ hostname }} ge-0/0/2 <--> gigabitEthernet2 LAB-897VA";
|
|
unit 0 {
|
|
family inet {
|
|
address 10.0.0.6/31;
|
|
}
|
|
}
|
|
}
|
|
lo0 {
|
|
unit 0 {
|
|
family inet {
|
|
address {{ loopback_ip }}/32;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
protocols {
|
|
ospf {
|
|
area 0.0.0.0 {
|
|
interface ge-0/0/1.0 {
|
|
interface-type p2p;
|
|
authentication {
|
|
md5 1 key "Juniper1"; ## SECRET-DATA
|
|
}
|
|
}
|
|
interface ge-0/0/2.0 {
|
|
interface-type p2p;
|
|
authentication {
|
|
md5 1 key "Juniper1"; ## SECRET-DATA
|
|
}
|
|
}
|
|
interface lo0.0 {
|
|
passive;
|
|
}
|
|
}
|
|
}
|
|
lldp {
|
|
interface all;
|
|
}
|
|
}
|
|
routing-options {
|
|
static {
|
|
route 192.168.1.0/24 next-hop 10.0.0.0;
|
|
}
|
|
} |