[Dibbler] Problem configuring Dibbler.... Need Help

Michael David servers.david at gmail.com
Thu Apr 4 18:44:07 CEST 2013


Thanks you very much Jean-Jacques. This is awesome.


On Thu, Apr 4, 2013 at 10:13 PM, Jean-Jacques Sarton <jj.sarton at web.de>wrote:

> Rebonjour Michael,
>
> You can put further address to the interface within the script
> I have here build a version which will allow to generate a lot
> of addresses
>
> IDS='1 2 3 4 5'
> for ID in $IDS
> do
>  if [ $1 == "add" ]
>  then
>   ip -6 addr add ${PREFIX1}${ID}/64 dev ${IFACE}
>  fi
>  if [ $1 == "delete" ]
>  then
>    ip -6 addr delete ${PREFIX1${ID}/64 dev ${IFACE}
>  fi
> done
>
> you may also take your scripts duplicate the lines
> ip addr ...
> and replace "${PREFIX1}1/${PREFIX1LEN}"
> with  "${PREFIX1}<ID>/64" while <ID> is the lower part
> of the address for this interface.
>
> The /64 network size is enough here, dibbler-client
>
> Jean-Jacques
>
> Am 04.04.2013 18:22, schrieb Michael David:
> > Thank you ever so much Jean-Jacques. It worked perfectly.
> >
> > How to modify it to get 2 IPs assigned to the same interface?
> >
> > Michael
> >
> >
> > On Thu, Apr 4, 2013 at 9:26 PM, Jean-Jacques Sarton <jj.sarton at web.de
> >wrote:
> >
> >> Hallo Michael and Tomek
> >>
> >> Am 04.04.2013 15:32, schrieb Tomasz Mrugalski:
> >>> if $1 == "add" then
> >>>   ip -6 addr add ${PREFIX1}::1/${PREFIXLEN} dev ${IFNAME}
> >>> fi
> >>> if $1 == "delete" then
> >>>   ip -6 addr delete ${PREFIX1}::1/${PREFIXLEN} dev ${IFNAME}
> >>> fi
> >>
> >> The script shall look as follow:
> >>
> >> #!/bin/sh
> >> if [ $1 == "add" ]
> >> then
> >>   ip -6 addr add ${PREFIX1}1/${PREFIX1LEN} dev ${IFACE}
> >> fi
> >> if [ $1 == "delete" ]
> >> then
> >>   ip -6 addr delete ${PREFIX1}1/${PREFIX1LEN} dev ${IFACE}
> >> fi
> >> exit 0
> >>
> >> Michael,
> >> I suggest that you put the script within /etc/dibbler as client.script
> >> the file must be executable for this issue
> >> chmod 760 /etc/dibbler/client.script
> >>
> >> After you have the script at the right place you shall insert
> >> the line
> >>
> >> script "/etc/dibbler/client.script"
> >>
> >> to client.conf within the global part, this mean anywhere above
> >> the line
> >>
> >> "iface eth0 {"
> >>
> >> If you restart dibbler-client you will see with the command
> >>
> >> ip a
> >>
> >> that the interface has got the address.
> >>
> >> Tomek,
> >>
> >> if there are more than 1 interface this simple script will
> >> not do the right job. I have not found the IFNAME variable
> >> within the environment. For the particular case the above
> >> script shall be OK.
> >> _______________________________________________
> >> http://klub.com.pl/cgi-bin/mailman/listinfo/dibbler
> >>
> >
> >
> >
> > _______________________________________________
> > http://klub.com.pl/cgi-bin/mailman/listinfo/dibbler
> >
>
> _______________________________________________
> http://klub.com.pl/cgi-bin/mailman/listinfo/dibbler
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://klub.com.pl/pipermail/dibbler/attachments/20130404/d30198ea/attachment.html>


More information about the Dibbler mailing list