[H-GEN] static IP in debian testing

Josh Marshall josh at worldhosting.org
Wed Aug 31 22:03:32 EDT 2005


Use this for /etc/network/interfaces

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian 
installation
# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet static
        address 192.168.1.2
        netmask 255.255.255.0
        gateway 192.168.1.1
#iface eth0 inet dhcp

Mick wrote:

>[ Humbug *General* list - semi-serious discussions about Humbug and     ]
>[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
>
>I'm trying to set my debian testing to use static IP and can't make sense of 
>the startup scripts to add
>route add default gw 192.168.1.1 eth0
>
>can anyone tell me in which file to add this line, everything I've tried so 
>far fails
>
>/]/]ik
>
>_______________________________________________
>General mailing list
>General at lists.humbug.org.au
>http://lists.humbug.org.au/cgi-bin/mailman/listinfo/general
>  
>




More information about the General mailing list