Appreciate this is quite a basic question for serverfault but I'm quite stuck with a problem with static IP addressing on a FreeBSD server and I'm not greatly familiar with FreeBSD, but I've been asked to set one up as a VM.
I have been able to manually set up the static IP address and my /etc/rc.conf file looks like this:
hostname="freebsd" sshd_enable="YES" dumpdev="AUTO" ifconfig_hn0="inet 192.168.220.12 netmask 255.255.255.0" defaultrouter="192.168.220.1"
This is a VM running on a VMWare server (under Windows).
From inside the FreeBSD VM I can ping myself (192.168.220.12) but I cannot ping the router (192.168.220.1) and therefore cannot ping outside at all.
I've tried restarting networking and even rebooting the VM to no avail. Other VM's running on this server work fine with static IP addresses and there is nothing else on that IP address. FreeBSD has PF disabled, so it's not firewall related.
Here is the output of ifconfig (lo0 is also there, but I didn't include it):
root@freebsd:~ # ifconfig hn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=71b<RXCSUM,TXSUM,VLAN_HWTAGGING,TS04,TS06,LR0> ether 00:15:5d:dc:0f:06 inet 192.168.220.12 netmask 0xffffff00 broadcast 192.168.220.255 nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> media: Ethernet autoselect (10Gbase-T <full-duplex>) status: active
Happy to provide any other information with a view to resolving this.
Update : I have added output of
netstat -rn and
arp -an here http://imgur.com/a/BuYeY