Juniper GRE tunnel example

juniper@R1> show configuration interfaces
ge-0/0/0 {
unit 0 {
family inet {
address 1.1.1.1/24;
}
}
}
gre {
unit 0 {
tunnel {
source 1.1.1.1;
destination 1.1.1.2;
}
family inet {
address 12.12.12.1/24;
}
}
}

juniper@R2> show configuration interfaces | display set
set interfaces ge-0/0/0 unit 0 family inet address 1.1.1.2/24
set interfaces gre unit 0 tunnel source 1.1.1.2
set interfaces gre unit 0 tunnel destination 1.1.1.1
set interfaces gre unit 0 family inet address 12.12.12.2/24