Adding First IP in - FreeBSD KVM

1) Add the lines below in your /etc/rc.conf. Change Your-VPS-Main-IP-Addresswith the main IP of your VPS.

ifconfig_em0="inet Your-VPS-Main-IP-Address netmask 255.255.255.255 broadcast Your-VPS-Main-IP-Address"
static_routes="net1 net2"
route_net1="-net 192.99.21.254/32 Your-VPS-Main-IP-Address"
route_net2="default 192.99.21.254"

2) Add Nameserver in /etc/resolv.conf

nameserver 213.186.33.99

3) Enable network.

ifup em0
  • 0 Users Found This Useful
Was this answer helpful?