Dariusz on Software

Methods and Tools

About This Site

Software development stuff


Entries from November 2015.

Thu, 12 Nov 2015 15:57:01 +0000

cable-ethernetIn order to locate conflicting DHCP server in your LAN execute the following command:

sudo dhcpdump -i eth4 | awk '/IP:/{SRC=$2 " " $3} /OP:.*BOOTPREPLY/{ print "DHCP server found:", SRC; }'

The restart your PC network (use DHCP to get new IP). If you see more than one IP address here:

DHCP server found: (0:9:6b:a3:fc:4a) DHCP server found: (f8:d1:11:9e:1d:8b) DHCP server found: (0:9:6b:a3:fc:4a) DHCP server found: (f8:d1:11:9e:1d:8b) DHCP server found: (0:9:6b:a3:fc:4a)

Then you have two, conflicting DHCP servers in your network. You can use http://www.coffer.com/mac_find/ tool to locate the device type that causes the problems.

Tags: linux, networking.
Thu, 12 Nov 2015 11:29:13 +0000

consoleWhen you work over serial line on an embedded device usually the terminal size it set to 80x25.

There's an easy way, however, to setup your real terminal size, just add the following line to your profile script (~/.profile):

resize > /tmp/resize . /tmp/resize

resize command detects real terminal size and sets COLUMNS and ROWS parameters accordingly:

# resize COLUMNS=159;LINES=52;export COLUMNS LINES;

One just need to execute the output as sh commands (using source "." command).

Tags: linux.


Created by Chronicle v3.5