In debian the right networking Setting for a static IP in "/etc/network/interfaces"

"/etc/network/interfaces" in IP static a for Setting networking right the debian In

If you want your computer to be the DHCP server of an ethernet network, using the IP address 192.168.1.100 for your computer and 192.168.1.101 or higher for the other computers, you can use these configuration settings:

Contents of "/etc/network/interfaces":

# The loopback network interface (always required)

auto lo

iface lo inet loopback

 

# Assign a static IP for this DHCP server through eth0:

auto eth0

iface eth0 inet static

address 192.168.1.100

netmask 255.255.255.0

network 192.168.1.0

broadcast 192.168.1.255

gateway 192.168.1.1

Restarting Networking:

/etc/init.d/networking restart



Saving the comment

Add comment

Required Please choose another name

biuquote
  • Comment
  • Preview
Loading

192.168.15.197