MLD-5.x > General

Ipv6 deaktivieren

(1/3) > >>

tramCS:
Hallo.

Weiß jemand, wie ich Ipv6 deaktivieren kann?

Grüße

clausmuus:
Meinst Du nur für die MLD oder in Deinem Heimnetz?

tramCS:
Hallo Claus.

Für die mld und persistent.

Danke
Christian

clausmuus:
Das geht per

--- Code: ---echo 1 > /proc/sys/net/ipv6/conf/eth0/disable_ipv6
--- End code ---
Wenn Du die Zeile in einem init Script einträgst, wird das bei jedem booten ausgeführt. Als Vorlage kannst Du das Script /etc/init.d/example nehmen.

tramCS:
Danke.

Leider führt er das angelete Script rc.local nicht aus.
Was habe ich übersehen ?

Spoiler (show / hide)#!/bin/sh                                                                                                                                             
                                                                                                                                                     
. /etc/init.d/rc.functions                                                                                                                           
                                                                                                                                                     
NAME=${0##*/}ME=${0##*/}                                                                                                                             
                                                                                                                                                     
case "$1" in                                                                                                                                         
        start)                                                                                                                                       
                echo "Starting $NAME:"                                                                                                               
                #                                                                                                                                     
                # add here your start actions                                                                                                         
                /bin/echo 1 >/proc/sys/net/ipv6/conf/eth0/disable_ipv6                                                                               
                #                                                                                                                                     
                check_status                                                                                                                         
                ;;                                                                                                                                   
        stop)                                                                                                                                         
                echo "Stopping $NAME:"                                                                                                               
                #                                                                                                                                     
                # add here your stop actions                                                                                                         
                /bin/echo 0 >/proc/sys/net/ipv6/conf/eth0/disable_ipv6                                                                               
                #                                                                                                                                     
                check_status                                                                                                                         
                ;;                                                                                                                                   
        restart)                                                                                                                                     
                $0 stop                                                                                                                               
                $0 start                                                                                                                             
                ;;                                                                                                                                   
                                                                                                                               
        resume)                                                                                                                                       
                echo "Resume $NAME:"                                                                                                                 
                #                                                                                                                                     
                # add here your resume actions                                                                                                       
                #                                                                                                                                     
                check_status                                                                                                                         
                ;;                                                                                                                                   
        suspend)                                                                                                                                     
                echo "Suspend $NAME:"                                                                                                                 
                #                                                                                                                                     
                # add here your suspend actions                                                                                                       
                #                                                                                                                                     
                check_status                                                                                                                         
                ;;                     
init)                                                                                                                                         
                #start=1     # enable start section                                                                                                   
                #stop=1      # enable stop section                                                                                                   
                #resume=1    # enable resume section                                                                                                 
                #suspend=1   # enable suspend section                                                                                                 
                #after=""    # init scripts that must be started before this                                                                         
                #before=""   # init scripts that should be started after this                                                                         
                ;;                                                                                                                                   
        *)                                                                                                                                           
                echo "Usage: $0 {start | stop | restart}" >&2                                                                                         
                exit 1               

Grüße

Navigation

[0] Message Index

[#] Next page

Go to full version