IPv6hostslinux fedora

Global configuration parameters

How can I enable/disable IPv6 globally?

In /etc/sysconfig/network  :

NETWORKING_IPV6=yes|no

Enable or disable global IPv6 initialization. Default: no

How can I enable forwarding between IPv6 enabled interfaces?

In /etc/sysconfig/network  :

IPV6FORWARDING=yes|no

Enable or disable global forwarding of incoming IPv6 packes on all interfaces. Default: no Note: Actual packet forwarding cannot be controlled per-device, use netfilter6 for such cases

How can enable/disable IPv6 configuration for all the interfaces?

In /etc/sysconfig/network  :

IPV6INIT=yes|no

Enable or disable IPv6 configuration for all interfaces. Default: value not set in this file Use with caution!

How can I enable/disable autoconfiguration on all the interfaces?

In /etc/sysconfig/network  :

IPV6_AUTOCONF=yes|no

Sets the default for device-based autoconfiguration. Default: yes if IPV6FORWARDING=no, no if IPV6FORWARDING=yes

How can I enable/diable router behaviour (not to accept router advertisment etc.) on a device ?

In /etc/sysconfig/network  :

IPV6_ROUTER=yes|no

Sets the default for device-based Host/Router behaviour. Default: yes if IPV6FORWARDING=yes, no if IPV6FORWARDING=no

How can enable automatic tunneling ?

In /etc/sysconfig/network  :

IPV6_AUTOTUNNEL=yes|no

Controls automatic IPv6 tunneling. Default: no. It is advised to not enable this feature since it is deprecated.

How can I setup default gateway ?

It can be useful if you don't or can't use autoconfiguration and Router advertisments. In /etc/sysconfig/network  :

IPV6_DEFAULTGW=<IPv6 address[%interface]> (optional)

Add a default route through specified gateway. An interface can be specified: required for link-local addresses.

    Examples:
      IPV6_DEFAULTGW="2001:db8:1234:5678::1"
        Add default route through 3ffe:ffff:1234:5678::1
      IPV6_DEFAULTGW="2001:db8:1234:5678::1%eth0"
        Add default route through 3ffe:ffff:1234:5678::1 and device eth0
      IPV6_DEFAULTGW="fe80::1%eth0"
        Add default route through fe80::1 and device eth0

How can I configure default gateways without specifying the address of the default geteway?

In /etc/sysconfig/network  :

IPV6_DEFAULTDEV=<interface> (optional)

Add a default route through specified interface without specifying next hop. Type of interface will be tested whether this is allowed.

    Examples:
      IPV6_DEFAULTDEV="eth0" INVALID example!
      IPV6_DEFAULTDEV="ppp0"
      IPV6_DEFAULTDEV="sit1"

    Examples for 6to4
      IPV6_DEFAULTDEV="tun6to4"
        Add default route through dedicated 6to4 tunnel device "tun6to4", if configured

How can I specify the pidfile for router advertisment daemon?

In /etc/sysconfig/network  :

IPV6_RADVD_PIDFILE=<pid-file> (optional)

Location of PID file for controlling radvd, see IPV6_CONTROL_RADVD. Default: "/var/run/radvd/radvd.pid"

   Example:
       IPV6_RADVD_PIDFILE="/some/other/location/radvd.pid"

How can ask radvd to adapt ppp or 6to4 configuration changes?

This can be important if the ppp session restarts or 6to4 reconfiguration takes place since the subnet behind the linux should use the new IPv6 prefix to generate new router advetisments.

In /etc/sysconfig/network  :

IPV6_RADVD_TRIGGER_ACTION=startstop|reload|restart|SIGHUP (optional)

How to trigger radvd in case of 6to4 or PPP action. Default: SIGHUP

startstop
radvd starts if interface goes up and stops if interface goes down using initscript call of radvd with related parameter
reload|restart
initscript of radvd is called with this parameter
SIGHUP
signal HUP is sent to radvd, pidfile must be specified, if not the default

Interface specific configuration parameters

The interface configuration is done in /etc/sysconfig/network-scripts/ifcfg-<interface-name> and /etc/sysconfig/network-scripts/ifcfg-<interface-name>:<alias-name>  files

The first defines an interface, and the second contains only the parts of the definition that are different in an "alias" (or alternative) interface.

How can I enable/disable IPv6 initialisation for certain interfaces ?

In /etc/sysconfig/network-scripts/ifcfg-<interface-name>

IPV6INIT=yes|no

Enable or disable IPv6 configuration for this interface. Default: no

How can I specify primary IPv6 address for certain interfaces?

In /etc/sysconfig/network-scripts/ifcfg-<interface-name>

IPV6ADDR=<IPv6 address>[/<prefix length>]

Specify a primary static IPv6 address here. It is optional, if normal host and a router advertisement daemon is on local link. It is required, if node is a router and interface should route packets

Note: if prefix length is omitted, 64 is assumed

Example:
        IPV6ADDR="2001:db8:0:5::1"
        IPV6ADDR="2001:db8:0:1::1/128"

How can I specify additonal (alias) addresses for certaininterfaces?

In /etc/sysconfig/network-scripts/ifcfg-<interface-name>

IPV6ADDR_SECONDARIES="<IPv6 address>[/<prefix length>] ..."

A list of secondary IPv6 addresses (e.g. useful for virtual hosting)

    Example:
        IPV6ADDR_SECONDARIES="3ffe:ffff:0:1::10 3ffe:ffff:0:2::11/128"

In /etc/sysconfig/network-scripts/ifcfg-<interface-name>

IPV6_MTU=<MTU of link>

This settings is optional. You cen define the MTU of this link. Note: Must be greater or equal to 1280.

   Example:
        IPV6_MTU="1280"

Campus6: IPv6hostslinux_fedora (last edited 2008-04-10 15:29:40 by localhost)