root:/etc/sysconfig# hostname
nameofmycomputer
echo "HOSTNAME=
nameofmycomputer; /etc/sysconfig/network
root:/etc/sysconfig# more network
HOSTNAME=nameofmycomputer
Now, try this
root:/etc/sysconfig# IP_address rose.lfs.org rose_lfs
outputs bash: IP_address: command not found
Ok, just do the cat command in the documentation. I chose the 192.168.1.1 because I want to work with apache eventually and this will help me understand that. 192.168.1.1 rose.lfs.org rose_lfs
root:/etc# more hosts
# Begin /etc/hosts (network card version)I have only one network card.
127.0.0.1 localhost
192.168.1.1 rose.lfs.org rose_lfs
# End /etc/hosts (network card version)
root:/sys/class/net# ls -l
total 0Running the for NIC loop does not give me the 70-persistent-net.rules file.
drwxr-xr-x 4 root root 0 Jun 17 12:47 eth0
drwxr-xr-x 4 root root 0 Jun 17 12:47 lo
Try, LW
$INTERFACE=eth0 udevadm test --action=add eth0
unable to open device '/syseth0' oops, try this. (from the lfs mailing list)
$INTERFACE=/sys/class/net/eth0 udevadm test --action=add /sys/class/net/eth0
The mailing list I was reading did not come up with a solution, alas. I am going to skip it. This is the output of the for command:
udev_rules_new: rules use 11472 bytes tokens (956 * 12 bytes), 7523 bytes buffer
udev_rules_new: temporary index used 7620 bytes (381 * 20 bytes)
udev_device_new_from_syspath: device 0x8c25100 has devpath '/class/net/eth0'
udev_device_new_from_syspath: device 0x8c34c50 has devpath '/class/net'
udevadm_test: UDEV_LOG=6
udevadm_test: DEVPATH=/class/net/eth0
udevadm_test: PHYSDEVPATH=/devices/pci0000:00/0000:00:0e.0
udevadm_test: PHYSDEVBUS=pci
udevadm_test: PHYSDEVDRIVER=8139too
udevadm_test: INTERFACE=/sys/class/net/eth0
udevadm_test: IFINDEX=2
udevadm_test: ACTION=add
udevadm_test: SUBSYSTEM=net
udevadm_test: MATCHADDR=00:30:1b:1e:b8:88
udevadm_test: MATCHIFTYPE=1
udevadm_test: MATCHDEVID=0x0
udevadm_test: COMMENT=net device ()
On my regular OS, there is a file: /etc/udev/rules.d/70-persistent-cd.rules
# more /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line.
# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:30:1b:1e:b8:88", ATTR{type}=="1", KERNEL=="eth*", N
AME="eth0"
No comments:
Post a Comment