I am using latest Arch Linux. But whenever I start my PC, it sometimes gets an IP address but most of the time, it gives me stress. I am getting very confused, how can I make sure it is really setting DHCP IP?This is what I have:In rc.conf:DAEMONS=( ... network dhcpcd )On system boot I have in ~/.xinitrc ip link set dev eth0 upip link set dev eht1 updhcpcd -t 100But now, I have rebooted 10 times, and I do not get any IP address.Follow up:Yesterday i had interfaces eth0, eth1, lo. After this strange problem of IP. Now i am successfully boot back to my same BOX, same configurations.I do not have any eth1 anymoreNetwork cable was connected to eth1 (eth0 was not used because its in very messy place where i have lot of USB connected + Display cables connected)Why my eth1 completely disappeared? (i never saw this in CentOS, Fedora in my 1 years linux driving experience)
How to set IP adress automatically in Arch Linux?
linux;networking;arch linux
Some notes on your question, maybe it helps, hopefully:~/.xinitrc is not the right place for these settings, see for example here, in the ArchWikiDon't fight your distribution, ArchLinux's system startup is configured via /etc/rc.conf, which is pretty neat. This includes the network configuration, see again the ArchWiki for details, especially the part on DHCP IP.  Try to setup networking in the way it is described there and if this fails, it'd be good to have more information on the failure (logs, details about how it was configured).  As you can see, the ArchWiki is a valuable resource :)By the way, the eht1 is just a typo, right?Oh, another reason for using the distribution-specific way to configure networking, you can simply use /etc/rc.d/network restart to reconfigure (as root), so there should be no need to reboot.