hi everyone!

usually i use the default configuration for my network interfaces.

but now i'm in a different situation:

1.) I get my internet via wireless.
2.) I am connected via ethernet to a private (for ftp sharing) network.
3.) Ubuntu prior traffic via wired interfaces

heres my routing tabel by default.

root@hp-compaq-8510w:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface U 0 0 0 vmnet8 U 1 0 0 eth0 U 0 0 0 vmnet1 U 2 0 0 wlan0 U 1000 0 0 eth0 UG 0 0 0 eth0
as you can see:
1.) all traffic to anywhere is routed to the ethernet,
2.) but the internet gateway is and not the gw of eth.

wich would be the best mehtod for me? I use default all day, but at home I need to exchange the last line and the wlan0 line.

can you help me to write a script to solve my issue?

thanks alot

thanks for your help