Skip to content

Fail to disable IPv6 in default Raspbian #28

@d4tt

Description

@d4tt

Hi, I tried 'hello_trema' with phut v0.6.6 on Raspbian(RPi2),
but "No such file or directory" error occurred at:

sh "sudo /sbin/sysctl -w net.ipv6.conf.#{bridge_name}.disable_ipv6=1 -q"

This is because Raspbian disalbes IPv6 by default, so you should enable IPv6 before disabling it.
For example, you should do:

$ sudo modprobe ipv6
$ echo ipv6 | sudo tee -a /etc/modules

ref. https://www.raspbian.org/RaspbianFAQ#How_do_I_enable_or_use_IPv6.3F

My environment:

$ ruby -v
ruby 2.2.3p173 (2015-08-18 revision 51636) [armv7l-linux-eabihf]
$ gem -v
2.4.5.1
$ ./bin/trema --version
trema version 0.5.1
$ ./bin/phut --version
phut version 0.6.6
$ uname -a
Linux raspberrypi 4.1.6-v7+ #812 SMP PREEMPT Thu Sep 10 12:16:06 BST 2015 armv7l GNU/Linux

Setup memo (detailed, but in Japanese):
https://gist.github.com/d4tt/a4c1364df9c35ca80085

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions