VM's network problem

gudvin.dll

Dabbler
Joined
Jul 12, 2017
Messages
10
I create ubuntu vm on FreeNAS-11.3-U3.1 and i have a problem
VM's network is not working. I can connect to vm from VNC , but in vm i don't have network.
Code:
root@freenas[~]# ifconfig -a
re0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=82099<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
        ether e0:d5:5e:e6:b3:e8
        hwaddr e0:d5:5e:e6:b3:e8
        inet 192.168.10.101 netmask 0xffffff00 broadcast 192.168.10.255
        nd6 options=9<PERFORMNUD,IFDISABLED>
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
        inet 127.0.0.1 netmask 0xff000000
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        groups: lo
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 02:4a:06:89:7c:00
        nd6 options=9<PERFORMNUD,IFDISABLED>
        groups: bridge
        id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
        maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
        root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
        member: tap0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 5 priority 128 path cost 2000000
        member: vnet0.1 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 4 priority 128 path cost 2000
        member: re0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 1 priority 128 path cost 20000
vnet0.1: flags=8942<BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        description: associated with jail: torrents as nic: epair0b
        options=8<VLAN_MTU>
        ether e2:d5:5e:5b:d5:71
        hwaddr 02:76:d0:00:04:0a
        nd6 options=1<PERFORMNUD>
        media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
        status: active
        groups: epair
tap0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        description: Attached to ubuntu
        options=80000<LINKSTATE>
        ether 00:bd:33:8d:35:00
        hwaddr 00:bd:33:8d:35:00
        nd6 options=1<PERFORMNUD>
        media: Ethernet autoselect
        status: active
        groups: tap
        Opened by PID 26901

in virtual ubuntu i have one interface lo
if edit /etc/network/interfaces
Code:
auto enp0s4
iface enp0s4 inet dhcp

and
sudo ifconfig enp0s4 up
2020-08-07_22-01-29.png


in settings ubuntu VM i create NIC interface
2020-08-07_22-06-11.png

in network interfaces i have only re0


But if i run
sudo ip addr add 192.168.10.128/24 dev enp0s4
and
sudo ifconfig enp0s4 up
network working until reboot server
 
Last edited:
Top