Feilix,
Thanks for responding.
I don't any instructions in your post.
George...
Initially there's no ipv4 for eth0. Setting manually and trying to use the result is
shown in the following snippit:
fc34-bash 5.0 ~# ifconfig eth0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 54:04:a6:10:61:87 txqueuelen 1000 (Ethernet)
RX packets 7590 bytes 455400 (444.7 KiB)
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
fc34-bash 5.0 ~# export interface=eth0
fc34-bash 5.0 ~# ifconfig "$interface" 10.28.0.2 netmask 255.255.255.0
broadcast 255.255.255.255 up
fc34-bash 5.0 ~# route add default gw 10.28.0.1 "$interface"
fc34-bash 5.0 ~# cp resolv.conf /etc
'resolv.conf' -> '/etc/resolv.conf'
fc34-bash 5.0 ~# host
yahoo.com
yahoo.com has address 98.137.11.164
yahoo.com has address 74.6.143.25
yahoo.com has address 74.6.143.26
yahoo.com has address 74.6.231.20
yahoo.com has address 74.6.231.21
yahoo.com has address 98.137.11.163
yahoo.com has IPv6 address 2001:4998:124:1507::f000
yahoo.com has IPv6 address 2001:4998:124:1507::f001
yahoo.com has IPv6 address 2001:4998:24:120d::1:0
yahoo.com has IPv6 address 2001:4998:24:120d::1:1
yahoo.com has IPv6 address 2001:4998:44:3507::8000
yahoo.com has IPv6 address 2001:4998:44:3507::8001
yahoo.com mail is handled by 1
mta5.am0.yahoodns.net.
yahoo.com mail is handled by 1
mta6.am0.yahoodns.net.
yahoo.com mail is handled by 1
mta7.am0.yahoodns.net.
fc34-bash 5.0 ~# ping
yahoo.com
ping:
yahoo.com: Name or service not known <========= problem
fc34-bash 5.0 ~# getvb
#!/bin/bash -xv
cd /isos
+ cd /isos
/usr/bin/wget
https://www.virtualbox.org/wiki/Testbuilds -O
www.virtualbox.org+wiki+Testbuilds-index.html
+ /usr/bin/wget
https://www.virtualbox.org/wiki/Testbuilds -O
www.virtualbox.org+wiki+Testbuilds-index.html
--2020-12-24 21:02:56-- https://www.virtualbox.org/wiki/Testbuilds
Resolving
www.virtualbox.org (
www.virtualbox.org)... failed: Name or service not known.
wget: unable to resolve host address ‘www.virtualbox.org’
On Friday, December 25, 2020, 1:58:47 AM PST, test-request(a)lists.fedoraproject.org
<test-request(a)lists.fedoraproject.org> wrote:
------------------------------
Date: Fri, 25 Dec 2020 01:23:42 -0500
From: Felix Miata <mrmazda(a)earthlink.net>
Subject: Re: Trying to rename enp5s0 to eth0 fails
To: test(a)lists.fedoraproject.org
Message-ID: <c90bf7b3-cb52-c8e1-c327-42008656e72e(a)earthlink.net>
Content-Type: text/plain; charset=UTF-8
George R Goffe via test composed on 2020-12-25 01:32 (UTC):
I have been using this process to rename the NIC of a system:
1) add net.ifnames=0 biosdevname=0 to the GRUB_CMDLINE_LINUX in /etc/default/grub
2) grub2-mkconfig -o /boot/grub2/grub.cfg
3) copy this file to /etc/udev/rules.d/99-rename-to-eth0.rules
contents:
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="54:04:a6:10:61:87", ATTR{dev_id}=="0x0",
ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
This was working just fine but since the fresh install of FC34 x86_64
from
Fedora-Everything-netinst-x86_64-Rawhide-20201213.n.0.iso this procedure no longer
works. eth0 for ipv6 looks like it's working but eth0 for ipv4 init fails to
produce a usable network connection.
Is this a known bug or a George misteak?
Any help/hints/tips/suggestions would be greatly appreciated.
No problem doing it my way:
# uname -r
5.10.0-0.rc6.20201204git34816d20f173.92.fc34.x86_64
# cat /proc/cmdline
... net.ifnames=0 ...
# ls -Gg /etc/udev/rules.d/
total 0
# ip a
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
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group
default qlen 1000
link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
altname enp0s31f6
inet 192.168.xxx.xxx/24 brd 192.168.xxx.xxx scope global noprefixroute eth0
valid_lft forever preferred_lft forever
--
Evolution as taught in public schools, like religion,
is based on faith, not on science.
Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!
Felix Miata ***
http://fm.no-ip.com/
------------------------------