Skip to content

Fail to disable IPv6 in default Raspbian #28

Open

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

Activity

  1. changed the title [-]Fail to disable IPv6 in dafault Raspbian[/-] [+]Fail to disable IPv6 in default Raspbian[/+] on Sep 15, 2015
  2. yasuhito commented on Sep 16, 2015

    @yasuhito
    Member

    Are there any handy way to detect Linux distro (how to tell whether you are running Raspbian)?

  3. self-assigned this
    on Sep 16, 2015
  4. d4tt commented on Sep 23, 2015

    @d4tt
    Author

    sorry, I'm not sure...
    How about (just an idea):

    • check if IPv6 is enabled or enable IPv6, before u disable

    or

    • disable IPv6 by adding flow which drop all packets involved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions