Skocz do zawartości

Gzubek4

Użytkownicy
  • Zawartość

    4
  • Rejestracja

  • Ostatnio

Posty napisane przez Gzubek4


  1. Wczoraj gdy wpisałem komendę:

     

    /sbin/ifconfig eth0 inet6 add 2001:bc8:2a8f:100::4/56

     

    udało się w końcu uruchomić adres ipv6 i działającą na nim stronę, ale dzisiaj rano znów nie działał i ruszył dopiero po restarcie serwera.

     

    ip -6 r l pokazuje ciś takiego:

    root@Geb-03:/# ip -6 r l
    2001:bc8:2a8f:100::/56 dev eth0 proto kernel metric 256  pref medium
    fe80::/64 dev eth0 proto kernel metric 256  pref medium
    default via fe80::281:c4ff:fef6:e917 dev eth0 proto ra metric 1024  expires 1714sec hoplimit 64 pref medium
    
    

    /etc/resolv.conf:

    domain online.net
    search online.net
    nameserver 62.210.16.6
    nameserver 62.210.16.7
    
    
    

  2. Według ich dokumentacji jest to: "Alternate configuration without SystemD", a ja mam ustawiony start dhclient jako usługi systemowej skonfigurowanej w pliku: /etc/systemd/system/dhclient.service. Poniżej jego zawartość:

    [Unit]
    Description=dhclient for sending 00:03:00:01:6d:f0:f7:01:61:59 IPv6
    Wants=network.target
    Before=network.target
    
    [Service]
    Type=forking
    ExecStart=/sbin/dhclient -cf /etc/dhcp/dhclient6.conf -6 -P -v eth0
    
    [Install]
    WantedBy=multi-user.target
    

    zresztą dopisanie tych reguł do /etc/network/interfaces nic nie zmienia po restarcie nie ma żadnej poprawy.


  3. /etc/network/interfaces:

    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).
    
    source /etc/network/interfaces.d/*
    
    # The loopback network interface
    auto lo
    iface lo inet loopback
    
    # The primary network interface
    allow-hotplug eth0
    iface eth0 inet dhcp
    
    #IPV6 static configuration
    iface eth0 inet6 static
    address 2001:bc8:2a8f:100::4
    netmask 56
    

  4. Witam. Mam taki problem. Jakiś czas temu kupiłem mały serwer Dedibox w Online.net. Serwer ma przypisany jeden adres ipv4 oraz blok adresów ipv6/48. Ponieważ chciałem na tym serwerze postawić kilka małych stron - każda na innym IP postanowiłem uruchomić kilka własnych adresów ipv6 i przypisać je do tych stron. Postępowałem zgodnie z instrukcją online.net: https://documentation.online.net/en/dedicated-server/network/ipv6/prefix , ale niestety nie udało mi się nic osiągnąć. Po wydaniu komendy:

     

    ping6 ipv6.google.com dostaję takie coś:

    PING ipv6.google.com(par10s29-in-x0e.1e100.net (2a00:1450:4007:80f::200e)) 56 data bytes
    ^C
    --- ipv6.google.com ping statistics ---
    5 packets transmitted, 0 received, 100% packet loss, time 4087ms
    
    
    

    service networking status pokazuje:

    root@Geb-03:/home/benek# service networking status
    ● networking.service - Raise network interfaces
       Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
       Active: active (exited) since Tue 2017-07-11 11:20:06 CEST; 1h 11min ago
         Docs: man:interfaces(5)
      Process: 298 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=0/SUCCESS)
      Process: 294 ExecStartPre=/bin/sh -c [ "$CONFIGURE_INTERFACES" != "no" ] && [ -n "$(ifquery --read-environment --list --exclude=lo)" ] && udevadm settle (code=exited, status=1/FAILURE)
     Main PID: 298 (code=exited, status=0/SUCCESS)
        Tasks: 0 (limit: 4915)
       CGroup: /system.slice/networking.service
    
    lip 11 11:20:02 Geb-03 systemd[1]: Starting Raise network interfaces...
    lip 11 11:20:06 Geb-03 systemd[1]: Started Raise network interfaces.
    
    

    service dhclient status pokazuje:

    root@Geb-03:/home/benek# service dhclient status
    ● dhclient.service - dhclient for sending 00:03:00:01:6d:f0:f7:01:61:59 IPv6
       Loaded: loaded (/etc/systemd/system/dhclient.service; enabled; vendor preset: enabled)
       Active: active (running) since Tue 2017-07-11 11:20:59 CEST; 1h 11min ago
      Process: 1336 ExecStart=/sbin/dhclient -cf /etc/dhcp/dhclient6.conf -6 -P -v eth0 (code=exited, status=0/SUCCESS)
     Main PID: 1345 (dhclient)
        Tasks: 1 (limit: 4915)
       CGroup: /system.slice/dhclient.service
               └─1345 /sbin/dhclient -cf /etc/dhcp/dhclient6.conf -6 -P -v eth0
    
    lip 11 11:20:59 Geb-03 dhclient[1336]: RCV:  | X-- t1 - renew  +43200
    lip 11 11:20:59 Geb-03 dhclient[1336]: RCV:  | X-- t2 - rebind +172800
    lip 11 11:20:59 Geb-03 dhclient[1336]: RCV:  | X-- [Options]
    lip 11 11:20:59 Geb-03 dhclient[1336]: RCV:  | | X-- IAPREFIX 2001:bc8:2a8f:100::/56
    lip 11 11:20:59 Geb-03 dhclient[1336]: RCV:  | | | X-- Preferred lifetime 7200.
    lip 11 11:20:59 Geb-03 dhclient[1336]: RCV:  | | | X-- Max lifetime 43200.
    lip 11 11:20:59 Geb-03 dhclient[1336]: RCV:  X-- Server ID: 00:01:00:01:1b:ac:bc:2d:10:60:4b:9b:0a:f4
    lip 11 11:20:59 Geb-03 dhclient[1336]: PRC: Bound to lease 00:01:00:01:1b:ac:bc:2d:10:60:4b:9b:0a:f4.
    lip 11 11:20:59 Geb-03 dhclient[1336]: RCV: Reply message on eth0 from 2001:bc8:2::2:235:2.
    lip 11 11:20:59 Geb-03 systemd[1]: Started dhclient for sending 00:03:00:01:6d:f0:f7:01:61:59 IPv6.
    
    

    Gdzie może być problem, co sprawdzić i poprawić ?

    Na serwerze jest zainstalowany Debian 9 i Nginx.

×