LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   LFS 8.2 stable Sysvinit Start /Stop network services ? (https://www.linuxquestions.org/questions/linux-from-scratch-13/lfs-8-2-stable-sysvinit-start-stop-network-services-4175629951/)

rabidlinux 05-18-2018 06:31 AM

LFS 8.2 stable Sysvinit Start /Stop network services ?
 
Hi Everyone,
I have finished all the way now with xfce4 and firefox installed and running. I now have lost all network
connections. Installed NetworkManager and Wicd. I can no longer ping anything. DHCPCD is installed also.
I didn't install the systemd version and I don't know much about init.
Thanks for any suggestions and help. Sorry to keep posting so much.


oot [ /sources ]# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether d4:c9:ef:e6:71:9d brd ff:ff:ff:ff:ff:ff
inet6 fe80::af86:28f7:1a5e:2d9a/64 scope link noprefixroute
valid_lft forever preferred_lft forever
3: wlo1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 2c:33:7a:8a:ff:1f brd ff:ff:ff:ff:ff:ff
inet 192.168.0.15/24 brd 192.168.0.255 scope global dynamic noprefixroute wlo1
valid_lft 84287sec preferred_lft 84287sec
inet6 fe80::d05e:e1ea:28a5:c6a4/64 scope link noprefixroute
valid_lft forever preferred_lft forever
root [ /sources ]# grep CONFIG_E1000E /boot/config-4.15.3

business_kid 05-18-2018 07:54 AM

What a load of crap from IP.Do you have ifconfig? Post
Code:

ifconfig -a
Lspci

done as root, not listed.

Let's also see
Code:

cat /etc/resolv.conf
route

I am suspicious that it's only looking on your own box.

rabidlinux 05-18-2018 08:01 AM

Hello Business Kid,
root [ /sources ]# ifconfig -a
enp0s25 Link encap:Ethernet HWaddr D4:C9:EF:E6:71:9D
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:1493 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 TX bytes:258066
Interrupt:17 Memory:d4700000-d4720000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Bcast:0.0.0.0 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:1822 errors:0 dropped:0 overruns:0 frame:0
TX packets:1822 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:131712 TX bytes:131712

wlo1 Link encap:Ethernet HWaddr 2C:33:7A:8A:FF:1F
inet addr:192.168.0.15 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3082 errors:0 dropped:0 overruns:0 frame:0
TX packets:2741 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1873561 TX bytes:351438

root [ /sources ]#

root [ /sources ]# lspci
00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 (rev 04)
00:16.3 Serial controller: Intel Corporation 7 Series/C210 Series Chipset Family KT Controller (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (Lewisville) (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
00:1c.2 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 3 (rev c4)
00:1c.3 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 4 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation QM77 Express Chipset LPC Controller (rev 04)
00:1f.2 IDE interface: Intel Corporation 7 Series Chipset Family 4-port SATA Controller [IDE mode] (rev 04)
00:1f.5 IDE interface: Intel Corporation 7 Series Chipset Family 2-port SATA Controller [IDE mode] (rev 04)
23:00.0 FireWire (IEEE 1394): JMicron Technology Corp. IEEE 1394 Host Controller (rev 30)
23:00.1 System peripheral: JMicron Technology Corp. SD/MMC Host Controller (rev 30)
23:00.2 SD Host controller: JMicron Technology Corp. Standard SD Host Controller (rev 30)
24:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8188EE Wireless Network Adapter (rev 01)
root [ /sources ]#

root [ /sources ]# cat /etc/resolv.conf
nameserver 192.168.0.1
#nameserver 8.8.8.8.

root [ /sources ]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default modem.Home 0.0.0.0 UG 600 0 0 wlo1
169.254.0.0 * 255.255.0.0 U 1000 0 0 wlo1
192.168.0.0 * 255.255.255.0 U 600 0 0 wlo1
root [ /sources ]#

rabidlinux 05-19-2018 07:29 AM

Thanks for all the looks
 
Not fixed yet but will try a few more things and go ahead and close this thread

business_kid 05-19-2018 02:56 PM

Ok. Ifconfig sees wlo1 (Gigabit thingy?) and ensp0s25, probably a WiFi thing

Resolv.conf sets a search order. It has 192.168.0.1 (hopefully router) and 8.8.8.8 (Google dns server) so that looks reasonable.

Route shows 0.0.0.0 as a default, certainly wrong. 192.168.0.1 should be the default afaict. You may function with 192.168.0.0 as a default route. The latter addresses the 192.168.0.x network, the first addresses the router. That's what you want.

169.254.0.0 shows that DHCP tried to connect but failed. If it's your router, try it with no encryption, no password. If not, remember to pass any password through wpa_passphrase. Man wpa_passphrase is your friend.

I gather that the connection is WiFi? Try 'man route' and use a few add and delete commands to get looking at 192.168.0.1 as the default. Delete the routes 0.0.0.0. & 169.254.0.0, kill the DHCP program, and try manually with
Code:

dhcpcd epsn0s25

OR

dhclient epsn0s25

EDIT: to do any network stuff, be root

rabidlinux 05-20-2018 07:17 AM

Thanks for your time B.K. I tried everything and still nothing. Me and the 8.2 SYSVINIT VERSION just don't seem to work together. Last year I built 8.1 systemd version
and had hardly any trouble.There is something I just can't get a clear understanding of the init commands like I can with systemdctl. I cloned it and will try on another
box. I spent 2 weeks on it and will give it a rest.
Thanks all


All times are GMT -5. The time now is 02:14 AM.