Class Exercises

Step 3 - Get the interfaces configured

  1. find out what interfaces you have

    netstat -in

  2. Find out which are ethernet and which are serial

    • common: ep0, ef0, pe0, xir0
    • kernel documentation in BSDI or Free BSD

  3. ifconfig interface to right network address and netmask

    • ifconfig ethernet form
      
      ifconfig ep0 206.167.191.20 netmask 255.255.255.0
      
      

    • ifconfig serial form (with /30 address)
      
      ifconfig this machines IP address remote machine IP address
      
      ifconfig ntwo0 206.167.177.18 206.167.177.17 netmask 255.255.255.242 linktype chdcl
      
      
  4. ifconfig sequence to set and check

    • ifconfig to change address

    • ifconfig form to check address
      ifconfig device
      

      
      ep0: ether flags=8863
              inet 206.167.191.135 netmask 0xffffff00 broadcast 206.167.191.255