Hi everyone,
I have just installed arch linux ver 4.0.4-1-ARCH on the BBB sdcard and successfully loaded from it. Currently I can access the BBB thru the uart serial(usb) port from my laptop, but I am facing the problem to set up the internet sharing by ethernet cable for the BBB.
I have read the article from <https://wiki.archlinux.org/index.php/Netctl> ,<https://wiki.archlinux.org/index.php/Dhcpd> and several other websites tutorial but failed to start anyway.
What I have done/created code so far:
1. In "/etc/systemd/network/eth0.network" my code is
$this->bbcode_second_pass_code('', '
[Match]
Name=eth0
[Network]
DHCP=no
[Address]
Address=192.168.2.22
#IPForward=yes
[Route]
#Gateway=192.168.1.1
')
2. In "/etc/systemd/system/dhcpd4@eth0.service" my code is
$this->bbcode_second_pass_code('', '
[Unit]
Description=IPv4 DHCP server on %I
Wants=network.target
After=network.target
[Service]
Type=forking
PIDFile=/run/dhcpd4.pid
ExecStart=/usr/bin/dhcpd -4 -q -pf /run/dhcpd4.pid %I
KillSignal=SIGINT
[Install]
WantedBy=multi-user.target
')
3. In "/etc/dhcpd.conf"
$this->bbcode_second_pass_code('', '
option domain-name-servers 192.168.1.1;
option subnet-mask 255.255.255.0;
option routers 192.168.1.100;
subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.101 192.168.2.250;
}
')
4. In "/etc/resolv.conf" my code is:
$this->bbcode_second_pass_code('', '
nameserver 192.168.1.1
')
Then from terminal, I typed:
ip link set dev eth0 up <--- no issue
systemctl enable dhcpd4@eth0.service <---no issue
sytemctl start dhcpd4@eth0.service <--- i got error "Job for dhcpd4@eth0.service failed. See "systemctl status dhcpd4@eth0.service" and "journalctl -xe" for details."
systemctl status dhcpd4@eth0.service <---i got message red highlight "Failed to start IPv4 DHCP server on eth0."
journalctl -xe <---i got message red highlight " /testcase-data/phandle-tests/consumer-a: arguments"
ifconfig <--- seems alright with "inet 192.168.2.22 netmask 255.255.255.0 broadcast 192.168.2.255"
After that i reboot, i got the loading error on "Failed to start IPv4 DHCP server on eth0", but still can login.
I am not sure why is it so complicated to just activate the eth0 via ethernet cable to get internet access from my laptop. I have been trying this for few weeks, just couldn't get it work. Please advice me on the detail workaround.. thanks.
additional note:
From my laptop- window 7
Under "Network Connections"
The beaglebone black connection was detected in "Local Area Connection"-
I got my internet service with wifi connection in "Wireless Network Connection"; Here, I have set the >Properties>Sharing>allow other network users to connect..>"Local Area Connection".