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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s