/etc/network/interfaces
следующим образом:address 192.168.56.2
netmask 255.255.255.0
gateway 192.168.56.1
root@Leviev-Debian:/home/ruslan# ping 192.168.56.1
PING 192.168.56.1 (192.168.56.1) 56(84) bytes of data.
From 192.168.56.2 icmp_seq=1 Destination Host Unreachable
From 192.168.56.2 icmp_seq=2 Destination Host Unreachable
From 192.168.56.2 icmp_seq=3 Destination Host Unreachable
From 192.168.56.2 icmp_seq=4 Destination Host Unreachable
From 192.168.56.2 icmp_seq=5 Destination Host Unreachable
From 192.168.56.2 icmp_seq=6 Destination Host Unreachable
^C
--- 192.168.56.1 ping statistics ---
9 packets transmitted, 0 received, +6 errors, 100% packet loss, time 8047ms
pipe 3