Networking question

Paolo paolo2 at taize.fr
Wed Oct 15 20:19:48 UTC 2008


Hello,

My connection to a Windows LAN is provided by a script which I was given, but 
don't understand, and which I've been using on Gutsy and Hardy.

Now it also seems to be working on Intrepid, but I wonder if, with the new 
networking capabilities of Intrepid, it is possible to do the configuration 
directly in the Network Manager?

The script is saved as /etc/dhcp3/dhclient-exit-hooks.d/cfg_static_routes
and looks like this:

#!/bin/sh
  # Add routes obtained by DHCP
  function process_static_routes() {
    while [ $# -ne 0 ]
    do
      host=$1
      gateway=$2
      shift; shift
      echo "add -host $host gw $gateway"
      route add -host $host gw $gateway
    done
  }
  if [ "$reason" = "BOUND" ]|| [ $reason == "REBOOT" ]
  then
  #  echo "static_routes = $new_static_routes"
     process_static_routes $new_static_routes
  fi

If anyone has some advice on what to try, I'd be grateful.

Paolo






More information about the ubuntu-users mailing list