[H-GEN] static IP on LAN dedian sarge

Gary Curtis gazilla at gmail.com
Tue Feb 22 23:27:34 EST 2005


On Wed, 23 Feb 2005 14:16:48 +1000, Mick <mickhowe at bigpond.net.au> wrote:
> [ Humbug *General* list - semi-serious discussions about Humbug and     ]
> [ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
> 
> I've just installed debian sarge (net install) and need to set it up to use
> static IP but 20 hours of trying have only resulted in broken networking and
> a tripling of ping times on other 3 machines on the LAN.
> 
> Can anyone help me with the complete, correct incantations to affect this
> magic please
> 
> /]/]ik
> 
> _______________________________________________
> General mailing list
> General at lists.humbug.org.au
> http://lists.humbug.org.au/cgi-bin/mailman/listinfo/general
> 


Assuming your...

1) network interface is eth0
2) network is C class 192.168.111.0
3) desired IP is 222
4) gateway is 127

add the following to /etc/network/interfaces

auto eth0
iface eth0 inet static
address 192.168.111.222
netmask 255.255.255.0
network 192.168.111.0
broadcast 192.168.111.255
gateway 192.168.111.127

Gaz
-- 
---------------------------------------------------------------------------------------------------
And remember, it's spelled Gary Curtis, but it's pronounced "Gazilla"




More information about the General mailing list