Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 68968
Summary: | File static-routes does not work with dynamic ppp devices | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Jos Vos <jos> | ||||||
Component: | initscripts | Assignee: | Bill Nottingham <notting> | ||||||
Status: | CLOSED DEFERRED | QA Contact: | Brock Organ <borgan> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 8.0 | CC: | rvokal | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | i386 | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2005-09-29 20:06:36 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: | |||||||||
Bug Depends On: | |||||||||
Bug Blocks: | 67218, 79579, 100644 | ||||||||
Attachments: |
|
Description
Jos Vos
2002-07-16 16:07:31 UTC
Created attachment 67365 [details]
Proposed patch (against initscripts 6.67)
The patch (against initscripts 6.67) works for me. The drawback is that, if your DEVNAME is "myname" for DEVICE "ppp8", for example, you have to create a symlink "ifcfg-myname" to "ifcfg-ppp8", otherwise the relation to the actual device can not be found. Although this patch works fine in my situation, I'm not sure if this is the most easy and general solution. Created attachment 74484 [details]
New patch for initscripts 6.90
I added a new patch for the new route file conventions. In my proposal, the route-ifname file can contain variables $DEVICE and $REALDEVICE, being expanded (by eval) to the device (e.g., ppp10) and the actual device (e.g., ppp0). For non-PPP devices, $DEVICE and $REALDEVICE contain the same value. I'm working on a new patch for this, as I found out that my solution was not generic enough for other cases I had (some IPSEC stuff I'm working on). I'm testing that now on RH 7.3 and will then port it to RH 8.x. The new solution is that ifup-routes will call a "ifdev-$DEVICETYPE" when it exists to find out the $REALDEVICE for $DEVICE ($DEVICETYPE like in ifup). If no corresponding script exists, it sets REALDEVICE=$DEVICE. So, you can make an ifdev-ppp script that maps the logical ppp device to the actual ppp device, etc. The idea is to be able the $REALDEVICE in the route-* files, as I now add a route with the following command: /sbin/ip route add `eval echo "$line"` Closing bugs on older, no longer supported, releases. Apologies for any lack of response. If this persists on a current release, such as Fedora Core 4, please open a new bug. |