Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

Command for assigning IPv6 address and MAC address on the interface

Reply
 
Thread Tools Display Modes
  #1  
Old 02-13-2008, 06:26 AM
Default Command for assigning IPv6 address and MAC address on the interface



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
Reply With Quote
  #2  
Old 02-13-2008, 02:47 PM
Pascal Hambourg
Guest
 
Posts: n/a
Default Re: Command for assigning IPv6 address and MAC address on the interface

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
  #3  
Old 02-14-2008, 01:53 AM
iceman
Guest
 
Posts: n/a
Default Re: Command for assigning IPv6 address and MAC address on theinterface


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
  #4  
Old 02-14-2008, 06:00 AM
Bill Marcum
Guest
 
Posts: n/a
Default Re: Command for assigning IPv6 address and MAC address on the interface

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
  #5  
Old 02-14-2008, 12:34 PM
Pascal Hambourg
Guest
 
Posts: n/a
Default Re: Command for assigning IPv6 address and MAC address on theinterface

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
  #6  
Old 02-14-2008, 11:28 PM
iceman
Guest
 
Posts: n/a
Default Re: Command for assigning IPv6 address and MAC address on theinterface

I tried out
modprobe ipv6

I get the error

FATAL: Module ipv6 not found


Reply With Quote
  #7  
Old 02-15-2008, 12:03 AM
Pascal Hambourg
Guest
 
Posts: n/a
Default Re: Command for assigning IPv6 address and MAC address on the interface

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
  #8  
Old 03-03-2008, 08:51 PM
D. Stussy
Guest
 
Posts: n/a
Default Re: Command for assigning IPv6 address and MAC address on the interface

"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

Tags
address, assigning, command, interface, ipv6, mac

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
Forum Jump


All times are GMT. The time now is 03:35 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.