image/svg+xml
Nastavení sítě (v Debian-like distribucích)
@lp6$ host marny.lab.spseol.cz
DHCP
nameserver 172.16.0.100
/etc/resolv.conf
root@marny$ aptitude install mc
allow-hotplug eth0iface eth0 inet dhcp address 172.16.6.2XX netmask 255.255.0.0 gateway 172.16.0.254
static
/etc/network/interfaces
linuxová distribuce
@marny$ ip address add 172.16.6.2XX/16 dev eth0
ruční nastavení
@marny$ ip route add default via 172.16.0.254
@marny$ mcedit /etc/resolv.conf
default gateway
switch
DNS
LAN
switch
DNS
router
root@marny$ ifup eth0
root@marny$ ifdown eth0