pmlag

Poor man's link aggregation
git clone git://git.finwo.net/app/pmlag
Log | Files | Refs | LICENSE

example.conf (939B)


      1 include config/*.cnf
      2 
      3 # Basic bond
      4 bond bon0
      5   interface eth1
      6   interface eth2
      7 
      8 # Set specific mac & ip
      9 bond bon1
     10   interface eth1 eth2
     11   address 192.0.0.1/32
     12   address fe80::1/128
     13   mac 9c:6b:00:60:05:98
     14 
     15 # Routed interface, L3 only
     16 # Auto-announce routes
     17 router rnic0
     18   interface eth1
     19   interface eth2
     20   address 192.0.0.1/32
     21   redistribute kernel
     22 
     23 # Routed interface, L3 only
     24 # Fixed routes
     25 router rnic1
     26   address 192.0.0.1/32
     27   address fe80::1/128
     28   interface eth1
     29   route 0.0.0.0/0
     30     neighbour 9c:6b:00:60:05:98
     31     ttl 3600
     32     metric 600
     33   route 10.0.0.0/8
     34     neighbour 9c:6b:00:60:05:F0
     35     ttl 1800
     36     metric 100
     37 
     38 # Routed interface, L3 only
     39 # Mixed routes
     40 router rnic2
     41   address 192.0.0.1/32
     42   address fe80::1/128
     43   # Propagate routes with metric +50
     44   redistribute kernel
     45     ttl 300
     46     metric 50
     47   # Static routes
     48   # Basic routes, ttl=300, metric=0
     49   route 0.0.0.0/0 9c:6b:00:60:05:98
     50   route 10.0.0.0/8 9c:6b:00:60:05:F0