Menu

Konfiguracja z dhcp

/etc/network/interfaces

auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet dhcp

Konfiguracja ręczna

/etc/network/interfaces

auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet static
	address 254.254.254.2
	netmask 255.255.255.252
	network 254.254.254.0
	broadcast 254.254.254.3
	gateway 254.254.254.1
	hwaddress ether 0b:0b:0b:0b:0b:0b
	dns-nameservers 194.204.152.34 194.204.159.1
	dns-search dns.tpsa.pl

allow-hotplug eth1:1
iface eth0 inet static
	address 192.168.1.1
	netmask 255.255.255.0
	network 192.168.1.0
	broadcast 192.168.1.255

allow-hotplug eth1:2
iface eth0 inet static
	address 192.168.2.1
	netmask 255.255.255.0
	network 192.168.2.0
	broadcast 192.168.2.255
Napisz do mnie