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

Re: Home network with Debian



On Fri, Dec 29, 2000 at 03:37:54PM -0700, JD Kitch wrote:
> On Fri, Dec 29, 2000 at 12:01:25AM -0600, will trillich wrote:
> > On Thu, Dec 28, 2000 at 10:35:33PM -0700, JD Kitch wrote:
> > > Is that the only file that needs to be changed?  How do I determine
> > > the IP, netmask, and gateway for eth1, and then for the internal
> > > machine?
> > i use 192.168.*.* for mine. my public linux box is also
> > privately 192.168.1.1, which is what all the other boxes
> > around here refer to as their gateway or default route.
> > other machines are anything from 192.168.1.2 to 192.168.254.254
> > and anything else in between.
> > 
> > 	# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
> > 
> > 	# The loopback interface
> > 	iface lo inet loopback
> > 
> > 	# my internal / private LAN section:
> > 	iface eth0 inet static
> > 		address 192.168.1.1
> > 		netmask 255.255.255.0
> > 		network 192.168.0.0
> > 		broadcast 192.168.1.255
> > 
> > 	# the part the 'rest of the world' can see
> > 	iface eth1 inet static
> > 		address 208.33.90.85
> > 		netmask 255.255.255.0
> > 		network 208.33.90.0
> > 		broadcast 208.33.90.255
> > 		gateway 208.33.90.84
> > 		# the gateway there is actually my cablemodem!
> 
> OK, this all helps.  I'm guessing I'll just pick an IP from that
> same block for the wife's machine.  Is that true, and if so will I
> point to my cable providers DNS server, or do I need to do something
> else internally?

right. here's my setup:
	mac 192.168.1.100
	mac2 192.168.1.101
	mac3 192.168.1.102
	win 192.168.1.200
		all pointing to '192.168.1.1' (as above) for their gateway
		(aka default route).
	linux 192.168.1.1
		which is also 208.33.90.85
		points to 208.33.90.84 as its default, being the cmodem

i suppose i could just as easily have used
	192.168.19.37
	192.168.40.219
but then i'd need to adjust my netmasks from
	255.255.255.0
to
	255.255.0.0

with my setup, i get a static ip and it never changes.
if yours moves around, you'll need dhcp, which is not
something i've needed, and not something i even begin
to understand...

-- 
See, if you were allowed to keep the money, you wouldn't
create jobs with it. You'd throw it in the bushes or
something.  But the government will spend it, thereby
creating jobs.      -- Dave Barry

will@serensoft.com    ***    http://www.dontUthink.com/

volunteer to document your experience for next week's
newbies -- http://www.eGroups.com/messages/newbieDoc



Reply to: