(usagi-users 04002) Re: how to supress RA on linux
"Anjali Gajendragadkar" <[email protected]> Sat, 24 Nov 2007 13:20:41 +0530
| Newsgroups | gmane.linux.ipv6.usagi.users |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_30989_7207195.1195890641095 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks Pramendra On Nov 23, 2007 5:27 AM, Pramendra Singh <[email protected]> wrote: > Hi Anjali! > > I think once you have set accept_ra flag to '0' your > machine will not accept the SA in RA as gateway... > > Pls check the function ndisc_router_discovery() in > file net/ipv6/ndisc.c. it will simply return without > doing much...if u have set in6_dev->cnf.accept_ra == > 0. > > I feel that the entry may be old thr. You pls try once > after rebooting your machine... > > and even if you you have not set accept_ra flag to '0' > and you are setting some default route then its hardly > matters whether the machine is getting any new gateway > address or not..it will be only added to the default > gateway list but your's static gateway will be used > for comm. > > one more point, you can add statice route with ip > command. > > "ip route add ...." check man pages for details > > one more point..but the important one..my name is not > Parminder..its Pramendra :) > > Regards > Pramendra > > > > > --- Anjali Gajendragadkar <[email protected]> > wrote: > > > Hello Parminder > > sorry for the confusion. > > No I do not want to stop IPv6. > > > > With RA, machine will learn about the gateway adress > > from the SA of RA. > > > > If i give static default GW for IPv6 in the > > /etc/sysconfig/network-scripts/ifcgf-eth0 > > > > I will have tow gateway > > 1. Through RA > > 2. Static default GW > > > > when i checked with Route command i got both the > > address. > > I was just wondering if it is possible to remove the > > gateway option received > > from RA. > > > > Thanks > > - Anjali > > > > On Nov 22, 2007 4:28 AM, Pramendra Singh > > <[email protected]> > > wrote: > > > > > Hi Anjali! > > > > > > I am sorry to ask this but I am bit confused with > > what > > > are you trying to achive with this...Pls correct > > my > > > point. > > > > > > You have stopped accept_ra and auto_conf. But as > > per > > > the IPv6 having a link local address on interface > > is > > > must, I am not sure that its mentioned in some RFC > > or > > > not but thats what I think. > > > > > > Now you are trying to stop the gateway > > configuration. > > > I am confused with this. without all these how you > > are > > > going to support IPv6 on your machine ? > > > > > > as for the answer of your question..I think when > > (but > > > not fully sure) you have already set accept_ra > > flag to > > > '0' then gateway should not be configured. > > > > > > Thanks and Regards > > > Pramendra > > > > > > > > > > > > > > > --- Anjali Gajendragadkar <[email protected]> > > > wrote: > > > > > > > thanks Parmendra > > > > > > > > With this inteface doesnot have autoconf ipv6 > > > > address > > > > but still interface receives default gateway , i > > > > mean since it accepts RA, > > > > interface calculates default GW from the RA > > > > > > > > Is there some way to stop this, so that default > > > > gateway will not be > > > > calculated from RA > > > > > > > > -Anjali > > > > > > > > On Nov 20, 2007 5:26 PM, Pramendra Singh > > > > <[email protected]> > > > > wrote: > > > > > > > > > Hi > > > > > > > > > > sorry for creating confusion with my last > > mail.. > > > > > > > > > > Vaun is right. set 0 to > > > > > /proc/sys/net/ipv6/conf/all/accept_ra to > > sppress > > > > RA > > > > > > > > > > and u can supress autoconfiguration of ipv6 > > > > address > > > > > with setting 0 to > > > > > /proc/sys/net/ipv6/conf/all/auto_conf > > > > > > > > > > Regards > > > > > Pramendra > > > > > > > > > > --- Anjali Gajendragadkar < > > [email protected]> > > > > > wrote: > > > > > > > > > > > I have a linux PC (2.6.12.3 - kernel) with > > ipv6 > > > > > > enabled and assigned > > > > > > it an static IP address > > > > > > The PC also receives RA as Router is enabled > > and > > > > > > configured with IPV6 prefix. > > > > > > > > > > > > Thus my PC has three address > > > > > > 1. Static IPv6 address > > > > > > 2. From router advertisment RA (prefix+MAC > > > > address) > > > > > > 3. Link local address > > > > > > > > > > > > my questions > > > > > > 1. is it possible to supress RA on the > > linux > > > > PC, so > > > > > > that PC will not > > > > > > generate IPV6 address using this > > > > > > 2. can link local address be supressed > > > > > > > > > > > > -Anjali > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ______________________________________________________________________ > > > > > > > > > > > > > > > > > > > > > > > > > > Save all your chat conversations. Find > > them > > > > online at > > > > > > > > > > > http://in.messenger.yahoo.com/webmessengerpromo.php > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Save all your chat conversations. Find them > > online at > > > > > http://in.messenger.yahoo.com/webmessengerpromo.php > > > > > > > > > > > > > > > > > > Chat on a cool, new interface. No download required. Go to > http://in.messenger.yahoo.com/webmessengerpromo.php > > > > ------=_Part_30989_7207195.1195890641095 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline <div>Thanks Pramendra </div> <div><br> </div> <div class="gmail_quote">On Nov 23, 2007 5:27 AM, Pramendra Singh <<a href="mailto:[email protected]">[email protected]</a>> wrote:<br> <blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi Anjali!<br><br>I think once you have set accept_ra flag to '0' your<br>machine will not accept the SA in RA as gateway... <br><br>Pls check the function ndisc_router_discovery() in<br>file net/ipv6/ndisc.c. it will simply return without<br>doing much...if u have set in6_dev->cnf.accept_ra ==<br>0.<br><br>I feel that the entry may be old thr. You pls try once <br>after rebooting your machine...<br><br>and even if you you have not set accept_ra flag to '0'<br>and you are setting some default route then its hardly<br>matters whether the machine is getting any new gateway <br>address or not..it will be only added to the default<br>gateway list but your's static gateway will be used<br>for comm.<br><br>one more point, you can add statice route with ip<br>command.<br><br>"ip route add ...." check man pages for details <br><br>one more point..but the important one..my name is not<br>Parminder..its Pramendra :)<br><br>Regards<br>Pramendra<br><br><br><br><br>--- Anjali Gajendragadkar <<a href="mailto:[email protected]">[email protected] </a>><br>wrote:<br><br>> Hello Parminder<br>> sorry for the confusion.<br>> No I do not want to stop IPv6.<br>><br>> With RA, machine will learn about the gateway adress<br>> from the SA of RA.<br>> <br>> If i give static default GW for IPv6 in the<br>> /etc/sysconfig/network-scripts/ifcgf-eth0<br>><br>> I will have tow gateway<br>> 1. Through RA<br>> 2. Static default GW<br>><br>> when i checked with Route command i got both the <br>> address.<br>> I was just wondering if it is possible to remove the<br>> gateway option received<br>> from RA.<br>><br>> Thanks<br>> - Anjali<br>><br>> On Nov 22, 2007 4:28 AM, Pramendra Singh <br>> <<a href="mailto:[email protected]">[email protected]</a>><br>> wrote:<br>><br>> > Hi Anjali!<br>> ><br>> > I am sorry to ask this but I am bit confused with<br> > what<br>> > are you trying to achive with this...Pls correct<br>> my<br>> > point.<br>> ><br>> > You have stopped accept_ra and auto_conf. But as<br>> per<br>> > the IPv6 having a link local address on interface <br>> is<br>> > must, I am not sure that its mentioned in some RFC<br>> or<br>> > not but thats what I think.<br>> ><br>> > Now you are trying to stop the gateway<br>> configuration.<br>> > I am confused with this. without all these how you <br>> are<br>> > going to support IPv6 on your machine ?<br>> ><br>> > as for the answer of your question..I think when<br>> (but<br>> > not fully sure) you have already set accept_ra<br>> flag to <br>> > '0' then gateway should not be configured.<br>> ><br>> > Thanks and Regards<br>> > Pramendra<br>> ><br>> ><br>> ><br>> ><br>> > --- Anjali Gajendragadkar < <a href="mailto:[email protected]">[email protected]</a>><br>> > wrote:<br>> ><br>> > > thanks Parmendra<br>> > ><br>> > > With this inteface doesnot have autoconf ipv6<br>> > > address <br>> > > but still interface receives default gateway , i<br>> > > mean since it accepts RA,<br>> > > interface calculates default GW from the RA<br>> > ><br>> > > Is there some way to stop this, so that default <br>> > > gateway will not be<br>> > > calculated from RA<br>> > ><br>> > > -Anjali<br>> > ><br>> > > On Nov 20, 2007 5:26 PM, Pramendra Singh<br>> > > <<a href="mailto:[email protected]"> [email protected]</a>><br>> > > wrote:<br>> > ><br>> > > > Hi<br>> > > ><br>> > > > sorry for creating confusion with my last<br>> mail..<br>> > > > <br>> > > > Vaun is right. set 0 to<br>> > > > /proc/sys/net/ipv6/conf/all/accept_ra to<br>> sppress<br>> > > RA<br>> > > ><br>> > > > and u can supress autoconfiguration of ipv6 <br>> > > address<br>> > > > with setting 0 to<br>> > > > /proc/sys/net/ipv6/conf/all/auto_conf<br>> > > ><br>> > > > Regards<br>> > > > Pramendra<br>> > > > <br>> > > > --- Anjali Gajendragadkar <<br>> <a href="mailto:[email protected]">[email protected]</a>><br>> > > > wrote:<br>> > > ><br>> > > > > I have a linux PC ( <a href="http://2.6.12.3/" target="_blank">2.6.12.3</a> - kernel) with<br>> ipv6<br>> > > > > enabled and assigned<br>> > > > > it an static IP address<br>> > > > > The PC also receives RA as Router is enabled <br>> and<br>> > > > > configured with IPV6 prefix.<br>> > > > ><br>> > > > > Thus my PC has three address<br>> > > > > 1. Static IPv6 address<br>> > > > > 2. From router advertisment RA (prefix+MAC <br>> > > address)<br>> > > > > 3. Link local address<br>> > > > ><br>> > > > > my questions<br>> > > > > 1. is it possible to supress RA on the<br>> linux <br>> > > PC, so<br>> > > > > that PC will not<br>> > > > > generate IPV6 address using this<br>> > > > > 2. can link local address be supressed<br>> > > > > <br>> > > > > -Anjali<br>> > > > ><br>> > > > ><br>> > > > ><br>> > > > ><br>> > > ><br>> > ><br>> ><br>><br>______________________________________________________________________ <br>> > > > ><br>> > > ><br>> > > ><br>> > > ><br>> > > > Save all your chat conversations. Find<br>> them<br>> > > online at<br>> > > > <br>> > ><br>> <a href="http://in.messenger.yahoo.com/webmessengerpromo.php" target="_blank">http://in.messenger.yahoo.com/webmessengerpromo.php</a><br>> > > ><br>> > > ><br>> > > > <br>> > > ><br>> > ><br>> ><br>> ><br>> ><br>> > Save all your chat conversations. Find them<br>> online at<br>> ><br>> <a href="http://in.messenger.yahoo.com/webmessengerpromo.php" target="_blank"> http://in.messenger.yahoo.com/webmessengerpromo.php</a><br>> ><br>> ><br>> ><br>> ><br>><br><br><br><br> Chat on a cool, new interface. No download required. Go to <a href="http://in.messenger.yahoo.com/webmessengerpromo.php" target="_blank"> http://in.messenger.yahoo.com/webmessengerpromo.php</a><br><br><br><br></blockquote></div><br> ------=_Part_30989_7207195.1195890641095--