Re: Stop ifconfig from adding an ipv6 address?



On Thu, 28 Feb 2008 13:18:05 +1000, Brad <brad46526@xxxxxxxxx> wrote:

Hi. I'm running Linux 2.6.23.14 with Slackware 12.0 and have had
my first exposure to ipv6. It seems that ifconfig (from net-tools
1.60) will automatically assign an ipv6 address to my ethernet
interface when I configure it for an ipv4 address, whether I want
one or not. I.e. the command:

ifconfig eth0 inet 192.168.1.10 up

will cause both the ipv4 address and also an ipv6 address to
materialise on eth0.

I suggest that you post this question in alt.os.linux.slackware or
alt.linux.slakware.

This does not happen to me when I use rc.inet1 and rc.inet1.conf,
regardless of static or DHCP IP, and I have not done anything that
would discourage IPv6 other than to remove all references to it from
the netfilter/iptables stuff in the kernel.

Another alternative might be to use ip rather than ifconfig.
--
buck

.



Relevant Pages

  • Re: Problem with latest HEAD and IPv6: in6_ifinit: insertion failed
    ... It won't create the IPv6 addresses, so I can't SSH to my jails using ... dut# sh test.sh ... ifconfig: ioctl: File exists ...
    (freebsd-current)
  • Re: [SLE] Re: Network Up, Then Down with 9.2 -- more info
    ... Thank you SOOO much! ... upgrading to iproute2-2.6.9-2.1.i586.rpm fixed it. ... for lo and eth0, according to ifconfig. ... I have no need of the ipv6 addresses, ...
    (SuSE)
  • Re: foreign ip in /var/log/wtmp
    ... On 5 May 2007, in the Usenet newsgroup comp.os.linux.security, in article ... , Bernd wrote: ... While Germany does have 128 IPv6 assignments/allocations, ...
    (comp.os.linux.security)
  • Broadcom Wireless ndiswrapper ?
    ... I got ndiswrapper to pick up the wireless nic, shows in iwconfig and ... ifconfig. ... It only show a IPV6 address not an IPV4 address. ...
    (alt.os.linux.suse)
  • Re: ipv6
    ... I have a question about IPv6. ... An ifconfig shows this: ... does not mean that IPv4 goes away. ... An ISP can not really "automagically" change you ...
    (freebsd-questions)