Networking Forums

Networking Forums > Computer Networking > Linux Networking > Command for assigning IPv6 address and MAC address on the interface

Reply
Thread Tools Display Modes

Command for assigning IPv6 address and MAC address on the interface

 
 
iceman
Guest
Posts: n/a

 
      02-13-2008, 05:26 AM
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
 
Reply With Quote
 
 
 
 
Pascal Hambourg
Guest
Posts: n/a

 
      02-13-2008, 01:47 PM
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>.
 
Reply With Quote
 
iceman
Guest
Posts: n/a

 
      02-14-2008, 12:53 AM

Hi,
I got the error
"No support for INET6 on this system."


Thats why I was wondering if the command was wrong
Cheers
 
Reply With Quote
 
Bill Marcum
Guest
Posts: n/a

 
      02-14-2008, 05:00 AM
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?
 
Reply With Quote
 
Pascal Hambourg
Guest
Posts: n/a

 
      02-14-2008, 11:34 AM
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
 
Reply With Quote
 
iceman
Guest
Posts: n/a

 
      02-14-2008, 10:28 PM
I tried out
modprobe ipv6

I get the error

FATAL: Module ipv6 not found


 
Reply With Quote
 
Pascal Hambourg
Guest
Posts: n/a

 
      02-14-2008, 11:03 PM
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.
 
Reply With Quote
 
D. Stussy
Guest
Posts: n/a

 
      03-03-2008, 07:51 PM
"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.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IPv6 address not connecting but IPv4-mapped -IPv6 does. Please help. DanielJohnson Network Routers 0 01-07-2009 12:10 AM
DHCP assigning 169 series address bRad Windows Networking 10 08-15-2008 04:55 AM
IPv6 infrastructure for Global and/or Site Specific IPv6 address JackFlash Windows Networking 1 06-25-2007 03:11 PM
Assigning Invalid IP address??? Bonnie. Wireless Networks 5 01-25-2007 07:17 PM
assigning multiple IP address to one interface via dhcpd Nejat AYDIN Linux Networking 4 06-07-2004 12:26 AM



1 2 3 4 5 6 7 8 9 10 11