Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
990 B
5
Indexable
Never
#
interface <LAN_INT>
 ip address <LAN_IP> 255.255.255.0
#
interface <WAN_INT>
 ip address <WAN_IP> <WAN_SUBNET>
#
bgp <SELF_AS>
 router-id <SELF_ROUTER_ID>
#
ipv4-family unicast
 undo synchronization
 network <LAN_SUBNET> <LAN MASK>
 network <WAN_SUBNET> <WAN MASK>
#
peer <LAN_eBGP_NGHBR> as-number <LAN_AS>
 peer <LAN_eBGP_NGHBR> connect-interface <LAN_INT>
 peer <LAN_eBGP_NGHBR> advertise-community
#
peer <WAN_eBGP_NGHBR> as-number <WAN_AS>
 peer <WAN_eBGP_NGHBR> connect-interface <WAN_INT>
 peer <WAN_eBGP_NGHBR> advertise-community
 peer <WAN_eBGP_NGHBR> outbound-route-policy add-as-path-out
 peer <WAN_eBGP_NGHBR> inbound-route-policy add-as-path-in
#
route-policy add-as-path-out permit node 10
 if-match as-path .*
 apply as-path-prepend <SELF_AS> <SELF_AS> <SELF_AS>
#
route-policy add-as-path-in permit node 10
 if-match as-path .*
 apply as-path-prepend <WAN_AS> <WAN_AS> <WAN_AS>
#
ip route-static 0.0.0.0 0.0.0.0 <WAN_INT> <WAN_eBGP_NGHBR>