Skip to content

Disable ipv6

Andreas Hamacher requested to merge disableIPv6 into master

I have tested this role on massive004 and massive002 so centos7 and ubuntu. the test " posting below might be not nice to look at :(

before:

[ec2-user@massive004 ~]$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth00: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc pfifo_fast state UP group default qlen 1000
    link/ether fa:16:3e:bb:f8:1f brd ff:ff:ff:ff:ff:ff
    inet 172.16.204.66/21 brd 172.16.207.255 scope global noprefixroute dynamic eth00
       valid_lft 257227sec preferred_lft 257227sec
    inet6 fe80::f816:3eff:febb:f81f/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
3: mlx0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 4200 qdisc mq state UP group default qlen 1000
    link/ether 72:63:dc:e4:4c:03 brd ff:ff:ff:ff:ff:ff
    inet 172.16.197.66/21 brd 172.16.199.255 scope global noprefixroute mlx0
       valid_lft forever preferred_lft forever
    inet6 fdfd:eb1a:eb10:c000:7063:dcff:fee4:4c03/64 scope global noprefixroute dynamic 
       valid_lft 2591787sec preferred_lft 604587sec
    inet6 fe80::7063:dcff:fee4:4c03/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
4: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 52:54:00:1b:36:7b brd ff:ff:ff:ff:ff:ff
    inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
       valid_lft forever preferred_lft forever
5: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN group default qlen 1000
    link/ether 52:54:00:1b:36:7b brd ff:ff:ff:ff:ff:ff
    
after:
[ec2-user@massive004 ~]$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
2: eth00: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc pfifo_fast state UP group default qlen 1000
    link/ether fa:16:3e:bb:f8:1f brd ff:ff:ff:ff:ff:ff
    inet 172.16.204.66/21 brd 172.16.207.255 scope global noprefixroute dynamic eth00
       valid_lft 257080sec preferred_lft 257080sec
3: mlx0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 4200 qdisc mq state UP group default qlen 1000
    link/ether 72:63:dc:e4:4c:03 brd ff:ff:ff:ff:ff:ff
    inet 172.16.197.66/21 brd 172.16.199.255 scope global noprefixroute mlx0
       valid_lft forever preferred_lft forever
4: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 52:54:00:1b:36:7b brd ff:ff:ff:ff:ff:ff
    inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
       valid_lft forever preferred_lft forever
5: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN group default qlen 1000
    link/ether 52:54:00:1b:36:7b brd ff:ff:ff:ff:ff:ff
    
after reboot:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
2: eth00: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc pfifo_fast state UP group default qlen 1000
    link/ether fa:16:3e:bb:f8:1f brd ff:ff:ff:ff:ff:ff
    inet 172.16.204.66/21 brd 172.16.207.255 scope global noprefixroute dynamic eth00
       valid_lft 259165sec preferred_lft 259165sec
3: mlx0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 4200 qdisc mq state UP group default qlen 1000
    link/ether 72:63:dc:e4:4c:03 brd ff:ff:ff:ff:ff:ff
    inet 172.16.197.66/21 brd 172.16.199.255 scope global noprefixroute mlx0
       valid_lft forever preferred_lft forever
4: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 52:54:00:1b:36:7b brd ff:ff:ff:ff:ff:ff
    inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
       valid_lft forever preferred_lft forever
5: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN group default qlen 1000
    link/ether 52:54:00:1b:36:7b brd ff:ff:ff:ff:ff:ff
    
ubuntu@massive002:~$ ip a before
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth00: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc fq_codel state UP group default qlen 1000
    link/ether fa:16:3e:50:9a:f9 brd ff:ff:ff:ff:ff:ff
    inet 172.16.200.246/21 brd 172.16.207.255 scope global dynamic noprefixroute eth00
       valid_lft 160699sec preferred_lft 160699sec
    inet6 fe80::f816:3eff:fe50:9af9/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
3: mlx0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 4200 qdisc mq state UP group default qlen 1000
    link/ether 72:63:20:37:17:06 brd ff:ff:ff:ff:ff:ff
    inet 172.16.193.246/21 brd 172.16.199.255 scope global noprefixroute mlx0
       valid_lft forever preferred_lft forever
    inet6 fdfd:eb1a:eb10:c000:9d8b:61b:c6f6:fee3/64 scope global temporary dynamic 
       valid_lft 603310sec preferred_lft 84316sec
    inet6 fdfd:eb1a:eb10:c000:75de:833b:6025:8f5e/64 scope global temporary deprecated dynamic 
       valid_lft 517506sec preferred_lft 0sec
    inet6 fdfd:eb1a:eb10:c000:fca2:b148:457f:890/64 scope global temporary deprecated dynamic 
       valid_lft 431701sec preferred_lft 0sec
    inet6 fdfd:eb1a:eb10:c000:b586:cde2:fed:dfed/64 scope global temporary deprecated dynamic 
       valid_lft 345896sec preferred_lft 0sec
    inet6 fdfd:eb1a:eb10:c000:7c46:c491:48fc:2aa4/64 scope global temporary deprecated dynamic 
       valid_lft 260092sec preferred_lft 0sec
    inet6 fdfd:eb1a:eb10:c000:d1dc:59d0:e98:7f15/64 scope global temporary deprecated dynamic 
       valid_lft 174287sec preferred_lft 0sec
    inet6 fdfd:eb1a:eb10:c000:11a8:b743:c68:a2cd/64 scope global temporary deprecated dynamic 
       valid_lft 88482sec preferred_lft 0sec
    inet6 fdfd:eb1a:eb10:c000:4c18:8c37:1447:ae70/64 scope global temporary deprecated dynamic 
       valid_lft 2678sec preferred_lft 0sec
    inet6 fdfd:eb1a:eb10:c000:7063:20ff:fe37:1706/64 scope global dynamic mngtmpaddr noprefixroute 
       valid_lft 2591952sec preferred_lft 604752sec
    inet6 fe80::7063:20ff:fe37:1706/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever    
       
ubuntu@massive002:~$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
2: eth00: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc fq_codel state UP group default qlen 1000
    link/ether fa:16:3e:50:9a:f9 brd ff:ff:ff:ff:ff:ff
    inet 172.16.200.246/21 brd 172.16.207.255 scope global dynamic noprefixroute eth00
       valid_lft 160675sec preferred_lft 160675sec
3: mlx0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 4200 qdisc mq state UP group default qlen 1000
    link/ether 72:63:20:37:17:06 brd ff:ff:ff:ff:ff:ff
    inet 172.16.193.246/21 brd 172.16.199.255 scope global noprefixroute mlx0
       valid_lft forever preferred_lft forever      

Merge request reports