Techieindoor

vyatta – Ospf configuration on vyatta router

Here, We will look into how to do ospf configuration on vyatta router. You can follow given below steps to establish ospf session between vyatta router to other vendor routers.

Steps to configure ospf configuration on vyatta enabled router:

Configuration in config mode in vyatta router:

Configuration in interface mode in vyatta router:

Note: Do ospf configuration on peer router also.

Shell script to generate static routes for vyatta router:


for I in {1..200} ;

do 

echo "protocols {" >> /config/abc.boot; 

echo "static {" >> /config/abc.boot; 

echo "route 10.12.$I.0/24 {" >> /config/abc.boot; 

echo "next-hop 172.16.0.2 {" >> /config/abc.boot;
 
echo "}" >> /config/abc.boot;

echo "}" >> /config/abc.boot;  

echo "}" >> /config/abc.boot;

echo "}" >> /config/abc.boot;  

done

How to load abc.boot file to configure static routes in vyatta router:

Caveat:

First do static router configuration then do ospf configuration. If you do ospf configuration first then load the file abc.boot to configure static route. All the previous configuration will be removed.

To learn more about golang, Please refer given below link:

https://www.techieindoor.com/go-lang-tutorial/

References:

https://en.wikipedia.org/wiki/Vyatta

Exit mobile version