Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Thinkpad T61 cannot get networking to work
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
ZappingLinux
Tux's lil' helper
Tux's lil' helper


Joined: 13 Oct 2017
Posts: 117
Location: Delft, Netherlands

PostPosted: Sat Oct 13, 2018 12:17 pm    Post subject: Thinkpad T61 cannot get networking to work Reply with quote

I did a basic install on an old thinkpad T61. I wanted to configure a working environment that would be as lightweight as possible and that would use openrc. Mainly to learn because I may want to switch from the heavy DE I have to a lighter one. Now I have very little experience with openrc and I barely understand networking. I always thought that networking in general is a complicated mess. Perhaps that is because I make it a complicated mess.

So I did this install from a minimal install CD. I configured the system at my girlfriends house using an ethernet cable but now that it sits at my place it somehow cannot connect to the network.
ifconfig shows the following (typed over by hand):
Code:

enp0s25: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
               ether 00:1e:37:1e:a2:9d  txqueuelen 1000 (ethernet)
               (packet info, all zero)
               device interrupt 20 memory 0xfe000000-fe020000

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu  65536
     inet  127.0.0.1  netmask  255.0.0.0
     inet6  ::1  prefixlen 128  scopeid  0x10<host>
     loop  txqueuelen  1000 (Local Loopback)
     (more packet info)


So what do I have already?
I have a simlink from net.lo -> net.enp0s25 and net.enp0s25 has been added to the default runlevel. I can see it boot up and start perfectly fine every time.
My /etc/resolv.conf is empty apart from 3 # lines that have been generated by dhcpcd. I feel like something is missing here but I do not know what. I thought of copying the resolv.conf from my current working gentoo laptop to the lenovo one.

dhcpcd is also in my rc default runlevel.
/etc/conf.d/hostname has a hostname as expected:
Code:

hostname="Gentooster"

/etc/conf.d/net has
Code:

dns_domain_lo="localdomain"
config_enp0s25="dhcp"

/etc/hosts
Code:

127.0.0.1 Gentooster.localdomain Gentooster
::1 localhost


I don't know if I forgot to mention something. My point is that I have difficulty understanding the protocol and would love it if someone could explain this to me. I find it difficult to understand the guides. These are the ones I read:

https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Base
https://wiki.gentoo.org/wiki/Complete_Handbook/Preparing_the_network

If your network configuration would appear to be broken, what would be the steps in order to fix it?
Also a kernel module is running. Again, it did work at my girlfriends house, but not here. Any help would be much appreciated!
Back to top
View user's profile Send private message
duane
Apprentice
Apprentice


Joined: 03 Jun 2002
Posts: 193
Location: Oklahoma City

PostPosted: Sat Oct 13, 2018 6:13 pm    Post subject: Re: Thinkpad T61 cannot get networking to work Reply with quote

ZappingLinux wrote:
So I did this install from a minimal install CD. I configured the system at my girlfriends house using an ethernet cable but now that it sits at my place it somehow cannot connect to the network.


This makes it sound like you're trying to use wifi at your current location. If that's the case, you'll need to take a look at this: https://wiki.gentoo.org/wiki/Wifi You'll also need to hook up to ethernet again, to download some more software, to set up for wifi.

If you're using ethernet and still can't connect, you might check your logs to see if your ethernet device changed names somehow:
Code:
# dmesg | grep -i renamed
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Oct 13, 2018 6:38 pm    Post subject: Reply with quote

ZappingLinux,

That enp0s25 appears in ifconfig is a good sign.

What does
Code:
dhcpcd enp0s25
do?
If all it well it will start enp0s25 and it will just work.

/etc/resolv.conf contains your nameservers.
Code:
nameserver 8.8.8.8
is a public namserver.

With no nameserver, your internet can only work using IP addresses.
That is
Code:
ping -4  google.com
will fail but
Code:
ping 216.58.206.110
will be fine.

Maybe your router is not sending nameservers?

Wifi setup is more steps and more packages.
_________________
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
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Sat Oct 13, 2018 7:42 pm    Post subject: Re: Thinkpad T61 cannot get networking to work Reply with quote

ZappingLinux wrote:
Code:
enp0s25: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
    ether 00:1e:37:1e:a2:9d  txqueuelen 1000 (ethernet)
    (packet info, all zero)
    device interrupt 20 memory 0xfe000000-fe020000

ZappingLinux ... that shows no inet, netmask, or broadcast address. This means dhcpcd is either failing to supply an address, or your hardware is not functioning correctly. Does 'dmesg' show the hardware initialisation, and no errors re firmware, or what-have-you? What hardware is this? ... please provide the output of the following:

Code:
# lspci -nnkv | sed -n '/Ethernet/,/^$/p'

ZappingLinux wrote:
dhcpcd is also in my rc default runlevel.

Remove it, net.enp0s25 is configured to start dhcpcd for the interface.

ZappingLinux wrote:
/etc/hosts:
127.0.0.1 Gentooster.localdomain Gentooster
::1 localhost

That is wrong, you've omitted 'localhost' as the loopback for ipv4, it should be:

/etc/hosts:
127.0.0.1 Gentooster.localdomain Gentooster localhost
::1 localhost

BTW, though capialisation is allowed in hostname, I'd avoid using it.

best ... khay
Back to top
View user's profile Send private message
ZappingLinux
Tux's lil' helper
Tux's lil' helper


Joined: 13 Oct 2017
Posts: 117
Location: Delft, Netherlands

PostPosted: Sun Oct 14, 2018 9:24 am    Post subject: Reply with quote

Thanks for all the replies! Unfortunately I went to visit my parents and decided to leave the machine at home. I will post the results of all the outputs when I am back at home!
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