[Wylug-help] Help needed setting up server and LAN

Mike Goodman mike.goodman at zen.co.uk
Fri Aug 17 02:40:50 BST 2007


Mike Goodman wrote:
> Chris Davies MBCS wrote:
>> Mike Goodman wrote:
>>> I'd like to set up a server . . . .
>> Let's assume you have 192.168.0.* between the Router and the Server 
>> (eth0), and 192.168.1.* between your Server (eth1) and your Devices.
I used 192.168.48.* for eth1 but I'd be shocked if that was a problem . . .
>>
>> I like servers low and routers high, with DHCP somewhere in the 
>> middle. So I'd put the Router as 192.168.0.254, and your Server as 
>> 192.168.0.1 (external) and 192.168.1.1 (internal).
>>
>> 1. Turn off DHCP assignment on your router    // done
>> 2. Set your router to have a static IP address on your preferred 
>> "external" subnet, e.g. 192.168.0.254   // done
>> 3. Set your server eth0 (connected to the router) to have a static IP 
>> address on that same subnet, e.g. 192.168.0.1   // done
>> 4. Set your server eth1 (connected internally) to have a static IP 
>> address on a different subnet, e.g. 192.168.1.1   // done 
 From here:
>> 5. Configure the Router to have a route to 192.168.1.0/24 // Broken.

The router (coming out in sympathy with me, I presume ;o) ) doesn't
understand this syntax. I can get a specific IP address to a specific IP 
address, but not to a range.

To be able to post this response, I've had to shut down my half
completed server and, after a bit of fiddling, find a way to get the
router to revert to "factory defaults" and IP address 192.168.0.1 from
this workstation.

>> 6. Install something like "dhcp3-server" and configure 
>> /etc/dhpc3/dhcpd.conf (more on that later) 

eerrmm - shouldn't I have done this earlier? Now the connection's
broken, it won't download.

>>
>> Networks are defined in /etc/network/interfaces (see "man 
>> interfaces"), e.g.
>>
>> auto eth0    # External
>> iface eth0 inet static
>>         address 192.168.0.1
>>         netmask 255.255.255.0
>>         broadcast 192.168.0.255
>>     gateway 192.168.0.254
>>
>> auto eth1    # Internal
>> iface eth0 inet static
>>         address 192.168.1.1
>>         netmask 255.255.255.0
>>         broadcast 192.168.1.255

Hmm. Error message says can't read /etc/network/interfaces at every
attempt to make a connection and at shutdown. At boot, there's a message 
which flies by, to the effect that no network facilities are set up so 
failed. As always, this must be fixable - but where to start?

Best,

Mike

> _______________________________________________
> Wylug-help mailing list
> Wylug-help at wylug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/wylug-help
> 





More information about the Wylug-help mailing list