Skip to content
  • Beniamino Galvani's avatar
    ifcfg-rh: support route options · 40e1fd95
    Beniamino Galvani authored
    For IPv4 we support both the legacy and the new route file format. In
    the legacy format, option are appended to the "ip route" command
    arguments:
    
      203.0.113.0/24 metric 3 via 198.51.100.1 dev eth2 cwnd 14 mtu lock 1500
    
    This is backwards compatible with initscripts. In the new format, a
    OPTIONSx= variable is added to represent the options in the same
    format understood by iproute2:
    
     ADDRESS0=203.0.113.0
     NETMASK0=255.255.255.0
     GATEWAY0=198.51.100.1
     METRIC0=3
     OPTIONS0="cwnd 14 mtu lock 1500"
    
    initscripts do not support this variable at the moment (but the
    changes needed to support it are trivial).
    
    By default the new format is used, unless the route file is already in
    the legacy format.
    
    For IPv6 only the legacy format is supported, as before.
    40e1fd95