Skip to content

Instantly share code, notes, and snippets.

@crazed
Created December 20, 2013 01:08
Show Gist options
  • Select an option

  • Save crazed/8048935 to your computer and use it in GitHub Desktop.

Select an option

Save crazed/8048935 to your computer and use it in GitHub Desktop.
fios gre bgp
# show interfaces gr-0/0/0
unit 0 {
tunnel {
source $FIOS_IP;
destination $DESTINATION;
routing-instance {
destination fios-2;
}
}
family inet {
mtu 1476;
address $GRE_IP;
}
}
# show routing-instances fios-2
instance-type virtual-router;
interface gr-0/0/0.0;
## ge-11/0/0 has the FIOS assigned static IP
interface ge-11/0/0.0;
routing-options {
static {
# this keeps the tunnel up when you get a 0/0 from BGP
route $TUNNEL_ENDPOINT/32 next-hop $FIOS_GATEWAY;
}
}
protocols {
bgp {
group atmetro {
type external;
family inet {
unicast {
rib-group master-rib;
}
}
peer-as $PEER_AS;
neighbor $NEIGHBOR_IP;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment