Hello,

I try to setup a new webserver with IPv6 and IPv4 connection.  The IPv4 
connection works great.  I'm new in IPv6 and got some routing problems.  I 
called the provider support and he told me how to setup the gateway and the 
interface... but for linux and not for OpenBSD.  Maybe you can help me to setup 
the correct configuration, please?


$ ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33160
        priority: 0
        groups: lo
        inet 127.0.0.1 netmask 0xff000000
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:24:21:af:8d:c3
        priority: 0
        groups: egress
        media: Ethernet autoselect (100baseTX full-duplex)
        status: active
        inet 85.214.157.13 netmask 0xffffffff broadcast 85.214.157.13
        inet6 fe80::224:21ff:feaf:8dc3%em0 prefixlen 64 scopeid 0x1
        inet6 2a01:238:426e:5c00::1 prefixlen 56
em1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:24:21:af:8d:c4
        priority: 0
        media: Ethernet autoselect (none)
        status: no carrier
enc0: flags=0<> mtu 1536
        priority: 0
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33160
        priority: 0
        groups: pflog


$ cat /etc/mygate
85.214.128.1
fe80::1


$ cat /etc/hostname.em0
inet 85.214.157.13 0xffffffff
inet alias 85.214.157.5 0xffffffff
!route add 85.214.128.1 -link \$if: -interface
inet6 2a01:238:426e:5c00::1 56


$ route -n show
Routing tables

Internet:
Destination        Gateway            Flags   Refs      Use   Mtu  Prio Iface
default            85.214.128.1       UGS        4      251     -     8 em0
85.214.128.1       00:00:0c:9f:f0:02  UHLS       1        0     -     8 em0
85.214.157.5       127.0.0.1          UGHS       0        0 33160     8 lo0
85.214.157.5/32    link#1             UC         0        0     -     4 em0
85.214.157.13/32   link#1             UC         0        0     -     4 em0
127/8              127.0.0.1          UGRS       0        0 33160     8 lo0
127.0.0.1          127.0.0.1          UH         2        0 33160     4 lo0
224/4              127.0.0.1          URS        0        0 33160     8 lo0

Internet6:
Destination                        Gateway                        Flags   Refs  
    Use   Mtu  Prio Iface
::/104                             ::1                            UGRS       0  
      0     -     8 lo0
::/96                              ::1                            UGRS       0  
      0     -     8 lo0
::1                                ::1                            UH        14  
      0 33160     4 lo0
::127.0.0.0/104                    ::1                            UGRS       0  
      0     -     8 lo0
::224.0.0.0/100                    ::1                            UGRS       0  
      0     -     8 lo0
::255.0.0.0/104                    ::1                            UGRS       0  
      0     -     8 lo0
::ffff:0.0.0.0/96                  ::1                            UGRS       0  
      0     -     8 lo0
2002::/24                          ::1                            UGRS       0  
      0     -     8 lo0
2002:7f00::/24                     ::1                            UGRS       0  
      0     -     8 lo0
2002:e000::/20                     ::1                            UGRS       0  
      0     -     8 lo0
2002:ff00::/24                     ::1                            UGRS       0  
      0     -     8 lo0
2a01:238:426e:5c00::/56            link#1                         UC         0  
      0     -     4 em0
2a01:238:426e:5c00::1              00:24:21:af:8d:c3              HL         0  
      0     -     4 lo0
fe80::/10                          ::1                            UGRS       0  
      0     -     8 lo0
fe80::%em0/64                      link#1                         UC         0  
      0     -     4 em0
fe80::224:21ff:feaf:8dc3%em0       00:24:21:af:8d:c3              HL         0  
      0     -     4 lo0
fe80::%lo0/64                      fe80::1%lo0                    U          0  
      0     -     4 lo0
fe80::1%lo0                        link#4                         UHL        0  
      0     -     4 lo0
fec0::/10                          ::1                            UGRS       0  
      0     -     8 lo0
ff01::/16                          ::1                            UGRS       0  
      0     -     8 lo0
ff01::%em0/32                      link#1                         UC         0  
      0     -     4 em0
ff01::%lo0/32                      ::1                            UC         0  
      0     -     4 lo0
ff02::/16                          ::1                            UGRS       0  
      0     -     8 lo0
ff02::%em0/32                      link#1                         UC         0  
      0     -     4 em0
ff02::%lo0/32                      ::1                            UC         0  
      0     -     4 lo0


$ ping6 undeadly.org
ping6: UDP connect: No route to host

$ ping6 -I em0 undeadly.org
PING6(56=40+8+8 bytes) 2a01:238:426e:5c00::1 --> 2001:4978:129::1
ping6: sendmsg: No route to host
ping6: wrote undeadly.org 16 chars, ret=-1

$ ping6 -I lo0 undeadly.org
PING6(56=40+8+8 bytes) 2a01:238:426e:5c00::1 --> 2001:4978:129::1
ping6: sendmsg: No route to host
ping6: wrote undeadly.org 16 chars, ret=-1

$ ping6 fe80::1%lo0
PING6(56=40+8+8 bytes) fe80::1%lo0 --> fe80::1%lo0
16 bytes from fe80::1%lo0, icmp_seq=0 hlim=64 time=0.027 ms
16 bytes from fe80::1%lo0, icmp_seq=1 hlim=64 time=0.012 ms
16 bytes from fe80::1%lo0, icmp_seq=2 hlim=64 time=0.012 ms

$ ping6 fe80::1%em0
PING6(56=40+8+8 bytes) fe80::224:21ff:feaf:8dc3%em0 --> fe80::1%em0
16 bytes from fe80::1%em0, icmp_seq=0 hlim=64 time=2.413 ms
16 bytes from fe80::1%em0, icmp_seq=1 hlim=64 time=0.676 ms
16 bytes from fe80::1%em0, icmp_seq=2 hlim=64 time=1.137 ms


Thank you and greetings
Christian
-- 
Preisknaller: GMX DSL Flatrate f|r nur 16,99 Euro/mtl.!
http://portal.gmx.net/de/go/dsl02

Reply via email to