1 Index: rc-scripts/doc/sysconfig.txt
2 ===================================================================
3 --- rc-scripts/doc/sysconfig.txt (revision 12207)
4 +++ rc-scripts/doc/sysconfig.txt (working copy)
7 <device> may be a device name to have the route brought up and
8 down with the device, or "any" to have the correct devices calculated
9 - at run time. [type] is optional. RH style isn't supported !
10 + at run time. [type] is optional. RH style isn't supported!
12 Also you can set few options after "<gateway>":
18 - For more informations see iproute2 documentation .
19 + For more informations see iproute2 documentation.
21 +/etc/sysconfig/static-routes6:
23 + Same as /etc/sysconfig/static-routes but for IPv6.
25 /etc/sysconfig/routed:
28 Index: rc-scripts/sysconfig/static-routes6
29 ===================================================================
30 --- rc-scripts/sysconfig/static-routes6 (revision 0)
31 +++ rc-scripts/sysconfig/static-routes6 (revision 12210)
33 +# IPv6 specific rules and routes
35 +# Entry format for ip rule:
37 +# Entry format for static route:
38 +# <device> <network_ip>/<network_mask_length> <other arguments>
42 +#from fec0:2::/32 table 10
43 +#eth0 default via fec0:2::1 table 10
45 +# route fec0:12::34 via fec0:2::3 via any interface
46 +#any fec0:12::34 via fec0:2::3
47 Index: rc-scripts/sysconfig/Makefile.am
48 ===================================================================
49 --- rc-scripts/sysconfig/Makefile.am (revision 12207)
50 +++ rc-scripts/sysconfig/Makefile.am (working copy)
59 Index: rc-scripts/sysconfig/network-scripts/ifup-routes
60 ===================================================================
61 --- rc-scripts/sysconfig/network-scripts/ifup-routes (revision 12207)
62 +++ rc-scripts/sysconfig/network-scripts/ifup-routes (working copy)
64 # Adds static routes which go through device $DEVICE
65 # Called from ifup-post.
67 -if [ ! -f /etc/sysconfig/static-routes ]; then
68 +if [ ! -f /etc/sysconfig/static-routes -a ! -f /etc/sysconfig/static-routes6 ]; then
73 /sbin/ip route add $args dev $REALDEVICE
76 +if ! is_no "$IPV6_NETWORKING"; then
77 + grep -E "^($DEVICE|any)[[:blank:]]" /etc/sysconfig/static-routes6 | while read device args; do
78 + /sbin/ip -6 route add $args dev $REALDEVICE
82 # based on information from http://avahi.org/wiki/AvahiAutoipd#Routes
83 if is_yes "$ZEROCONF" && ! /sbin/ip link show dev $REALDEVICE | grep -q POINTOPOINT ; then
84 Index: rc-scripts/sysconfig/network-scripts/functions.network
85 ===================================================================
86 --- rc-scripts/sysconfig/network-scripts/functions.network (revision 12207)
87 +++ rc-scripts/sysconfig/network-scripts/functions.network (working copy)
92 + is_no "$IPV6_NETWORKING" && return
93 + if [ -f /etc/sysconfig/static-routes6 ]; then
94 + if [ "$1" = "on" -o "$1" = "yes" ]; then
95 + grep -E "^(none|any)[[:blank:]]" /etc/sysconfig/static-routes6 | while read device args; do
96 + /sbin/ip -6 route add $args
99 + grep -E "^(none|any)[[:blank:]]" /etc/sysconfig/static-routes6 | while read device args; do
100 + /sbin/ip -6 route del $args 2>/dev/null
106 # Add ONLY IPv4 address (IPv6 address is added automaticly)
109 /sbin/ip route add $args dev lo
111 + is_no "$IPV6_NETWORKING" && return
112 + grep -E "^(lo|any)[[:blank:]]" /etc/sysconfig/static-routes6 | while read device args; do
113 + /sbin/ip -6 route add $args dev lo
118 @@ -460,10 +476,22 @@
120 elif is_no "$1"; then
121 LC_ALL=C /sbin/ip rule show | grep -vE -e "from all lookup (main|default|local) \$" -e " map-to " | while read prio from src args; do
122 - [ "$src" = "all" ] && ip rule delete $args || ip rule delete $from $src $args
123 + [ "$src" = "all" ] && /sbin/ip rule delete $args || /sbin/ip rule delete $from $src $args
127 + is_no "$IPV6_NETWORKING" && return
128 + if [ -f /etc/sysconfig/static-routes6 ]; then
129 + if is_yes "$1"; then
130 + grep -E "^(from|to|iif|tos|fwmark|dev|pref|priority|prio)[[:blank:]]" /etc/sysconfig/static-routes6 | while read args; do
131 + /sbin/ip -6 rule add $args
133 + elif is_no "$1"; then
134 + LC_ALL=C /sbin/ip -6 rule show | grep -vE -e "from all lookup (main|default|local) \$" -e " map-to " | while read prio from src args; do
135 + [ "$src" = "all" ] && /sbin/ip -6 rule delete $args || /sbin/ip -6 rule delete $from $src $args
141 is_wireless_device ()