Manual NIC Setup
Updated September 12, 2002
Created May 22, 2001


Autogenerated Site Map
Search this Site!:
Search this site powered by FreeFind

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 127.0.0.1
    route add 127.0.0.0 lo
    
  5. Set up your ethernet card
  6. ifconfig eth0 192.168.0.2 netmask 255.255.255.0
    route add 192.168.0.2 eth0
    
  7. View the results



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 127.0.0.1
ifconfig eth0 192.168.0.2 netmask 255.255.255.0
route add 192.168.0.2 eth0
route add 127.0.0.1 lo


Search this Site!:
Search this site powered by FreeFind

Homepage: http://www.cpqlinux.com
Site Map: http://www.cpqlinux.com/sitemap.html