How to manually configure ethernet from Busybox

Vesta laguna-mc at mail.com
Fri May 3 10:48:10 UTC 2019


Hi,

I solved the issue myself, the problem was obvious, it's shown in the log.
Sure, network was unreachable because the computer has no IP address assigned. 192.168.15.100 is IP address of PC.
I just had to configure a static IP address on a computer, if DHCP is not running. This solved problem.

Your tips is helpful, you're right, I don't need to specify broadcast when I am specifying netmask.
So:
# ifconfig eth0 192.168.15.1 netmask 255.255.255.0


And agree, this is not a Busybox bug. But hope it isn't too criminal ;)

Regards,
Alex



> Sent: Wednesday, April 24, 2019 at 6:22 PM
> From: "walter harms" <wharms at bfs.de>
> To: busybox at busybox.net
> Subject: Re: How to manually configure ethernet from Busybox
>
> Hello Vesta,
>
> Bad news:
> this is the wrong ML for this question, There is no busybox bug.
>
> Good news:
> i use things like:
>  ifconfig eth0 192.168.15.1 netmask 255.255.255.0
>
> this is a working way.
>
> Hint:
> you may check the connection using tcpdump.
>
> re,
>  wh
>
>
>
> Am 20.04.2019 18:13, schrieb Vesta:
> > Hi,
> >
> > Linux version 2.6.26.5, ARM Linux Kernel on embedded device.
> > How to manually set up Ethernet connection from BusyBox v1.10.2 rescue shell (ash)?
> >
> > I mounted the main virtual file systems, then tried:
> >
> > # ifconfig lo 127.0.0.1
> > # ifconfig eth0 hw ether 88:75:56:05:2B:24
> > # ifconfig eth0 192.168.15.1 netmask 255.255.255.0 broadcast 192.168.15.255
> > # ifconfig eth0 up
> > # route add -net 192.168.15.0/24 eth0
> > # ifconfig eth0
> > eth0      Link encap:Ethernet  HWaddr 88:75:56:05:2B:24
> >           inet addr:192.168.15.1  Bcast:192.168.15.255  Mask:255.255.255.0
> >           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> >           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> >           collisions:0 txqueuelen:1000
> >           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
> >           Interrupt:22
> >
> > # ping 192.168.15.100
> > PING 192.168.15.100 (192.168.15.100): 56 data bytes
> >>From 192.168.15.100 icmp_seq=0 timed out
> > ... ...
> >
> > Device is also unreachable when ping it from computer.
> > ping 192.168.15.1
> > connect: Network is unreachable
> >
> >
> > Regards,
> >
> >
> > _______________________________________________
> > busybox mailing list
> > busybox at busybox.net
> > http://lists.busybox.net/mailman/listinfo/busybox
> >
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
>


More information about the busybox mailing list