(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>&nbsp;</div>
<div class="gmail_quote">On Nov 23, 2007 5:27 AM, Pramendra Singh &lt;<a href="mailto:[email protected]">[email protected]</a>&gt; 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 &#39;0&#39; 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-&gt;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 &#39;0&#39;<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&#39;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>&quot;ip route add ....&quot; 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 &lt;<a href="mailto:[email protected]">[email protected]
</a>&gt;<br>wrote:<br><br>&gt; Hello Parminder<br>&gt; sorry for the confusion.<br>&gt; No I do not want to stop IPv6.<br>&gt;<br>&gt; With RA, machine will learn about the gateway adress<br>&gt; from the SA of RA.<br>&gt;
<br>&gt; If i give static default GW for IPv6 in the<br>&gt; /etc/sysconfig/network-scripts/ifcgf-eth0<br>&gt;<br>&gt; I will have tow gateway<br>&gt; 1. Through RA<br>&gt; 2. Static default GW<br>&gt;<br>&gt; when i checked with Route command i got both the
<br>&gt; address.<br>&gt; I was just wondering if it is possible to remove the<br>&gt; gateway option received<br>&gt; from RA.<br>&gt;<br>&gt; Thanks<br>&gt; - Anjali<br>&gt;<br>&gt; On Nov 22, 2007 4:28 AM, Pramendra Singh
<br>&gt; &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;<br>&gt; wrote:<br>&gt;<br>&gt; &gt; Hi Anjali!<br>&gt; &gt;<br>&gt; &gt; I am sorry to ask this but I am bit confused with<br>
&gt; what<br>&gt; &gt; are you trying to achive with this...Pls correct<br>&gt; my<br>&gt; &gt; point.<br>&gt; &gt;<br>&gt; &gt; You have stopped accept_ra and auto_conf. But as<br>&gt; per<br>&gt; &gt; the IPv6 having a link local address on interface
<br>&gt; is<br>&gt; &gt; must, I am not sure that its mentioned in some RFC<br>&gt; or<br>&gt; &gt; not but thats what I think.<br>&gt; &gt;<br>&gt; &gt; Now you are trying to stop the gateway<br>&gt; configuration.<br>&gt; &gt; I am confused with this. without all these how you
<br>&gt; are<br>&gt; &gt; going to support IPv6 on your machine ?<br>&gt; &gt;<br>&gt; &gt; as for the answer of your question..I think when<br>&gt; (but<br>&gt; &gt; not fully sure) you have already set accept_ra<br>&gt; flag to
<br>&gt; &gt; &#39;0&#39; then gateway should not be configured.<br>&gt; &gt;<br>&gt; &gt; Thanks and Regards<br>&gt; &gt; Pramendra<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; --- Anjali Gajendragadkar &lt;
<a href="mailto:[email protected]">[email protected]</a>&gt;<br>&gt; &gt; wrote:<br>&gt; &gt;<br>&gt; &gt; &gt; thanks Parmendra<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; With this inteface doesnot have autoconf ipv6<br>&gt; &gt; &gt; address
<br>&gt; &gt; &gt; but still interface receives default gateway , i<br>&gt; &gt; &gt; mean since it accepts RA,<br>&gt; &gt; &gt; interface calculates default GW from the RA<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Is there some way to stop this, so that default
<br>&gt; &gt; &gt; gateway will not be<br>&gt; &gt; &gt; calculated from RA<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; -Anjali<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; On Nov 20, 2007 5:26 PM, Pramendra Singh<br>&gt; &gt; &gt; &lt;<a href="mailto:[email protected]">
[email protected]</a>&gt;<br>&gt; &gt; &gt; wrote:<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Hi<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; sorry for creating confusion with my last<br>&gt; mail..<br>&gt; &gt; &gt; &gt;
<br>&gt; &gt; &gt; &gt; Vaun is right. set 0 to<br>&gt; &gt; &gt; &gt; /proc/sys/net/ipv6/conf/all/accept_ra to<br>&gt; sppress<br>&gt; &gt; &gt; RA<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; and u can supress autoconfiguration of ipv6
<br>&gt; &gt; &gt; address<br>&gt; &gt; &gt; &gt; with setting 0 to<br>&gt; &gt; &gt; &gt; /proc/sys/net/ipv6/conf/all/auto_conf<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Regards<br>&gt; &gt; &gt; &gt; Pramendra<br>&gt; &gt; &gt; &gt;
<br>&gt; &gt; &gt; &gt; --- Anjali Gajendragadkar &lt;<br>&gt; <a href="mailto:[email protected]">[email protected]</a>&gt;<br>&gt; &gt; &gt; &gt; wrote:<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; I have a linux PC (
<a href="http://2.6.12.3/" target="_blank">2.6.12.3</a> - kernel) with<br>&gt; ipv6<br>&gt; &gt; &gt; &gt; &gt; enabled and assigned<br>&gt; &gt; &gt; &gt; &gt; it an static IP address<br>&gt; &gt; &gt; &gt; &gt; The PC also receives RA as Router is enabled
<br>&gt; and<br>&gt; &gt; &gt; &gt; &gt; configured with IPV6 prefix.<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; Thus my PC has three address<br>&gt; &gt; &gt; &gt; &gt; 1. Static IPv6 address<br>&gt; &gt; &gt; &gt; &gt; 2. From router advertisment RA (prefix+MAC
<br>&gt; &gt; &gt; address)<br>&gt; &gt; &gt; &gt; &gt; 3. Link local address<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; my questions<br>&gt; &gt; &gt; &gt; &gt; 1. &nbsp;is it possible to supress RA on the<br>&gt; linux
<br>&gt; &gt; &gt; PC, so<br>&gt; &gt; &gt; &gt; &gt; that PC will not<br>&gt; &gt; &gt; &gt; &gt; generate IPV6 address using this<br>&gt; &gt; &gt; &gt; &gt; 2. can link local address be supressed<br>&gt; &gt; &gt; &gt; &gt;
<br>&gt; &gt; &gt; &gt; &gt; -Anjali<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt;<br>&gt;<br>______________________________________________________________________
<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &nbsp; &nbsp; &nbsp;Save all your chat conversations. Find<br>&gt; them<br>&gt; &gt; &gt; online at<br>&gt; &gt; &gt; &gt;
<br>&gt; &gt; &gt;<br>&gt; <a href="http://in.messenger.yahoo.com/webmessengerpromo.php" target="_blank">http://in.messenger.yahoo.com/webmessengerpromo.php</a><br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;
<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; &nbsp; &nbsp; &nbsp;Save all your chat conversations. Find them<br>&gt; online at<br>&gt; &gt;<br>&gt; <a href="http://in.messenger.yahoo.com/webmessengerpromo.php" target="_blank">
http://in.messenger.yahoo.com/webmessengerpromo.php</a><br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt;<br><br><br><br>&nbsp; &nbsp; &nbsp;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--