Nowe posty

Autor Wątek: Manjaro - failed netctl@static.ens33.service  (Przeczytany 2304 razy)

Sheena

  • Gość
Manjaro - failed netctl@static.ens33.service
« dnia: 2014-06-14, 18:05:59 »
Witam,

jako, że skończyłam naukę HTML, CSS i JavaScript chciałam przystąpić do nauki PHP i MySQL. Znalazłam fajne tutoriale na instalację i konfigurację LAMP i LEMP na Arch Linux'a, bo z sieci jestem raczkująca.

http://www.tecmint.com/install-nginx-php-mysql-with-mariadb-engine-and-phpmyadmin-in-arch-linux/
http://www.tecmint.com/install-lamp-in-arch-linux/

Jednak już na początku pluje błędem w tym samym miejscu, czyli:

dla LEMP

[root@droplet1 iza]# netctl start static.ens33
netctl@static.ens33.service - Networking for netctl profile static.ens33
   Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static)
   Active: failed (Result: exit-code) since sob 2014-06-14 16:30:00 CEST; 21min ago
     Docs: man:netctl.profile(5)
  Process: 2138 ExecStart=/usr/lib/network/network start %I (code=exited, status=1/FAILURE)
 Main PID: 2138 (code=exited, status=1/FAILURE)

cze 14 16:30:00 droplet1 systemd[1]: Starting Networking for netctl profile static.ens33...
cze 14 16:30:00 droplet1 network[2138]: Starting network profile 'static.ens33'...
cze 14 16:30:00 droplet1 systemd[1]: netctl@static.ens33.service: main process exited, code=exited, status=1/FAILURE
cze 14 16:30:00 droplet1 systemd[1]: Failed to start Networking for netctl profile static.ens33.
cze 14 16:30:00 droplet1 systemd[1]: Unit netctl@static.ens33.service entered failed state.
cze 14 16:30:00 droplet1 network[2138]: Interface 'ens33' does not exist
cze 14 16:30:00 droplet1 network[2138]: Failed to bring the network up for profile 'static.ens33'
i dla LAMP taki sam. Starałam się użyć dokumentacji Arch Wiki i http://www.funtoo.org/IPv6_Networking, żeby coś zrobić w sprawie IPv6, ale coś nie wychodzi, więc przywróciłam ustawienia domyślne dla IPv6, żeby nic nie namieszać. Uzbierałam trochę informacji, które może się przydadzą i według których wyedytowałam plik /etc/netctl/static.ens33:

Description='A basic static ethernet connection'
Interface=ens33
Connection=ethernet
IP=static
Address=('192.168.2.101/24')
#Routes=('192.168.2.0/24 via 192.168.2.1')
Broadcast='192.168.2.255'
Gateway='192.168.2.1'
DNS=('192.168.2.1')

## For IPv6 autoconfiguration
#IP6=stateless

## For IPv6 static address configuration
#IP6=static
#Address6=('1234:5678:9abc:def::1/64' '1234:3456::123/96')
#Routes6=('abcd::1234')
#Gateway6='1234:0:123::abcd'
według tych sprawdzanych informacji:

ifconfig enp1s0
enp1s0: flags=4163  mtu 1500
        inet 192.168.2.101  netmask 255.255.255.0  broadcast 192.168.2.255
        inet6 fe80::225:11ff:fe00:8870  prefixlen 64  scopeid 0x20
        ether 00:25:11:00:88:70  txqueuelen 1000  (Ethernet)
        RX packets 37392  bytes 24925731 (23.7 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 37248  bytes 5370562 (5.1 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


/sbin/ip -6 addr show dev enp1s0
2: enp1s0: mtu 1500 qlen 1000
    inet6 fe80::225:11ff:fe00:8870/64 scope link
       valid_lft forever preferred_lft forever


[root@Iza iza]# /sbin/ip -6 route show dev enp1s0
fe80::/64  proto kernel  metric 256


[root@droplet1 iza]# route -A inet6 | grep -w enp1s0
fe80::/64                      ::                         U    256 0     0 enp1s0
ff00::/8                       ::                         U    256 1     0 enp1s0


[root@Iza iza]# /sbin/route -A inet6
Kernel IPv6 routing table
Destination                    Next Hop                   Flag Met Ref Use If
::1/128                                      ::                         U    256 0     0 lo
fe80::/64                                   ::                         U    256 0     0 enp1s0
::/0                                             ::                         !n   -1  1  1401 lo
::1/128                                       ::                         Un   0   1    10 lo
fe80::225:11ff:fe00:8870/128   ::                         Un   0   1     2 lo
ff00::/8                                      ::                         U    256 0     0 enp1s0
::/0                          ::                         !n   -1  1  1401 lo



[root@Iza iza]# ifconfig -a
enp1s0: flags=4163  mtu 1500
        inet 192.168.2.101  netmask 255.255.255.0  broadcast 192.168.2.255
        inet6 fe80::225:11ff:fe00:8870  prefixlen 64  scopeid 0x20
        ether 00:25:11:00:88:70  txqueuelen 1000  (Ethernet)
        RX packets 36841  bytes 24779869 (23.6 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 36642  bytes 5305630 (5.0 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10
        loop  txqueuelen 0  (Local Loopback)
        RX packets 172  bytes 12784 (12.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 172  bytes 12784 (12.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


nmcli dev list iface enp1s0 | grep IP4  
IP4.ADRES[1]:                           ip = 192.168.2.101/24, gw = 192.168.2.1
IP4.DNS[1]:                             192.168.2.1


[root@Iza iza]# dhclient -v enp1s0
Internet Systems Consortium DHCP Client 4.3.0
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/enp1s0/00:25:11:00:88:70
Sending on   LPF/enp1s0/00:25:11:00:88:70
Sending on   Socket/fallback
DHCPREQUEST on enp1s0 to 255.255.255.255 port 67
DHCPACK from 192.168.2.1
RTNETLINK answers: File exists
bound to 192.168.2.101 -- renewal in 3336 seconds.



[root@Iza iza]# dhclient -P -v enp1s0
Internet Systems Consortium DHCP Client 4.3.0
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on Socket/enp1s0
Sending on   Socket/enp1s0
PRC: Soliciting for leases (INIT).
XMT: Forming Solicit, 0 ms elapsed.
XMT:  X-- IA_PD 11:00:88:70
XMT:  | X-- Request renew in  +3600
XMT:  | X-- Request rebind in +5400
XMT: Solicit on enp1s0, interval 1040ms.
XMT: Forming Solicit, 1040 ms elapsed.
XMT:  X-- IA_PD 11:00:88:70
XMT:  | X-- Request renew in  +3600
XMT:  | X-- Request rebind in +5400
XMT: Solicit on enp1s0, interval 2000ms.
XMT: Forming Solicit, 3040 ms elapsed.
XMT:  X-- IA_PD 11:00:88:70
XMT:  | X-- Request renew in  +3600
XMT:  | X-- Request rebind in +5400
XMT: Solicit on enp1s0, interval 3860ms.
XMT: Forming Solicit, 6900 ms elapsed.
XMT:  X-- IA_PD 11:00:88:70
XMT:  | X-- Request renew in  +3600
XMT:  | X-- Request rebind in +5400
XMT: Solicit on enp1s0, interval 7410ms.
XMT: Forming Solicit, 14320 ms elapsed.
XMT:  X-- IA_PD 11:00:88:70
XMT:  | X-- Request renew in  +3600
XMT:  | X-- Request rebind in +5400
XMT: Solicit on enp1s0, interval 14500ms.
XMT: Forming Solicit, 28820 ms elapsed.
XMT:  X-- IA_PD 11:00:88:70
XMT:  | X-- Request renew in  +3600
XMT:  | X-- Request rebind in +5400
XMT: Solicit on enp1s0, interval 28390ms.
... i ciąg dalszy zamiast:
np.
Bound to *:546
Listening on Socket/enp3s0
Sending on   Socket/enp3s0
PRC: Confirming active lease (INIT-REBOOT).
XMT: Forming Rebind, 0 ms elapsed.
XMT:  X-- IA_PD a1:b2:cd:e2
XMT:  | X-- Requested renew  +3600
XMT:  | X-- Requested rebind +5400
XMT:  | | X-- IAPREFIX 1234:5:6700:890::/64
Potem testowałam na stronie http://test-ipv6.com/. wypluło, że IPv6 jest niewykrywalny:


        Your IPv4 address on the public Internet appears to be 87.172.xxx.xxx

   Your Internet Service Provider (ISP) appears to be DTAG Deutsche Telekom AG,DE

   No IPv6 address detected [more info]

   Good news! Your current configuration will continue to work as web sites enable IPv6.

   You appear to be able to browse the IPv4 Internet only. You will not be able to reach IPv6-only sites.

   Your DNS server (possibly run by your ISP) appears to have IPv6 Internet access.


      Moja karta sieciowa:

     
[root@droplet1 iza]# lspci -v
00:00.0 Host bridge: Intel Corporation 82945G/GZ/P/PL Memory Controller Hub (rev 02)
        Subsystem: Acer Incorporated [ALI] Device 0255
        Flags: bus master, fast devsel, latency 0
        Capabilities: [e0] Vendor Specific Information: Len=09
        Kernel driver in use: agpgart-intel
        Kernel modules: intel_agp

00:02.0 VGA compatible controller: Intel Corporation 82945G/GZ Integrated Graphics Controller (rev 02) (prog-if 00 [VGA controller])
        Subsystem: Acer Incorporated [ALI] Device 0255
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at fea80000 (32-bit, non-prefetchable) [size=512K]
        I/O ports at dc00 [size=8]
        Memory at d0000000 (32-bit, prefetchable) [size=256M]
        Memory at fea40000 (32-bit, non-prefetchable) [size=256K]
        Expansion ROM at [disabled]
        Capabilities: [90] MSI: Enable- Count=1/1 Maskable- 64bit-
        Capabilities: [d0] Power Management version 2
        Kernel driver in use: i915
        Kernel modules: i915

00:1b.0 Audio device: Intel Corporation NM10/ICH7 Family High Definition Audio Controller (rev 01)
        Subsystem: Acer Incorporated [ALI] Device 0255
        Flags: bus master, fast devsel, latency 0, IRQ 41
        Memory at fea38000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [50] Power Management version 2
        Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel

00:1c.0 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 1 (rev 01) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: 0000e000-0000efff                                                                                                                                                              
        Memory behind bridge: feb00000-febfffff                                                                                                                                                            
        Prefetchable memory behind bridge: 00000000fdf00000-00000000fdffffff                                                                                                                              
        Capabilities: [40] Express Root Port (Slot+), MSI 00                                                                                                                                              
        Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-                                                                                                                                        
        Capabilities: [90] Subsystem: Acer Incorporated [ALI] Device 0255                                                                                                                                  
        Capabilities: [a0] Power Management version 2                                                                                                                                                      
        Kernel driver in use: pcieport                                                                                                                                                                    
        Kernel modules: shpchp                                                                                                                                                                            
                                                                                                                                                                                                           
00:1d.0 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #1 (rev 01) (prog-if 00 [UHCI])                                                                                            
        Subsystem: Acer Incorporated [ALI] Device 0255                                                                                                                                                    
        Flags: bus master, medium devsel, latency 0, IRQ 23                                                                                                                                                
        I/O ports at d880 [size=32]                                                                                                                                                                        
        Kernel driver in use: uhci_hcd                                                                                                                                                                    
        Kernel modules: uhci_hcd                                                                                                                                                                          
                                                                                                                                                                                                           
00:1d.1 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #2 (rev 01) (prog-if 00 [UHCI])
        Subsystem: Acer Incorporated [ALI] Device 0255
        Flags: bus master, medium devsel, latency 0, IRQ 19
        I/O ports at d800 [size=32]
        Kernel driver in use: uhci_hcd
        Kernel modules: uhci_hcd

00:1d.2 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #3 (rev 01) (prog-if 00 [UHCI])
        Subsystem: Acer Incorporated [ALI] Device 0255
        Flags: bus master, medium devsel, latency 0, IRQ 18
        I/O ports at d480 [size=32]
        Kernel driver in use: uhci_hcd
        Kernel modules: uhci_hcd

00:1d.3 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #4 (rev 01) (prog-if 00 [UHCI])
        Subsystem: Acer Incorporated [ALI] Device 0255
        Flags: bus master, medium devsel, latency 0, IRQ 16
        I/O ports at d400 [size=32]
        Kernel driver in use: uhci_hcd
        Kernel modules: uhci_hcd

00:1d.7 USB controller: Intel Corporation NM10/ICH7 Family USB2 EHCI Controller (rev 01) (prog-if 20 [EHCI])
        Subsystem: Acer Incorporated [ALI] Device 0255
        Flags: bus master, medium devsel, latency 0, IRQ 23
        Memory at fea37c00 (32-bit, non-prefetchable) [size=1K]
        Capabilities: [50] Power Management version 2
        Capabilities: [58] Debug port: BAR=1 offset=00a0
        Kernel driver in use: ehci-pci
        Kernel modules: ehci_pci

00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1) (prog-if 01 [Subtractive decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=02, subordinate=02, sec-latency=32
        Capabilities: [50] Subsystem: Acer Incorporated [ALI] Device 0255

00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
        Subsystem: Acer Incorporated [ALI] Device 0255
        Flags: bus master, medium devsel, latency 0
        Capabilities: [e0] Vendor Specific Information: Len=0c
        Kernel driver in use: lpc_ich
        Kernel modules: intel_rng, lpc_ich, leds_ss4200

00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01) (prog-if 8a [Master SecP PriP])
        Subsystem: Acer Incorporated [ALI] Device 0255
        Flags: bus master, medium devsel, latency 0, IRQ 18
        I/O ports at 01f0 [size=8]
        I/O ports at 03f4
        I/O ports at 0170 [size=8]
        I/O ports at 0374
        I/O ports at ffa0 [size=16]
        Kernel driver in use: ata_piix
        Kernel modules: ata_piix, pata_acpi, ata_generic

00:1f.2 IDE interface: Intel Corporation NM10/ICH7 Family SATA Controller [IDE mode] (rev 01) (prog-if 8f [Master SecP SecO PriP PriO])
        Subsystem: Acer Incorporated [ALI] Device 0255
        Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 19
        I/O ports at d080 [size=8]
        I/O ports at d000 [size=4]
        I/O ports at cc00 [size=8]
        I/O ports at c880 [size=4]
        I/O ports at c800 [size=16]
        Capabilities: [70] Power Management version 2
        Kernel driver in use: ata_piix
        Kernel modules: ata_piix, pata_acpi, ata_generic

00:1f.3 SMBus: Intel Corporation NM10/ICH7 Family SMBus Controller (rev 01)
        Subsystem: Acer Incorporated [ALI] Device 0255
        Flags: medium devsel, IRQ 19
        I/O ports at 0400 [size=32]
        Kernel driver in use: i801_smbus
        Kernel modules: i2c_i801

01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)
        Subsystem: Acer Incorporated [ALI] Device 0255
        Flags: bus master, fast devsel, latency 0, IRQ 40
        I/O ports at e800 [size=256]
        Memory at febff000 (64-bit, non-prefetchable) [size=4K]
        Memory at fdff0000 (64-bit, prefetchable) [size=64K]
        Expansion ROM at febc0000 [disabled] [size=128K]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [70] Express Endpoint, MSI 01
        Capabilities: [ac] MSI-X: Enable- Count=2 Masked-
        Capabilities: [cc] Vital Product Data
        Kernel driver in use: r8169
        Kernel modules: r8169
PS: Z góry dziękuję za jakiekolwiek wskazówki. Czy jądro odpowiadające za zabezpieczenia systemu mogłoby  mieć jakiś wpływ 3.14.3-1-grsec?

Offline Paweł Kraszewski

  • Administrator
  • Guru
  • *****
  • Wiadomości: 3071
  • Lenistwo jest matką potrzeby = babcią wynalazku
    • Zobacz profil
Manjaro - failed netctl@static.ens33.service
« Odpowiedź #1 dnia: 2014-06-14, 21:31:58 »
Robienie tutoriala bez zrozumienia się kłania.

ens33 to nazwa interfejsu sieciowego zależna od modelu karty sieciowej i tego,  do którego kanału PCI jest podpięta -  taka jest u twórcy tutoriala . U Ciebie karta nazywa się enp1s0.

Do IPv6 (jak już koniecznie tego potrzebujesz) zainstaluj i uruchom  pakiet miredo.
Paweł Kraszewski
~Arch/Void/Gentoo/FreeBSD/OpenBSD/Specjalizowane customy

Sheena

  • Gość
Manjaro - failed netctl@static.ens33.service
« Odpowiedź #2 dnia: 2014-06-14, 23:29:49 »
Witam ponownie,

zmieniłam tę nazwę, to pomogło częściowo. Osoby mające taki problem, niech najpierw przed

netctl start static.twój_interfejs
spróbują ten kod:

ip link set twój_interfejs down
i na koniec sprawdzą sobie status, bo wiem, że trochę takich osób z tym problemem było. Z IPv6 poradzę już sobie sama. Dzięki.

ROZWIĄZANE [SOLVED]