Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 602343 Details for
Bug 626514
ISC dhcp does not support ppp and ipv6 as in`dhclient -6 -P`
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
dhclient autoconfiguration script
radvd-script.sh (text/plain), 4.03 KB, created by
Hrvoje
on 2012-08-05 09:42:05 UTC
(
hide
)
Description:
dhclient autoconfiguration script
Filename:
MIME Type:
Creator:
Hrvoje
Created:
2012-08-05 09:42:05 UTC
Size:
4.03 KB
patch
obsolete
>#!/bin/bash > ># by Hrvoje ># ># This script should setup radvd and dhcpd6. ># ># radvd is setup in a way best suited fo dinamic PD. This means that there ># is no presistent PD, so special care must be taken to avoid causing multiple ># assigments on clients. To be precise, we must ensure that all old RA must ># be deprecieted. Also, because isp gives to up PD for specific time, we must ># ensure that clients do not cling on with old addresses. This is done using ># DeprecatePrefix and DecrementLifetimes options. ># ># Also, windows clients do not pickup DNS from RA. So, for them, we must setup ># dhcpd6, to work correctly. ># ># NOTE: script assumes that pppd machine also have DNS proxy, so for DNS address ># it uses LL addresses. If this is not desired, change variables bellow. ># > > >/usr/sbin/dhclient-script "$@" > >myname=`basename $0` > >if [ -f "/etc/sysconfig/network-scripts/ifcfg-$interface" ] ; then > . /etc/sysconfig/network-scripts/ifcfg-$interface >fi > >if [ -z "$IPV6_DP_IFNAME" ] ; then > exit 0 >fi > >if [ -z "$IPV6_RADVD_PIDFILE" ] ; then > IPV6_RADVD_PIDFILE="/var/run/radvd/radvd-$IPV6_DP_IFNAME.pid" >fi > >if [ -z "$IPV6_DHCPD_PID" ] ; then > IPV6_DHCPD_PID="/var/run/dhcpd6-$IPV6_DP_IFNAME.pid" >fi > >if [ -z "$IPV6_DHCPD_LEASES" ] ; then > IPV6_DHCPD_LEASES="/var/lib/dhcpd/dhcpd6-$IPV6_DP_IFNAME.leases" >fi > >logger -t $myname -p daemon.info "Params $IPV6_RADVD_PIDFILE $IPV6_DHCPD_PID $IPV6_DHCPD_LEASES $IPV6_DP_IFNAME" > >#env > /tmp/mm.$reason.$$ > ># ># fn ># > >create_radvd_profile() { > > #local_ip6_addr="${new_ip6_prefix%/*}1" > local_ip6_addr=`ip addr show $IPV6_DP_IFNAME scope link | awk '/inet6/ {print substr($2,1,length($2)-3)}'` > local_ip6_prefix="${new_ip6_prefix%/*}/64" > > cat <<EOF > /etc/radvd-$IPV6_DP_IFNAME.conf ># AUTOMAGICALLY CREATED > >interface $IPV6_DP_IFNAME { > AdvSendAdvert on; > MinRtrAdvInterval 3; > MaxRtrAdvInterval 10; > AdvLinkMTU 1460; > AdvOtherConfigFlag on; > > prefix $local_ip6_prefix { > AdvOnLink on; > AdvAutonomous on; > AdvPreferredLifetime $new_preferred_life; > AdvValidLifetime $new_max_life; > DeprecatePrefix on; > DecrementLifetimes on; > }; > > #RDNSS $new_dhcp6_name_servers { > RDNSS $local_ip6_addr { > > }; >}; > >EOF > > #sysctl -w net.ipv6.conf.$IPV6_DP_IFNAME.forwarding=1 >} > >create_dhcpd6_profile() { > #local_ip6_addr="${new_ip6_prefix%/*}1" > local_ip6_addr=`ip addr show $IPV6_DP_IFNAME scope link | awk '/inet6/ {print substr($2,1,length($2)-3)}'` > local_ip6_prefix="${new_ip6_prefix%/*}/64" > > cat <<EOF > /etc/dhcp/dhcpd6-$IPV6_DP_IFNAME.conf ># AUTOMAGICALLY CREATED > ># option dhcp6.name-servers $new_dhcp6_name_servers ; >option dhcp6.name-servers $local_ip6_addr ; >option dhcp6.sntp-servers $local_ip6_addr ; > >subnet6 $local_ip6_prefix { >} > >EOF > > cat /dev/null > $IPV6_DHCPD_LEASES > chown dhcpd:dhcpd $IPV6_DHCPD_LEASES >} > >setup_dp_interface() { > local_ip6_addr="${new_ip6_prefix%/*}1/64" > > ip addr add $local_ip6_addr dev $IPV6_DP_IFNAME >} > >remove_dp_interface() { > local_ip6_addr="${old_ip6_prefix%/*}1/64" > > ip addr del $local_ip6_addr dev $IPV6_DP_IFNAME >} > >logger -t $myname -p daemon.info "$reason detected" > >case $reason in > BOUND6) > setup_dp_interface > create_radvd_profile > create_dhcpd6_profile > > dhcpd -6 -cf /etc/dhcp/dhcpd6-$IPV6_DP_IFNAME.conf -user dhcpd -group dhcpd -pf $IPV6_DHCPD_PID -lf $IPV6_DHCPD_LEASES > RET=$? > if [ $RET -ne 0 ] ; then > logger -t $myname -p daemon.error "Unable to start dhcpd6" > fi > > radvd -u radvd -C /etc/radvd-$IPV6_DP_IFNAME.conf -p $IPV6_RADVD_PIDFILE > RET=$? > if [ $RET -ne 0 ] ; then > logger -t $myname -p daemon.error "Unable to start radvd" > fi > ;; > REBOUND6) > ;; > RELEASE6) > remove_dp_interface > > if [ -f "$IPV6_RADVD_PIDFILE" ] ; then > kill `cat $IPV6_RADVD_PIDFILE` > rm -f $IPV6_RADVD_PIDFILE > fi > > if [ -f "$IPV6_DHCPD_PID" ] ; then > kill `cat $IPV6_DHCPD_PID` > rm -f $IPV6_DHCPD_PID ${IPV6_DHCPD_LEASES}* > fi > ;; > STOP6) > ;; > RENEW6) > ;; > EXPIRE6) > ;; >esac >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 626514
:
443055
|
443060
|
443128
|
446301
|
446939
|
596257
|
598914
|
602341
|
602342
|
602343
|
602344
|
602345
|
740389
|
740393
|
740670
|
741830
|
741831
|
743452
|
743453
|
819281
|
819282
|
819283
|
821802
|
901378
|
901379
|
901380