2007/10/23, Douglas A. Tutty <[EMAIL PROTECTED]>: > On Tue, Oct 23, 2007 at 02:42:40PM +0200, P?l Cs?nyi wrote: > > > > I have now two internet connection: > > one through eth1 and > > one through eth2 interface.
> > > > How can I controll which one to use for download some stuff from internet? > > By default route. > > Show us (ascii-art) how your network is set up. internet provider 1 internet provider 2 ------------------------------ ----------------------------- | | | | PPTP | ppp0 | eth0 usb cable modem __________|_____________________|______ | PC box Debian Etch gateway/router | ======================= | | eth1 eth2 LAN DMZ | | | | _______eth0___________ ____eth0______________ | PC box Debian Etch | | PC box Debian Etch | | Desktop / | | server | | Windows XP | ============= ============= > Show us your /etc/network/interfaces This is on the gateway: # connection to the internet provider 1 auto eth0 sks-tunnel iface eth0 inet dhcp iface sks-tunnel inet ppp provider sks-tunnel up /etc/network/ip-up down /etc/network/ip-down # connection to the LAN auto eth1 iface eth1 inet static address 192.168.1.1 netmask 255.255.255.0 # connection to the DMZ auto eth2 iface eth2 inet static address 192.168.2.1 netmask 255.255.255.0 # this is not yet set up # connection to the internet provider 2 # usb cable modem # auto eth3 # iface eth3 inet dhcp > Show us your # ifconfig This is on the gateway: eth0 Link encap:Ethernet HWaddr 00:02:44:71:10:11 inet addr:192.168.70.60 Bcast:192.168.70.255 Mask:255.255.255.0 inet6 addr: fe80::202:44ff:fe71:1011/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:41372 errors:0 dropped:0 overruns:0 frame:0 TX packets:32569 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:23956917 (22.8 MiB) TX bytes:5436842 (5.1 MiB) Interrupt:10 Base address:0xd800 eth1 Link encap:Ethernet HWaddr 00:E0:7D:FC:1A:B0 inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::2e0:7dff:fefc:1ab0/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:28672 errors:0 dropped:0 overruns:0 frame:0 TX packets:33740 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4035383 (3.8 MiB) TX bytes:21918350 (20.9 MiB) Interrupt:12 Base address:0xdc00 eth2 Link encap:Ethernet HWaddr 00:19:5B:FE:23:DE inet addr:192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0 inet6 addr: fe80::219:5bff:fefe:23de/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:14586 errors:0 dropped:0 overruns:0 frame:0 TX packets:14167 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:7789166 (7.4 MiB) TX bytes:7714425 (7.3 MiB) Interrupt:5 Base address:0xe000 ppp0 Link encap:Point-to-Point Protocol inet addr:212.200.112.79 P-t-P:212.200.112.4 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1446 Metric:1 RX packets:33055 errors:0 dropped:0 overruns:0 frame:0 TX packets:28087 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:21380544 (20.3 MiB) TX bytes:3567082 (3.4 MiB) -- Regards, Paul Csanyi http://www.freewebs.com/csanyi-pal/index.htm -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]