Article 556QA LFS Version 9.1, Chapter 7.5.1 Creating Network Interface Configuration Files

LFS Version 9.1, Chapter 7.5.1 Creating Network Interface Configuration Files

by
Shah404
from LinuxQuestions.org on (#556QA)
Hello Users!

I'm currently on chapter 7.5.1, and i am confused how to edit the ifconfig.eth0 file.

I am a beginner in linux.
When i use the command
Code:cat /etc/udev/rules.d/70-persistent-net.rulesI get the output
Code:# net device r8169
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="f8:a9:63:8e:e2:7a", ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="enp8s0"so i renamed the file ifconfig.eth0 to ifconfig.enp8s0.
also i edited the IFACE to enp8s0.
but i dont know what to do about IP and GATEWAY.

on using ifconfig on host. This is what i get
Code:enp8s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether f8:a9:63:8e:e2:7a txqueuelen 1000 (Ethernet)
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

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)
RX packets 119791 bytes 162086004 (162.0 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 119791 bytes 162086004 (162.0 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlp10s0f0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.9 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::258a:248a:3db6:425b prefixlen 64 scopeid 0x20<link>
ether 90:48:9a:29:f4:b5 txqueuelen 1000 (Ethernet)
RX packets 5176059 bytes 4804866566 (4.8 GB)
RX errors 0 dropped 645732 overruns 0 frame 0
TX packets 2727830 bytes 515851935 (515.8 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0it shows the ip of wlp10s0f0 but nothing of enp8s0.

i am getting the gateway from this command
Code:route -n | egrep "Gateway|UG"as i saw someone had the same problem as me in this forum.

i am building lfs on my usb.
Sorry if i my question confuses you, i am a beginner.
Please help!!latest?d=yIl2AUoC8zA latest?i=4xOZIFJ9xJc:G6KD6JMdxWU:F7zBnMy latest?i=4xOZIFJ9xJc:G6KD6JMdxWU:V_sGLiP latest?d=qj6IDK7rITs latest?i=4xOZIFJ9xJc:G6KD6JMdxWU:gIN9vFw4xOZIFJ9xJc
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments