Okay my 2p to this discussion
Set of useful tools that I use : netstat , ipconfig ,route
netstat -r ( will show you your routing table and what is being used as your default gateway )
example :
root@BOX:/home/student # netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
localnet * 255.255.255.0 U 0 0 0 eth1
default jeremiah 0.0.0.0 UG 0 0 0 eth1
root@isiah:/home/student #
to set the default gateway for your machine use the command :
<bold>route add default gw MY-IPADDRESS.HERE </bold>
to give your card an ip address type ( assuming that eth0 is your network device ) :
<bold>ipconfig eth0 MY-NEW-IP-ADDRESS.HERE</bold>
If you are setting up the machine in an existing networking environment you
can get away with just the above. ( customise to your situation )
If you have a fairly flexible dhcp setup you can still get away with the above
if you know the settings( of the router and the legal ip addresses )
To do dhcp properly you can edit the network-scripts found in /etc/network/
on Ubuntu.
man ip-up, man interfaces if you want to automate the above.
It does depend on what setup you have but this should be enough to point you in the
right direction.