Manual NIC Setup

Manually setting up a network interface. This can come in handy if you need networking but don’t have any network scripts to rely upon. Setting up a NIC manually is no big deal, so here’s how to do it.

Setting up a Static IP

  1. load the network driver
  2. insmod your_drivername
  3. Set up your local loopback
  4. ifconfig lo
    route add lo
  5. Set up your ethernet card
  6. ifconfig eth0 netmask
    route add eth0
  7. View the results
    • ifconfig
    • FIXME: Insert ifconfig sample here
             showing the result of the above
             configuration statements.
    • route -n
    • route -n
      Kernel IP routing table
      Destination  Gateway  Genmask         Flags  MSS Window  irtt Iface UH       0 0          0 eth0   U        0 0          0 eth0       U        0 0          0 lo
      FIXME: Make sure the above listing is correct
             according to the above configuration statements.

Setting up a Dynamic IP:

You won’t have an UH entry in the route table.
You won’t assign an IP to eth0, you will run pump -i eth0

FIXME: Insert more content here showing the same
       ideas that the static ip showed.

Note: The following was able to get me up and going using some Linux install disks:

ifconfig lo
ifconfig eth0 netmask
route add eth0
route add lo

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.