Bug 680872
Summary: | cannot add ipv6 routing rules | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tobias Oed <tobiasoed> | ||||||
Component: | initscripts | Assignee: | Bill Nottingham <notting> | ||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | low | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 14 | CC: | iarlyy, jonathan, notting, plautrba, rvokal | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2011-09-22 20:36:39 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Tobias Oed
2011-02-28 09:35:11 UTC
ifup-post & ifup-routes still run. Does /sbin/ip not handle ipv6 rules without an explicit -6 attached? nope ip needs the -6 to do ipv6 stuff. From my experience, it never tries to guess and assumes ipv4 unless the -6 is there. For one thing, there is no way to tell if ip rule add prio 5 fwmark 5/15 table mytable is ipv4 or ipv6. Further the -6 must be the first argument so one cannot cheat in rule-ethX by adding a -6 at the beginning of a line. I forgot the other half of my patch that removes the rules when an interface goes down. Not sure if this should be done in ifup-routes, but since that only does ipv4 rules and routes and ifup-ipv6 already handles ipv6 routes, I thought it would make sense to add the ipv6 rules there too. [root@byo0 network-scripts]# diff ifdown-ipv6-original ifdown-ipv6 -u --- ifdown-ipv6-original 2011-03-01 16:43:31.009064001 +0100 +++ ifdown-ipv6 2011-02-27 15:53:41.394831411 +0100 @@ -134,3 +134,13 @@ # Delete all current configured IPv6 addresses on this interface ipv6_cleanup_device $DEVICE + +# Delete static IPv6 rules +if [ -f "/etc/sysconfig/network-scripts/rule6-$DEVICE" ]; then + cat "/etc/sysconfig/network-scripts/rule6-$DEVICE" | sed 's/#.*//g' | grep -v '^[[:space:]]*$' | while read line; do + /sbin/ip -6 rule del $line + done +fi + Tobias Created attachment 481718 [details]
test patch
In an effort to merge ipv4 and ipv6s somewhat, I came up with the following - does it work for you?
Hello, sorry about the delay. There are a few problems, I'm attaching a slightly improoved version. Cheers Tobias Created attachment 483774 [details]
improoved patch
This is the improoved patch
Added in git as http://git.fedorahosted.org/git/?p=initscripts.git;a=commitdiff;h=fc73bbccaae3858ea3f895e746467a758e6b5593. Will be in rawhide/F-15. I guess this already has been fixed. -- Fedora Bugzappers Member Team |