i need to setup bgp with as-path prepend on vyos router can any one help me on this its really urgent
can you please tell me full command i am using two vyos router with bgp 65505(neighbor 10.0.0.9) and 65500(neighbor 10.0.0.10) please help me on this
Anton
2
This is the command you are looking for:
set policy route-map abc rule 1 set as-path-prepend
Possible completions:
BGP AS path prepend string (ex: “456 64500 45001”)
Your BGP export route-map would then look like this:
show policy route-map abc
rule 1 {
action permit
match {
ip {
address {
prefix-list my-prefix-list
}
}
}
set {
as-path-prepend 65505
}
}
rule 2 {
action permit
match {
ip {
address {
prefix-list my-prefist-list2
}
}
}
set {
as-path-prepend “65505 65505”
}
}
rule 10 {
action deny
}
For your BGP session:
#show protocols bgp 65505
neighbor 10.0.0.10
description to-AS-65500
remote-as 65500
route-map {
export abc
}
update-source 10.0.0.9
}