FreeBSD move to Proxmox , NICs sometimes can not work

mfaridi

Renowned Member
Oct 17, 2015
83
0
71
I have FreeBSD physical server . this server work for me 5 years , after 5 years , mainboard is fail and sometimes it can not turn ON , So I move this server to VM by Proxmox , everything is OK and my FreeBSD boot good ,
My FreeBSD has two NIC , one NIC with public IP and one NIC with private IP.
I do not know why sometime one NIC can not work good . for example , yesterday when I try to ssh to my server by 192.168.0.210 , I can not ssh , so I ssh to server with public IP and I ssh to server by 8.8.8.210, after ssh when I run ifconfig , I see em0 do not have IP , my rc,conf is correct , after reboot everything is OK and I can shh by 192.168.0.210 and 8.8.8.210 , but today I can not shh by 8.8.8.210 , ifconfig show me em1 has IP , but I can not connect to server ,
How I can test what is problem ?
 
Last edited:
sometime I see connection time out.
when I run this command in VM FreeBSD
Code:
/etc/rc.d/netif restart
I see this
Code:
Stopping network:ifconfig: ioctl (SIOCDIFADDR): Can't assign requested addressifconfig: ioctl (SIOCDIFADDR): Can't assign requested address
ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address
ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address
ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address
ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address
ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address
ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address
ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address
 lo0 em0 em1 pfsync0 pflog0.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 
    inet6 ::1 prefixlen 128 
    inet 127.0.0.1 netmask 0xff000000 
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING>
    inet 8.8.8.15 netmask 0xffffff00 broadcast 8.8.8.255
    ether 5a:b5:f1:74:77:9d
    media: Ethernet autoselect (1000baseTX <full-duplex>)
    status: active
em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING>
    inet 192.168.0.19 netmask 0xffffff00 broadcast 192.168.0.255
    inet 192.168.0.12 netmask 0xffffffff broadcast 192.168.0.12
    inet 192.168.0.13 netmask 0xffffffff broadcast 192.168.0.13
    inet 192.168.0.15 netmask 0xffffffff broadcast 192.168.0.15
    inet 192.168.0.16 netmask 0xffffffff broadcast 192.168.0.16
    inet 192.168.0.17 netmask 0xffffffff broadcast 192.168.0.17
    inet 192.168.0.18 netmask 0xffffffff broadcast 192.168.0.18
    inet 192.168.0.20 netmask 0xffffffff broadcast 192.168.0.20
    inet 192.168.0.100 netmask 0xffffffff broadcast 192.168.0.100
    ether 3a:ed:a6:3d:b0:a8
    media: Ethernet autoselect (1000baseTX <full-duplex>)
    status: active

this is my rc.conf
Code:
[root@shialocal ~]# cat /etc/rc.conf
hostname=mfaridi.net
# -- sysinstall generated deltas -- # Thu Feb 14 18:44:57 2008
# Created: Thu Feb 14 18:44:57 2008
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
blanktime="300"
saver="daemon"

defaultrouter="8.8.8.1"
defaultrouter="192.168.0.91"

ifconfig_em0="inet 8.8.8.15   netmask 255.255.255.0"
ifconfig_em1="inet 192.168.0.19  netmask 255.255.255.0"

inetd_enable="YES"
saver="daemon"
sshd_enable="YES"
usbd_enable="YES"

local_startup="/usr/local/etc/rc.d"

pf_enable="YES"                 # Enable PF (load module if required)
pf_rules="/etc/pf.conf"         # rules definition file for PF
pf_flags=""                     # additional flags for pfctl startup
pflog_enable="YES"              # start pflogd(8)
pflog_logfile="/var/log/pflog"  # where pflogd should store the logfile
pflog_flags=""                  # additional flags for pflogd startup


ifconfig_em1_alias0="inet 192.168.0.12 netmask 255.255.255.255"
ifconfig_em1_alias1="inet 192.168.0.13 netmask 255.255.255.255"
ifconfig_em1_alias2="inet 192.168.0.15 netmask 255.255.255.255"
ifconfig_em1_alias3="inet 192.168.0.16 netmask 255.255.255.255"
ifconfig_em1_alias4="inet 192.168.0.17 netmask 255.255.255.255"
ifconfig_em1_alias5="inet 192.168.0.18 netmask 255.255.255.255"
ifconfig_em1_alias6="inet 192.168.0.19 netmask 255.255.255.0"
ifconfig_em1_alias7="inet 192.168.0.20 netmask 255.255.255.255"
ifconfig_em1_alias8="inet 192.168.0.100 netmask 255.255.255.255"
 
Last edited:
Please help me to solve this problem
I do not have this problem with ESXi
 
Last edited:
Hi,

I don't see a Proxmox problem here

Can't assign requested addressifconfig: ioctl (SIOCDIFADDR): Can't assign requested address

=> check your configuration, you assigned the address 192.168.0.19 twice in rc.conf
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!