|
||||||||
|
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|
HI
Can anyone please tell me the command for assigning IPv6 address and mac address on a interface. I tried ifconfig eth0 inet6 add 2001:0db8:0:f101::1/64 It didnt work Is the command correct.? Cheers iceman |
|
#2
|
|||
|
|||
|
Hello,
iceman a écrit : > > Can anyone please tell me the command for assigning IPv6 address and > mac address on a interface. man ifconfig man 8 ip > I tried > ifconfig eth0 inet6 add 2001:0db8:0:f101::1/64 > It didnt work Please can you elaborate ? How do you see it does not work ? > Is the command correct.? Yes, it works for me. You can also assign an IPv6 address with the 'ip' command from the iproute/iproute2 package : ip -6 address add 2001:0db8:0:f101::1/64 dev eth0 Note that the 2001:0db8::/32 range is to be used for documentation purpose only. If you do not have a global prefix you can create and use a prefix in the unique local address range (ULA, cf. RFC 4193). A generator is available at <http://www.kame.net/~suz/gen-ula.html>. |
|
#3
|
|||
|
|||
|
Hi, I got the error "No support for INET6 on this system." Thats why I was wondering if the command was wrong Cheers |
|
#4
|
|||
|
|||
|
On 2008-02-14, iceman <(E-Mail Removed)> wrote:
> > > > Hi, > I got the error > "No support for INET6 on this system." > > > Thats why I was wondering if the command was wrong > Cheers What distribution are you running? RH9 or older? |
|
#5
|
|||
|
|||
|
iceman a écrit :
> I got the error > "No support for INET6 on this system." It seems that the kernel or maybe the glibc lacks IPv6 support. What is the distribution (name and version) ? Maybe the ipv6 kernel module was not loaded. Try to manually load it with the following command : modprobe ipv6 |
|
#6
|
|||
|
|||
|
I tried out
modprobe ipv6 I get the error FATAL: Module ipv6 not found |
|
#7
|
|||
|
|||
|
iceman a écrit :
> I tried out > modprobe ipv6 > > I get the error > > FATAL: Module ipv6 not found What is the output of grep CONFIG_IPV6 /boot/config-$(uname -r) or zgrep CONFIG_IPV6 /proc/config.gz You did not answer about the distribution name and version. |
|
#8
|
|||
|
|||
|
"iceman" <(E-Mail Removed)> wrote in message
news:5050c89a-e4c6-407b-aec8-(E-Mail Removed)... > I got the error "No support for INET6 on this system." > > Thats why I was wondering if the command was wrong Your problem is that you don't have IPv6 support. Make certain that it is compiled into your kernel AND into net-tools. |
![]() |
| Tags |
| address, assigning, command, interface, ipv6, mac |
| Thread Tools | |
| Display Modes | |
|
|