Hide Forgot
Description of problem: when i run "ifup eth0.<vlanid>" the routing rules /etc/sysconfig/network-scripts/rule-eth0.<vlan> script get added twice(or thrice sometimes). Version-Release number of selected component (if applicable): initscripts-9.20.2 How reproducible: always Steps to Reproduce: 1.ip rule 2.ifdown eth0.<vlanid>;ifup eth0.<vlanid> 3.ip rule Actual results: [Malar@localhost ~]$ ip rule 0: from all lookup local 32765: from all fwmark 0xb lookup table1 32765: from all fwmark 0xb lookup table1 32766: from all lookup main 32767: from all lookup default Expected results: [Malar@localhost ~]$ ip rule 0: from all lookup local 32765: from all fwmark 0xb lookup table1 32766: from all lookup main 32767: from all lookup default Additional info: rule-eth0.<vlanid> contains: fwmark 0xa lookup table1 prio 32765 if rule-eth0.<vlanid> contains: fwmark 0xa lookup table1 the results look like [Malar@localhost ~]$ ip rule 0: from all lookup local 32764: from all fwmark 0xb lookup table1 32765: from all fwmark 0xb lookup table1 32766: from all lookup main 32767: from all lookup default
Can't reproduce this in a brief test on Fedora 15 (although without VLAN involved.) - Can you attach all your configuration? - I'm assuming you don't have NetworkManager also running
I have turned off "NetworkManager" and started "network" service contents of ifcfg-eth0.x : DEVICE=eth0.x IPADDR=10.x.x.x NETMASK=255.255.255.0 DNS1=8.8.8.8 DNS2=8.8.4.4 MACADDR=x:x:x:x:x:x VLAN=yes BOOTPROTO=none ONBOOT=no USERCTL=yes REORDER_HDR=no contents of ifcfg-eth0.y : DEVICE=eth0.y IPADDR=10.y.y.y NETMASK=255.255.255.0 DNS1=8.8.8.8 DNS2=8.8.4.4 MACADDR=y:y:y:y:y:y VLAN=yes BOOTPROTO=none ONBOOT=no USERCTL=yes REORDER_HDR=no contents of route-eth0.x: 10.0.0.0/8 via 10.x.x.x dev eth0.x table table1 contents of route-eth0.y: 10.0.0.0/8 via 10.y.y.y dev eth0.y table table2 contents of rule-eth0.x: fwmark 0xa lookup table1 prio 32765 contents of rule-eth0.y: fwmark 0xb lookup table2 prio 32764 contents of iptables rule file iptable-mangle-owner: -A OUTPUT -m owner --uid-owner user1 -j MARK --set-mark 0xa -A OUTPUT -m owner --uid-owner User2 -j MARK --set-mark 0xb
I still can't reproduce this - ifdown properly takes down rules as well as routes. The only way I can reproduce this is if ifup is run multiple times for the device; then rules are added multiple times. But, IMO, that should be fixed in iproute (much like it doesn't let you add a duplicate route.)
This message is a notice that Fedora 14 is now at end of life. Fedora has stopped maintaining and issuing updates for Fedora 14. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At this time, all open bugs with a Fedora 'version' of '14' have been closed as WONTFIX. (Please note: Our normal process is to give advanced warning of this occurring, but we forgot to do that. A thousand apologies.) Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, feel free to reopen this bug and simply change the 'version' to a later Fedora version. Bug Reporter: Thank you for reporting this issue and we are sorry that we were unable to fix it before Fedora 14 reached end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged to click on "Clone This Bug" (top right of this page) and open it against that version of Fedora. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping