226
Sítě / Re:Statický ARP záznam
« kdy: 26. 11. 2012, 16:08:48 »
Sietove zalezitosti treba drzat v /etc/network/interfaces a nie v RC.
Proste pod interface, tam kde je address, netmask, etc dopises up <command>
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.42
netmask 255.255.255.0
gateway 192.168.1.1
up ip addr add 192.168.1.43/24 dev eth0 label eth0:0
down ip addr del 192.168.1.43/24 dev eth0 label eth0:0
up ip addr add 192.168.1.44/24 dev eth0 label eth0:1
down ip addr del 192.168.1.44/24 dev eth0 label eth0:1
Proste pod interface, tam kde je address, netmask, etc dopises up <command>
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.42
netmask 255.255.255.0
gateway 192.168.1.1
up ip addr add 192.168.1.43/24 dev eth0 label eth0:0
down ip addr del 192.168.1.43/24 dev eth0 label eth0:0
up ip addr add 192.168.1.44/24 dev eth0 label eth0:1
down ip addr del 192.168.1.44/24 dev eth0 label eth0:1