LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-23-2014, 11:08 AM   #1
dr.x
Member
 
Registered: Jan 2013
Posts: 231

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
#!/bin/bash
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
fi

#configure locally
#ifconfig $IFNAME add 2001:db8:1:$ADDR::1/64
ifconfig $IFNAME add 2001:4428:200:8154:aaaa:$ADDR::1/80
#2001:4428:200:8154:aaaa::/80
#generate radvd config
RAP=/etc/ppp/ipv6-radvd/$IFNAME
RA=$RAP.conf
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 $RAP.pid

exit 0
root@debian:~#


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

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
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?
 
  


Reply



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 03:55 PM
LXer: Review: DNS & BIND on IPv6 LXer Syndicated Linux News 0 10-11-2011 12:42 PM
LXer: Another IPv6 Crash Course For Linux: Real IPv6 Addresses, Routing, Name Services LXer Syndicated Linux News 0 04-21-2011 07:40 AM
BIND9 as forwarder, IPv6 queries from IPv6 forwarders Nonoo Linux - Server 1 11-23-2009 01:57 PM
How to set IPv6 address on IPv6 router tlemons Linux - Networking 3 09-17-2007 01:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:36 PM.

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