Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
internet is not working after reboot, during livecd it works
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
hamza081
n00b
n00b


Joined: 03 Apr 2023
Posts: 4
Location: Paris, Fr

PostPosted: Mon Apr 03, 2023 6:03 pm    Post subject: internet is not working after reboot, during livecd it works Reply with quote

I installed gentoo from livecd iso image after configuration I finally reboot my system and booted from the new environment. But after reboot, my internet is not working. Even my Network card name is not shown in ifconfig command. lspci and modprobe commands also not working, gave me an error bash command not found

I run these network commands before reboot.

# nano /etc/systemd/network/50-dhcp.network
[Match]
Name=enp*
[Network]
DHCP=yes

Enable network and dns services at boot time:

# systemctl enable systemd-networkd.service
# systemctl enable systemd-resolved.service

Setup a machine id to allow DHCP to get an IP:
# systemd-machine-id-setup
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54795
Location: 56N 3W

PostPosted: Mon Apr 03, 2023 7:31 pm    Post subject: Reply with quote

hamza081,

Welcome to Gentoo.

The lspci command belongs to pciutils.
There is a similar command for USB to be found in usbutils.
You don't have them yet as you have not installed them.

ifconfig only shows interfaces that are 'up'
To see all interfaces its
Code:
ifconfig -a


Maybe
Code:
[Match]
Name=enp*
is not right for your system?

modprobe should work an its a part of the stage3
lsmod shows loaded modules.

Get back into your chroot. - Do not reinstall. Mount your filesytems, incluhing /proc /sys and /dev and perform the chroot steps.
Code:
emerge pciutils usbutils wgetpaste

Now you have lspci, lsusb and a tool for sharing command output and file content from the command line.

Try
Code:
wgetpaste -c 'lspci -nnk'
and share the link you get back.

You don't say if you want to use wired networking or wireless. There is a big difference in the setup.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
hamza081
n00b
n00b


Joined: 03 Apr 2023
Posts: 4
Location: Paris, Fr

PostPosted: Tue Apr 04, 2023 8:50 pm    Post subject: I want to use wireless network Reply with quote

I want to use the wireless network. Before this, I configured Gentoo system on the same laptop with the same configuration and it worked perfectly. But this time I am facing network issue.

Output of ifconfig -a command

Code:


GentooBro #ping 8.8.8.8
ping: connect: Network is unreachable

GentooBro # ifconfig -a
lo: flags=73  mtu 65536 inet 127.0.0.1 netmask 255.0.0.0
inet6:1 prefix len 128 scopeid 0x10 loop txqueuelen 1000 (Local Loopback)           
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

sito: flags=128<NOARP> mtu 1480
sit txqueuelen 1000 (IPv6-in-IPv4)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0  overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

GentooBro #
Back to top
View user's profile Send private message
hamza081
n00b
n00b


Joined: 03 Apr 2023
Posts: 4
Location: Paris, Fr

PostPosted: Tue Apr 04, 2023 9:36 pm    Post subject: wegetpaste -c 'lspci -nnk' --verbose Reply with quote

I run this command
Code:
wegetpaste -c 'lspci -nnk' --verbose


And got this output

Apparently nothing was received. perhaps the connection failed.
https://bpa.st/api/v1/paste
Resolving bpa.st... failed: Temperory failure in name resolution.
wget: unable to resolve host address 'bpa.st'
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54795
Location: 56N 3W

PostPosted: Wed Apr 05, 2023 7:30 am    Post subject: Reply with quote

hamza081,

lo: is your loopback interface and correctlf has inet 127.0.0.1
and inet6 ::1

sito: is an IPv6 to IPv4 tunnel endpoint. Its free with IPv6 in the kernel.

There are no real wired or wireless interfaces there.
For wired, that suggests that the kernel module is not loaded.
For wireless, you will need a kernel module and probably some firmware too.

To identify that, run
Code:
lspci -nnk
look in the output for the first line of the device you want to use. It will be somenting like
Code:
 6:00.0 Ethernet controller [0200]: Intel Corporation I211 Gigabit Network Connection [8086:1539] (rev 03)


We need its name and ID, that's the Intel Corporation I211 Gigabit Network Connection [8086:1539]
Its essential that there are no typos in the [8086:1539] part.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
hamza081
n00b
n00b


Joined: 03 Apr 2023
Posts: 4
Location: Paris, Fr

PostPosted: Wed Apr 05, 2023 12:59 pm    Post subject: lspci -nnk Reply with quote

I run lspci -nnk

Code:
6:00.0 Ethernet controller [0200]: Intel Corporation I211 Gigabit Network Connection [8086:1539] (rev 03)
I did not get this output you mentioned in your reply

Code:
lo: is your loopback interface and correctlf has inet 127.0.0.1
and inet6 ::1
yes my loopback has intel 127.0.0.1 and inet6 ::1

Code:
sito: is an IPv6 to IPv4 tunnel endpoint. Its free with IPv6 in the kernel.
sit txqueuelen 1000 (IPv6-in-Ipv4)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54795
Location: 56N 3W

PostPosted: Wed Apr 05, 2023 3:51 pm    Post subject: Reply with quote

hamza081,

That Intel network card is from my system. It's an example to show you what to look for in your lspci -nnk output.
We need to know what hardware you have to tell what to modprobe

lo and sit0 are not real interfaces. They will work but not reach any network, so on there own, they are not very useful.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum