Archive for the 'Network' Category


Basic NIS / yp Client Configuration ..

Mar 22, 2010 in Linux, Network

NIS = Network Information Service, YP = Yellow Pages

1. Add domain to file /etc/sysconfig/network


2. Add IP to NIS server to /etc/yp.conf file

domain mydomain server

3. Start it

/etc/init.d/ypbind start

wget usage example..

Mar 03, 2010 in Linux, Network, Web

wget –recursive -x -l 0 -e robots=off –wait 1 \
-U Mozilla –no-parent –user=user –password=password \

RedHat Enterprise Networking note..

Jun 18, 2009 in Linux, Network

The /etc/sysconfig/network file contains the

The /etc/sysconfig/network-scripts/ifcfg-eth0 file contains the

Setting the MAC address..

Aug 15, 2008 in Embedded, Linux, Network

On an embedded board (TS7260) I was testing, it turned out
that the MAC address of the network adapter was all FFs.

As a result, I was not able to network to the board at all.

Here is how to set the MAC address:

$ ifconfig eth0 down
$ ifconfig eth0 hw ether 00:80:48:BA:d1:20
$ ifconfig eth0 up


Basic network diagnostics tools..

Jul 07, 2008 in Linux, Network

  • — tcpdump
    — Example:
    tcpdump -enqti eth0 \( arp or icmp \)

    -e Print the link-level header on each dump line.

    -n Don’t convert addresses (i.e., host addresses, port numbers, etc.) to names.

    -q Quick (quiet?) output. Print less protocol information so output lines are shorter.

    -t Don’t print a timestamp on each dump line.

    -i Listen on interface.

  • — ping
  • — netstat -lptun

    l = listening sockets (-a for all), p = show program (app), t = tcp, u = unix, n = numeric address.

  • — arp
    — Example:
    arp -ne
  • — route
  • — traceroute