|
From: madhusudan r <mad...@ya...> - 2013-06-24 04:33:54
|
I'm trying to run an UML in IPv6 mode on a Linux (Ubuntu) box, and have not been successful with it. I could get the UML to boot up alright, but the interfaces do not seem to accept IPv6 addresses. The file /etc/config/network looks like this: config interface lan option ifname 'eth1' option proto 'static' option ip6addr '2001:220:abcd:70::10/64' Adding it manually doesn’t seem to help either: root@OpenWrt:/# ifconfig eth1 add 2001:220:abcd:70::10/64 ifconfig: socket(AF_INET6,2,0): Address family not supported by protocol root@OpenWrt:/# ip -f inet6 addr add dev eth1 2001:220:abcd:70::10/64 RTNETLINK answers: Operation not supported root@OpenWrt:/# ip -f inet6 addr add dev eth1 2001:220:abcd:70::10 RTNETLINK answers: Operation not supported root@OpenWrt:/# ip addr add dev eth1 2001:220:abcd:70::10/64 RTNETLINK answers: Operation not supported I referenced a few OpenWRT links that talk about how to enable IPv6 on the system, and believe I have it in place. Could you please help me understand what is missing or what is the problem? I'm not sure what relevant information to provide. Please let me know. This is what is displayed as the startup banner: BusyBox v1.19.4 (2013-02-10 13:17:40 GMT) built-in shell (ash) Enter 'help' for a list of built-in commands. _______ ________ __ | |.-----.-----.-----.| | | |.----.| |_ | - || _ | -__| || | | || _|| _| |_______|| __|_____|__|__||________||__| |____| |__| W I R E L E S S F R E E D O M ----------------------------------------------------- ATTITUDE ADJUSTMENT (Bleeding Edge, r33315) ----------------------------------------------------- * 1/4 oz Vodka Pour all ingredients into mixing * 1/4 oz Gin tin with ice, strain into glass. * 1/4 oz Amaretto * 1/4 oz Triple sec * 1/4 oz Peach schnapps * 1/4 oz Sour mix * 1 splash Cranberry juice ----------------------------------------------------- root@OpenWrt:/# root@(none):/# opkg install kmod-ipv6 Package kmod-ipv6 (3.2.15-1) installed in root is up to date. root@OpenWrt:/# Thanks! |
|
From: madhusudan r <mad...@ya...> - 2013-06-24 05:01:16
|
root@OpenWrt:/# uname -a Linux OpenWrt 3.2.15-00054-g0fccead-dirty #6 Thu Jun 20 22:19:27 IST 2013 x86_64 GNU/Linux I have a configured a bridge and a tap interface on the host system. The tap interface is bridged with eth1 of the UML. user@ubuntu-10784976:/etc/init.d$ ifconfig br1 br1 Link encap:Ethernet HWaddr 1a:65:a0:13:71:84 inet6 addr: 2001:220:abcd:70::1/64 Scope:Global BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) user@ubuntu-10784976:/etc/init.d$ ifconfig tap2 tap2 Link encap:Ethernet HWaddr 1a:65:a0:13:71:84 inet6 addr: fe80::1865:a0ff:fe13:7184/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:90644 errors:0 dropped:0 overruns:0 frame:0 TX packets:116 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:500 RX bytes:36438888 (36.4 MB) TX bytes:13932 (13.9 KB) user@ubuntu-10784976:/etc/init.d$ sudo brctl show bridge name bridge id STP enabled interfaces br0 8000.6af7bb7f21a5 no tap0 tap1 br1 8000.1a65a0137184 no tap2 ________________________________ From: madhusudan r <mad...@ya...> To: "use...@li..." <use...@li...> Sent: Monday, 24 June 2013 10:03 AM Subject: [uml-user] Configure UML to work in IPv6 mode I'm trying to run an UML in IPv6 mode on a Linux (Ubuntu) box, and have not been successful with it. I could get the UML to boot up alright, but the interfaces do not seem to accept IPv6 addresses. The file /etc/config/network looks like this: config interface lan option ifname 'eth1' option proto 'static' option ip6addr '2001:220:abcd:70::10/64' Adding it manually doesn’t seem to help either: root@OpenWrt:/# ifconfig eth1 add 2001:220:abcd:70::10/64 ifconfig: socket(AF_INET6,2,0): Address family not supported by protocol root@OpenWrt:/# ip -f inet6 addr add dev eth1 2001:220:abcd:70::10/64 RTNETLINK answers: Operation not supported root@OpenWrt:/# ip -f inet6 addr add dev eth1 2001:220:abcd:70::10 RTNETLINK answers: Operation not supported root@OpenWrt:/# ip addr add dev eth1 2001:220:abcd:70::10/64 RTNETLINK answers: Operation not supported I referenced a few OpenWRT links that talk about how to enable IPv6 on the system, and believe I have it in place. Could you please help me understand what is missing or what is the problem? I'm not sure what relevant information to provide. Please let me know. This is what is displayed as the startup banner: BusyBox v1.19.4 (2013-02-10 13:17:40 GMT) built-in shell (ash) Enter 'help' for a list of built-in commands. _______ ________ __ | |.-----.-----.-----.| | | |.----.| |_ | - || _ | -__| || | | || _|| _| |_______|| __|_____|__|__||________||__| |____| |__| W I R E L E S S F R E E D O M ----------------------------------------------------- ATTITUDE ADJUSTMENT (Bleeding Edge, r33315) ----------------------------------------------------- * 1/4 oz Vodka Pour all ingredients into mixing * 1/4 oz Gin tin with ice, strain into glass. * 1/4 oz Amaretto * 1/4 oz Triple sec * 1/4 oz Peach schnapps * 1/4 oz Sour mix * 1 splash Cranberry juice ----------------------------------------------------- root@OpenWrt:/# root@(none):/# opkg install kmod-ipv6 Package kmod-ipv6 (3.2.15-1) installed in root is up to date. root@OpenWrt:/# Thanks! ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ User-mode-linux-user mailing list Use...@li... https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user |
|
From: Michael R. <mc...@sa...> - 2013-06-24 14:49:03
|
Since you seem to have IPv6 module loaded, and IPv6 addresses in your
ifconfig output, but your ifconfig won't add it.
If your 'ifconfig' from busybox? Maybe it is too limited to do the work.
You mention WRT, which is why I suspect ifconfig is really at fault.
But, your ifconfig line seems wrong to me:
ifconfig eth1 inet6 2001:220:abcd:70::10/64 up
would seem to be the right incantation.
I usually do:
ip -6 add addr 2001:220:abcd:70::10/64 dev eth1
--
] Never tell me the odds! | ipv6 mesh networks [
] Michael Richardson, Sandelman Software Works | network architect [
] mc...@sa... http://www.sandelman.ca/ | ruby on rails [
|
|
From: madhusudan r <mad...@ya...> - 2013-06-25 03:54:14
|
You're right about 'ifconfig' belonging to busybox. But things work fine for IPv4 with exactly the same procedure. Also, in IPv6, eth1 comes up with link-local address; it just doesn't get assigned the specified address. Assigning the v6 address from the command-line works fine though. ________________________________ From: Michael Richardson <mc...@sa...> To: madhusudan r <mad...@ya...> Cc: "use...@li..." <use...@li...> Sent: Monday, 24 June 2013 8:17 PM Subject: Re: [uml-user] Configure UML to work in IPv6 mode Since you seem to have IPv6 module loaded, and IPv6 addresses in your ifconfig output, but your ifconfig won't add it. If your 'ifconfig' from busybox? Maybe it is too limited to do the work. You mention WRT, which is why I suspect ifconfig is really at fault. But, your ifconfig line seems wrong to me: ifconfig eth1 inet6 2001:220:abcd:70::10/64 up would seem to be the right incantation. I usually do: ip -6 add addr 2001:220:abcd:70::10/64 dev eth1 -- ] Never tell me the odds! | ipv6 mesh networks [ ] Michael Richardson, Sandelman Software Works | network architect [ ] mc...@sa... http://www.sandelman.ca/ | ruby on rails [ |
|
From: Michael R. <mc...@sa...> - 2013-06-25 18:07:00
|
madhusudan r <mad...@ya...> wrote:
> You're right about 'ifconfig' belonging to busybox. But things work fine for
> IPv4 with exactly the same procedure.
Right... so busybox ifconfig doesn't speak enough IPv6, perhaps.
> Also, in IPv6, eth1 comes up with link-local address; it just doesn't get
> assigned the specified address. Assigning the v6 address from the command-line
> works fine though.
Please say this more clearly.
You said that ifconfig failed.
Are you now saying that ifconfig works?
Or did you do ip?
--
] Never tell me the odds! | ipv6 mesh networks [
] Michael Richardson, Sandelman Software Works | network architect [
] mc...@sa... http://www.sandelman.ca/ | ruby on rails [
|
|
From: madhusudan r <mad...@ya...> - 2013-06-28 06:30:21
|
I tried this with an image from a fresh build and the interfaces come up alright. Thanks for your answers/comments. ________________________________ From: Michael Richardson <mc...@sa...> To: madhusudan r <mad...@ya...> Cc: "use...@li..." <use...@li...> Sent: Tuesday, 25 June 2013 11:35 PM Subject: Re: [uml-user] Configure UML to work in IPv6 mode madhusudan r <mad...@ya...> wrote: > You're right about 'ifconfig' belonging to busybox. But things work fine for > IPv4 with exactly the same procedure. Right... so busybox ifconfig doesn't speak enough IPv6, perhaps. > Also, in IPv6, eth1 comes up with link-local address; it just doesn't get > assigned the specified address. Assigning the v6 address from the command-line > works fine though. Please say this more clearly. You said that ifconfig failed. Are you now saying that ifconfig works? Or did you do ip? -- ] Never tell me the odds! | ipv6 mesh networks [ ] Michael Richardson, Sandelman Software Works | network architect [ ] mc...@sa... http://www.sandelman.ca/ | ruby on rails [ |