D'oh!

Christopher Aitken chris-n/jUll39koHNgV/OU4+dkA at public.gmane.org
Sat Jan 19 16:11:41 UTC 2008


Lennart Sorensen wrote:
> On Tue, Dec 11, 2007 at 01:58:48PM -0500, chris-n/jUll39koHNgV/OU4+dkA at public.gmane.org wrote:
>   
>> Interesting that on another machine (ubuntu as well) the entire contents of 
>> /etc/network/interfaces is, 
>>
>> auto lo
>> iface lo inet loopback 
>>
>> It doesn't have an entry for an Internet connection at all - yet I have 
>> Internet connectivity. It makes you wonder if this file is being referred 
>> to at all (for Internet, anyway). 
>>     
>
> It probably uses network manager along with udev and simply runs dhcp by
> default on any interface that doesn't have a configuration.
>
>   
>> Well, my router documentation instructed that the gateway (router address) 
>> is 192.1.68.0.1 
>>     
>
> Sure, IF that router is your internet connection.  If it is not, then
> that router isn't really the router.  I have run a wireless router in
> the past with nothing connected to the WAN port, and just connected the
> machines to the switch ports and then used one of those machines as the
> gateway with the internet connection attached directly to it.
>
>   
>> Okay, thanks. Now I have to configure a third computer with local address 
>> so it can print to the printer at another machine. Based on my 
>> understanding of your instructions, can I add these lines to it's 
>> /etc/network/interfaces file?: 
>>
>> iface eth1 inet static
>> address 192.168.0.4
>> netmask 255.255.255.0 
>>     
>
> Well that ought to work.  Assuming it is a debian like system that is.
>
> You can have either:
>
> internet --- eth1 [PC working as gateaway] eth0 --- switch/wifi AP/router --- other machines
> in which case eth1 would run dhcp or pppoe or whatever the connection
> needs, and either the switch/router runs dhcp but configured to use the
> eth0 address as gateway, or you disable dhcp server on the switch/router
> and run it on the gateway PC instead (which is what I have done) and
> let it assign the eth0 as gateway to the local dhcp clients.  In your
> case it actually sounds a bit like you aren't using dhcp at all on your
> switch/router and should just be pointing everybody with static IPs at
> the IP of the machine with the internet connection.
>
> other option:
> internet --- router --- all other machines
> In this case everybody can just run dhcp and use whatever the router
> tells them to use as gateway.
>
> So which are you doing?
>   
Internet (cable modem) --- router --- all other machines

The reason I keep harping on the little gui network configurator 
('neat') is not because I'm looking for pity and want a nice little gui 
network configurator to use in ubuntu (okay I /would/ like such an app 
(but not the pity)). I'm just trying to let you guys know that what I 
was doing on previous installations (successfully for years) was simply 
this:


                                             "ppc" (192.168.0.3 for 
local stuff like scp and printing; dhcp-asigned address for Internet)
                                              -
                                              -
                                              -    
internet (cable modem) --- router --- "cpc" (192.168.0.2 for local stuff 
like scp and printing; dhcp-asigned address for Internet)
                                              -
                                              -
                                              -
                                             "dpc" (192.168.0.4 for 
local stuff like scp and printing; dhcp-asigned address for Internet)


I'll use "ppc" as an example since it is the last fedora box (with the 
'neat' app) in the house. In 'neat' I simply click on the Ethernet 
Device eth0 and click 'Add' to add a new "Ethernet Device" which is then 
named eth0:1. To that device I assign "Static Address"  192.168.0.3/24. 
The eth0 Device is set to "Automatically obtain IP address settings via 
DHCP".

I do not understand IP anywhere near as well as you. I do, however, 
humbly insist that the above works (for me) very well. I simply have not 
been able to do this on the ubuntu machine.

Hopefully this text diagram will not be a mess when I email it.

Chris

> --
> Len Sorensen
> --
> The Toronto Linux Users Group.      Meetings: http://gtalug.org/
> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
>
>   

--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list