Re: Correct place for networking commands in Debian?
On Mon, Dec 15, 2003 at 03:34:27PM +0000, Anthony Campbell wrote:
> To set up my ADSL router I have to do:
>
> ifconfig eth0 192.168.1.1 netmask 255.0.0.0 up
> route add default gw 192.168.1.2 eth0
>
>
> Where is the correct Debian place to put these - /etc/network/interfaces
> perhaps, or should they go in rc.local?
>
> Anthony
I think the subnet mask should be 255.255.0.0 at the least, more usually
255.255.255.0. See RFC 1597 - http://www.faqs.org/rfcs/rfc1597.html.
An IP address of 192.168.x.x with subnet mask 255.0.0.0 implies that
192.anything is on your network. But only 192.168.anything is actually
reserved for private use.
A
Reply to: