[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Simple NATed home network problem



On Sun, 2002-10-13 at 10:14, John Reinke wrote:
> Here's what I have in the file:
> 
> # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
> 
> # The loopback interface
> auto lo
> iface lo inet loopback
> 
> # The first network card - internet connection
> auto eth0
> iface eth0 inet dhcp
> 
> # The second network card - local network
> auto eth1
> iface eth1 inet static
> 	address 172.16.1.1
> 	netmask 255.255.255.0
> 	broadcast 172.16.1.255
> 	network 172.16.1.0
> 	gateway 172.16.1.1
You don't need the broadcast and network part. That's not what's wrong,
though. The gateway is what screws it. It adds a default route through
172.16.1.1, which is obviously wrong.As the default route given to you
by your ISP's DHCP server gets set before this one, it gets overridden.
You should use gateway for your default gateway and _only_ for that.
-- 
PGP public key: http://www.wolfheart.ro/pubkey.asc

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: