Interface with 2 IPs ?!?!

Status
Not open for further replies.

cezarq

Dabbler
Joined
Feb 6, 2015
Messages
32
My network interface is showing 2 differents IPs addresses... Why and how can I fix it?
The correct IP is 192.168.1.3/24 and it is static.
upload_2016-10-24_13-37-44.png
 

Spearfoot

He of the long foot
Moderator
Joined
May 13, 2015
Messages
2,478
My network interface is showing 2 differents IPs addresses... Why and how can I fix it?
The correct IP is 192.168.1.3/24 and it is static.
View attachment 14341
Edit em0 under 'Network->Interfaces' and make sure you don't have an alias defined there.
 

pasiz

Explorer
Joined
Oct 3, 2016
Messages
62
Do you have any jails or plugins running.

Those are creating alias when vimage is not set.

like this:

upload_2016-10-24_19-38-22.png
 

cezarq

Dabbler
Joined
Feb 6, 2015
Messages
32
Ifconfig output?
Code:
# ifconfig
em0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
		options=98<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
		ether 00:0c:29:c5:8f:f5
		inet 192.168.1.3 netmask 0xffffff00 broadcast 192.168.1.255
		inet 192.168.1.212 netmask 0xffffff00 broadcast 192.168.1.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=600003<RXCSUM,TXCSUM,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>
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
		ether 02:e3:ac:c8:57:00
		nd6 options=1<PERFORMNUD>
		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: epair0a flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
				ifmaxaddr 0 port 4 priority 128 path cost 2000
		member: em0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
				ifmaxaddr 0 port 1 priority 128 path cost 20000
epair0a: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
		options=8<VLAN_MTU>
		ether 02:ff:20:00:04:0a
		nd6 options=1<PERFORMNUD>
		media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
		status: active
 
Last edited by a moderator:

pasiz

Explorer
Joined
Oct 3, 2016
Messages
62
Ahh, card is in promiscuous mode, must be related to your vm image networking...
 

cezarq

Dabbler
Joined
Feb 6, 2015
Messages
32
is vimage enabled on jail?
It was enabled... I just unchecked... Do I have to restart the server to check if the IP is still set?
 

pasiz

Explorer
Joined
Oct 3, 2016
Messages
62
I think it belongs to your vm settings, how network is routed. See also your vm config about network.
 

pasiz

Explorer
Joined
Oct 3, 2016
Messages
62
But if you nmap full port range, could you make assumption of the services offered
 

cezarq

Dabbler
Joined
Feb 6, 2015
Messages
32
But if you nmap full port range, could you make assumption of the services offered
Code:
nmap -sS 192.168.1.212

Starting Nmap 6.47 ( http://nmap.org ) at 2016-10-26 10:52 BRST
Nmap scan report for 192.168.1.212
Host is up (0.0014s latency).
Not shown: 997 closed ports
PORT	STATE SERVICE
80/tcp  open  http
199/tcp open  smux
443/tcp open  https
MAC Address: 00:0C:29:C5:8F:F5 (VMware)

Nmap done: 1 IP address (1 host up) scanned in 257.19 seconds


Code:
nmap -sS 192.168.1.3

Starting Nmap 6.47 ( http://nmap.org ) at 2016-10-26 11:53 BRST
Nmap scan report for 192.168.1.3
Host is up (0.00025s latency).
Not shown: 994 closed ports
PORT	STATE SERVICE
80/tcp  open  http
139/tcp open  netbios-ssn
199/tcp open  smux
443/tcp open  https
445/tcp open  microsoft-ds
548/tcp open  afp
MAC Address: 00:0C:29:C5:8F:F5 (VMware)

Nmap done: 1 IP address (1 host up) scanned in 251.96 seconds
 
Last edited by a moderator:

pasiz

Explorer
Joined
Oct 3, 2016
Messages
62
So you have http, https and snmp in listen. Have you configured something via console?
 
Status
Not open for further replies.
Top