[Originally posted Mar 13, 2012 4:38 AM by Antti Uitto]
That something you need to do is to write these commands in config files and save them.
In Linux there is, I guess always more than one way of doing any given thing.
Here are the programs I use and the config files where I write their settings.
What’s your setup like?/etc/network/interfaces
– Physical interfaces
– Logical Interfaces (Vlan and Bridge)
– IP addresses/etc/rc.local
– Invoke firewall ( iptables-restore < /path/to/firewall_rules )
– VPN (OpenVPN commands)
– Tunnel interfaces (ip tu add)
– Static routes (ip route add)
– Source routing commands (ip route add & ip rule add)
– Dynamic routing (RIP, OSPF, BGP)
– When you say “write”, Quagga will write it’s own config in appropriate place
– Iptables firewall rules for filtering and logging
– Network address translation (NAT)
– Connection attempts logged by iptables
So there is a file where the physical and logical interfaces are configured, including their IP’s. There is another place where I like to put my VPN’s, tunnels and all the static routes. If I was to use dynamic routing, I would move all my routes to Quagga and handle them from there. But If there is no need for dynamic routing, then all the statics go to a file mentioned in the list.
I do my best to write accurate and compact descriptions for things that are in these files. It nicer like that when you have to search for something or you want to take a quick look at what is here to be found.