On Saturday 12 June 2004 23:33, Ernest Byaruhanga wrote:
> hi lugs
>
> whenever i disable ipv6 support from the kernel (2.6) and recompile, i
> still find that ifconfig eth0 gives me a default ipv6 address ( which i do
> not want - see below):
On which distribution is this, SuSE or DeadRat (not that it really matters,
but trend following could help)?
>
> eth0 Link encap:Ethernet HWaddr 00:0D:56:E2:BB:39
> inet addr:146.64.28.46 Bcast:146.64.28.255 Mask:255.255.255.0
> inet6 addr: fe80::20d:56ff:fee2:bb39/64 Scope:Link
> inet6 addr: 3ffe:2900:fffa:3:20d:56ff:fee2:bb39/64 Scope:Global
Well, I have this too on my laptop, SuSE 9.1 Pro with default 2.6 kernel:
the-host:/ # ifconfig
eth0 Link encap:Ethernet HWaddr 00:02:DD:77:55:B2
inet addr:172.16.0.31 Bcast:172.16.0.255 Mask:255.255.255.0
inet6 addr: fe80::202:ddff:fe77:55b2/64 Scope:Link
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24720 errors:0 dropped:0 overruns:0 frame:0
TX packets:25637 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2184880 (2.0 Mb) TX bytes:34204343 (32.6 Mb)
Interrupt:5 Base address:0x300
>
> this means i manually have to do:
>
> ifconfig eth0 del fe80::20d:56ff:fee2:bb39/64
> ifconfig eth0 del 3ffe:2900:fffa:3:20d:56ff:fee2:bb39/64
Your v4 address should continue to work fine, as it will be chosen by default,
whether you have the v6 address or not.
>
> which i dont want too (neither do i want to write a script to do this) :)
It could make your life simpler if you did :).
>
> problem is that the current smtp server cant map this ipv6 address against
> any hostname.. (which server i have no control over..)
Which SMTP server is this, Exim? If so, I had similar problems at some point,
not only with Exim but also with Courier. There are 2 things you can do:
o Compile Exim/Courier from source and disable v6 support
o Or edit the Exim configuration file and add this line:
local_interfaces = 127.0.0.1
Of course, the address would have to be your v4 Ethernet address; mine is the
localhost address because I run my own SMTP server on my laptop, to handle
outbound mail, but you get the point.
This will cause Exim to forcefully bind to your v4 address, and listen (and
address you already have in your /etc/hosts file). This is, of course,
assuming you are trying to setup Exim.
>
> has anyone ever got this problem? is this a NIC driver problem?
Most times, it's easier and less time consuming to remove v6 support from the
application, and not in the kernel, unless you really have the time :).
>
> i have disabled ipv6 support in the kernel at the moment but no cure yet..
> i cant see any ipv6 disable in any of the scripts in
> /etc/sysconfig/network..
It's in the application.
Mark.
>
> cheers
---------------------------------------------
This service is hosted on the Infocom network
http://www.infocom.co.ug