Professional Web Applications Themes

IPv6 in rc.conf only: create gif0 / add route? - FreeBSD

Hey! I am trying to add my entire IPv6 setup into rc.conf. But it seems it won't automagically create gif0, nor will it add the default route. This is my rc.conf: # *** IPv6 configuration # ipv6_enable="YES" ipv6_gateway_enable="YES" ipv6_network_interfaces="gif0" ipv6_defaultrouter="fe80::%gif0" ipv6_ifconfig_gif0="inet 213.183.143.59 213.121.24.85" ipv6_ifconfig_gif0="inet6 alias 2001:618:400:4572::1 prefixlen 64" ipv6_ifconfig_gif0="inet6 alias 2001:618:400:4572::2 prefixlen 64" ipv6_ifconfig_gif0="inet6 alias 2001:618:400:4572::3 prefixlen 64" ipv6_firewall_enable="YES" ipv6_firewall_type="open" rtadvd_enable="YES" rtadvd_interfaces="gif0" Is anybody able to tell what I lack? I certainly cannot ping6 6bone.net after reboot. Thanks! All the best, -- Fafa -- __________________________________________________ _________ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm...

  1. #1

    Default IPv6 in rc.conf only: create gif0 / add route?

    Hey!

    I am trying to add my entire IPv6 setup into rc.conf.
    But it seems it won't automagically create gif0, nor will
    it add the default route. This is my rc.conf:

    # *** IPv6 configuration
    #
    ipv6_enable="YES"
    ipv6_gateway_enable="YES"
    ipv6_network_interfaces="gif0"
    ipv6_defaultrouter="fe80::%gif0"
    ipv6_ifconfig_gif0="inet 213.183.143.59 213.121.24.85"
    ipv6_ifconfig_gif0="inet6 alias 2001:618:400:4572::1 prefixlen 64"
    ipv6_ifconfig_gif0="inet6 alias 2001:618:400:4572::2 prefixlen 64"
    ipv6_ifconfig_gif0="inet6 alias 2001:618:400:4572::3 prefixlen 64"
    ipv6_firewall_enable="YES"
    ipv6_firewall_type="open"
    rtadvd_enable="YES"
    rtadvd_interfaces="gif0"

    Is anybody able to tell what I lack?
    I certainly cannot ping6 6bone.net after reboot.

    Thanks!

    All the best,
    -- Fafa

    --
    __________________________________________________ _________
    Sign-up for Ads Free at Mail.com
    http://promo.mail.com/adsfreejump.htm

    Fafa Guest

  2. #2

    Default RE: IPv6 in rc.conf only: create gif0 / add route?

    Since you are using a gif interface I assume you use a tunnel for your ipv6
    connection.

    Here is the relevant parts of my rc.conf which works
    (I use a H.E. ipv6 tunnel (http://tunnelbroker.net)
    but any gif tunnel should be similar)

    gif_interfaces="gif0" # create the gif
    gifconfig_gif0="62.140.220.90 64.71.128.83" # setup the ipv4 endpoints of
    the tunnel
    ipv6_enable="YES" # Set to YES to set up for IPv6.
    ipv6_gateway_enable="YES"
    ipv6_network_interfaces="gif0 fxp0" # List of network interfaces (or
    "auto").
    ipv6_defaultrouter="2001:470:1F01:FFFF::120" # Set to IPv6 default
    gateway
    ipv6_ifconfig_gif0="2001:470:1F01:FFFF::121 2001:470:1F01:FFFF::120
    prefixlen 128" #setup ipv6 tunnel
    ipv6_ifconfig_fxp0="2001:470:1F01:244::1 prefixlen 64" #set fxp0 ipv6
    address
    rtadvd_enable="YES" # Set to YES to enable an IPv6 router
    rtadvd_interfaces="fxp1 fxp0 wi0" # Interfaces rtadvd sends RA
    packets.


    Some lines may wrap.
    Vince
     

    Vince Guest

  3. #3

    Default RE: IPv6 in rc.conf only: create gif0 / add route?


    Hello again!

    Your answers were a bit out of my league:
     
    >
    > You have nothing to specify the ipv6 part of the gif tunnel. should
    > have 2 ipv6 addresses usualy on a /128.[/ref]

    Could you please provide me with an example?
     

    How should my gateway be?
     

    My network interface connecting me to the Internet is lnc0.
    Should rtadvd be advertising it instead?
     

    Now now :) You seem to know your way.

    All the best,
    -- Fafa
     [/ref][/ref]

    --
    __________________________________________________ _________
    Sign-up for Ads Free at Mail.com
    http://promo.mail.com/adsfreejump.htm

    Fafa Guest

  4. #4

    Default RE: IPv6 in rc.conf only: create gif0 / add route?


     

    Hi,
     

    Or badly worded ;)
     
    > >
    > > You have nothing to specify the ipv6 part of the gif tunnel. should
    > > have 2 ipv6 addresses usualy on a /128.[/ref]
    >
    > Could you please provide me with an example?[/ref]

    Ok I had a headstart here as I had already used a gif s an ipv4 over
    ipv4 tunnel and the HE tunnelbroker page gives you a basic config
    (for every operating system you're likely to use anyway which includes
    FreeBSD.) I'll go through the steps of creating the tunnel and then
    translate them to rc.conf variables.

    1) create the gif
    ifconfig gif0 create -- you have this with cloned_interfaces="gif0"

    2) the command they give was slightly wrong you need
    ifconfig gif0 inet 62.140.220.90 64.71.128.83 -- again you have this as
    ifconfig_gif0="inet 213.181.153.22 213.121.24.85"


    3) configure the ipv6 point to point tunnel
    ifconfig gif0 inet6 2001:470:1F01:FFFF::121 2001:470:1F01:FFFF::120
    prefixlen 128
    --- you are missing this command. I have
    ipv6_ifconfig_gif0="2001:470:1F01:FFFF::121 2001:470:1F01:FFFF::120
    prefixlen 128

    4) add you ipv6 default route (the far end of the tunnel makes sense)
    route -n add -inet6 default 2001:470:1F01:FFFF::120
    In rc.conf
    ipv6_defaultrouter="2001:470:1F01:FFFF::120"
     
    > Usualy it 
    >
    > How should my gateway be?
    >[/ref]

    Your first hop out onto the ipv6 internet, as provided by your tunnel
    provider.
     
    > on the gif 
    > wont see the 
    >
    > My network interface connecting me to the Internet is lnc0.
    > Should rtadvd be advertising it instead?
    >[/ref]

    Do you have any hosts that need to use rtadvd? (hosts on your network that
    are
    running rtsold/rtsol or equivalent? If not don't run it, if you do then run
    it
    on the interface those hosts are connected to.

    Good luck,
    Vince 
    >
    > Now now :) You seem to know your way.
    >
    > All the best,
    > -- Fafa
    > [/ref]
    > tunnel for [/ref]
    > use a H.E. [/ref]
    > should be [/ref]
    > interfaces [/ref]
    > IPv6 default [/ref]
    > 2001:470:1F01:FFFF::120 [/ref]
    > an IPv6 router [/ref]
    > rtadvd sends RA [/ref]
    > will it add [/ref]
    > prefixlen 64" [/ref]
    > prefixlen 64" [/ref]
    > prefixlen 64" [/ref]
    >
    > --
    > __________________________________________________ _________
    > Sign-up for Ads Free at Mail.com
    > http://promo.mail.com/adsfreejump.htm
    >
    > _______________________________________________
    > org mailing list
    > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    > To unsubscribe, send any mail to
    > "org"
    >[/ref]

    Vince Guest

Similar Threads

  1. IPv6
    By Agent in forum Linux / Unix Administration
    Replies: 0
    Last Post: December 3rd, 02:27 AM
  2. Replies: 2
    Last Post: September 22nd, 11:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139