Using apt-get on a non-default interface



Hi folks,

I'm setting up an iptables firewall with multiple nics.

With the fw not yet configured, I don't want to connect the
default interface (eth0) to the net just yet. So I want to
access the net temporarily through my lan interface (eth1).

Problem is apt-get wants to use the default interface (eth0)

So how do I tell apt-get to use eth1?

I could remove things from the routing table, but is there
another way to do this?

tia,

b.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: ethernet configuration
    ... interface calls it something like "rich format") and please stop ... allow-hotplug eth0 ... But specifying the MAC address didn't worked (he configured the ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • [SOLVED!!] Re: can i completely delete and recreate my network interfaces?
    ... PCI-E Fast Ethernet Controller ... recipe to restore my eth0 interface? ... i have just as little success trying to restore the wlan0 wireless ...
    (Fedora)
  • Re: [Fwd: FC9 Network Config]
    ... eth0: negotiated 100baseTx-HD, link ok ... eth1: no link ... eth2 is no link... ... Shutting down interface eth0: ...
    (Fedora)
  • eth0 not starting on bootup
    ... on boot is eth0. ... the eth0 interface is now no longer starting when the ... To Unsubscribe Go To ABOVE URL or send a message to: ...
    (RedHat)
  • Re: Re: Controlling eth0,eth1,... assignment order?
    ... wireless and ethernet access but interface naming is not important. ... eth0 external I/F and eth1 internal I/F. ... > interface and don't have a reason to care which card is designated eth0 ...
    (Debian-User)