Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-23-2014, 12:08 PM   #1
Registered: Jan 2013
Posts: 221

Rep: Reputation: Disabled
need to have a review on a script for radvd ipv6 , user can get ipv6 dns ??!!

hi all ,
i have a script , but i need a script man to have a look on and tell me why the dns is not working on this script.

the user can get ipv6 ip , but it cant get ipv6 dns ???!!

here is the script :

root@debian:~# cat /etc/ppp/ipv6-up.d/setupradvd
ADDR=$(grep ^$PEERNAME: /etc/ppp/ipv6-addr |cut -f 2 -d
if test x$ADDR == x ; then
echo "No IPv6 address found for user $PEERNAME"
exit 0

#configure locally
#ifconfig $IFNAME add 2001:db8:1:$ADDR::1/64
ifconfig $IFNAME add 2001:4428:200:8154:aaaa:$ADDR::1/80
#generate radvd config
echo interface $IFNAME >$RA
echo '{ AdvSendAdvert on; MinRtrAdvInterval 5; MaxRtrAdvInterval 100;' >>$RA
echo ' prefix' 2001:4428:200:8154:aaaa:$ADDR::/80 '{};' >>$RA
echo ' RDNSS 2001:db8::1 {}; };' >>$RA

#start radvd
/usr/sbin/radvd -C $RA -p $

exit 0

Old 09-01-2014, 05:45 AM   #2
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198
Showing us the script is a good start (and would be a lot easier to read if you posted it in CODE tags which are most easily accessible in Advanced mode via the # button).

Showing us how you used the script and the output and telling us how the output differs from your expectations would be a good next step.

The script has uninitialised variables unless they are environment variables: IFNAME and PEERNAME. If you show us how you ran the script, please also show their values.

Have you tried running the script with tracing on or simulating its actions line by line at the command prompt?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot connect to ipv6 website with ipv6 address superweijiafeng Linux - Networking 3 07-08-2014 04:55 PM
LXer: Review: DNS & BIND on IPv6 LXer Syndicated Linux News 0 10-11-2011 01:42 PM
LXer: Another IPv6 Crash Course For Linux: Real IPv6 Addresses, Routing, Name Services LXer Syndicated Linux News 0 04-21-2011 08:40 AM
BIND9 as forwarder, IPv6 queries from IPv6 forwarders Nonoo Linux - Server 1 11-23-2009 02:57 PM
How to set IPv6 address on IPv6 router tlemons Linux - Networking 3 09-17-2007 02:25 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:56 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration