bhyve ubuntu vm can't ping gateway

I have ubuntu vm configure with static IP 192.168.8.7 but can't ping the gateway.

Code:
PING 192.168.8.1 (192.168.8.1) 56(84) bytes of data.
From 192.168.8.7 icmp_seq=1 Destination Host Unreachable
From 192.168.8.7 icmp_seq=2 Destination Host Unreachable

Below is output of vm configure ubuntu

Code:
loader="grub"
cpu=2
memory=2G
network0_type="virtio-net"
network0_switch="servers"
disk0_type="virtio-blk"
disk0_name="disk0.img"
uuid="e3a7a69a-4119-11e8-833f-782bcb4c9b2f"
network0_mac="58:9c:fc:08:b2:84"

Code:
sudo vm switch list
NAME     TYPE      IFACE       ADDRESS         PRIVATE  MTU  VLAN  PORTS
public   standard  vm-public   -               no       -    -     -
servers  standard  vm-servers  192.168.8.1/24  no       -    -     -


/etc/network/interfaces:

Code:
source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback
auto enp0s5
iface enp0s5 inet static
    address 192.168.8.7
    netmask 255.255.255.0
    gateway 192.168.8.1
    dns-nameservers 8.8.8.8

Any help is appreciated.
 
/etc/network/interfaces:

Code:
source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback
auto enp0s5
iface enp0s5 inet static
    address 192.168.8.7
    netmask 255.255.255.0
    gateway 192.168.8.1
    dns-nameservers 8.8.8.8

Default route? In BSD-speak:
netstat -finet -rn | grep default
 
Back
Top