FreeBSD 10.x, FreeBSD 11.x, FreeBSD 12.x
Populate the
/etc/rc.conf
file with the following text.
static_routes="linklocal"
route_linklocal="-net 169.254.0.0/16 -interface vtnet0"
ifconfig_vtnet0="inet 207.246.87.123 netmask 255.255.254.0"
defaultrouter="207.246.86.1"
Reboot the system.
reboot
CentOS 6, CentOS 7
Populate the
/etc/sysconfig/network-scripts/ifcfg-eth0
file with the following text.
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=207.246.87.123
NETMASK=255.255.254.0
GATEWAY=207.246.86.1
DNS1=108.61.10.10
Populate the
/etc/sysconfig/network-scripts/route-eth0
file with the following text.
169.254.0.0/16 dev eth0
Restart networking or reboot.
service network restart
Debian 7, Debian 8
Populate the
/etc/network/interfaces
file with the following text.
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 207.246.87.123
netmask 255.255.254.0
gateway 207.246.86.1
dns-nameservers 108.61.10.10
post-up ip route add 169.254.0.0/16 dev eth0
Restart networking or reboot.
systemctl restart networking.service
Debian 9
Populate the
/etc/network/interfaces
file with the following text.
auto lo
iface lo inet loopback
auto ens3
iface ens3 inet static
address 207.246.87.123
netmask 255.255.254.0
gateway 207.246.86.1
dns-nameservers 108.61.10.10
post-up ip route add 169.254.0.0/16 dev ens3
Restart networking or reboot.
systemctl restart networking.service
Fedora 24 - 28
Populate the
/etc/sysconfig/network-scripts/ifcfg-ens3
file with the following text.
DEVICE=ens3
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=static
NOZEROCONF=yes
IPADDR=207.246.87.123
NETMASK=255.255.254.0
GATEWAY=207.246.86.1
DNS1=108.61.10.10
Populate the
/etc/sysconfig/network-scripts/route-ens3
file with the following text.
169.254.0.0/16 dev ens3
Restart networking or reboot.
systemctl restart network.service
Fedora 29
Run the following commands to configure the public network.
nmcli con add con-name public-net ifname ens3 type ethernet ipv4.method 'manual' ipv4.addresses '207.246.87.123/23' ipv4.gateway '207.246.86.1' ipv4.dns ''
nmcli con mod public-net +ipv4.dns '108.61.10.10'
OpenBSD 6.0 - OpenBSD 6.2
Populate the
/etc/mygate
file with the following text.
207.246.86.1
Populate the
/etc/hostname.vio0
file with the following text.
inet 207.246.87.123 255.255.254.0 NONE
Populate the
/etc/resolv.conf
file with the following text.
nameserver 108.61.10.10
lookup file bind
Reboot the system.
reboot
OpenBSD 6.3, OpenBSD 6.4
Populate the
/etc/mygate
file with the following text.
207.246.86.1
Populate the
/etc/hostname.vio0
file with the following text.
inet 207.246.87.123 255.255.254.0 NONE
Populate the
/etc/resolv.conf
file with the following text.
nameserver 108.61.10.10
lookup file bind
Reboot the system.
reboot
Ubuntu 12.xx - Ubuntu 15.xx
Populate the
/etc/network/interfaces
file with the following text.
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 207.246.87.123
netmask 255.255.254.0
gateway 207.246.86.1
dns-nameservers 108.61.10.10
post-up ip route add 169.254.0.0/16 dev eth0
Start each interface or reboot the system.
ifup eth0
Ubuntu 16.xx, Ubuntu 17.04
Populate the
/etc/network/interfaces
file with the following text.
auto lo
iface lo inet loopback
auto ens3
iface ens3 inet static
address 207.246.87.123
netmask 255.255.254.0
gateway 207.246.86.1
dns-nameservers 108.61.10.10
post-up ip route add 169.254.0.0/16 dev ens3
Start each interface or reboot the system.
ifup ens3
Ubuntu 17.10, Ubuntu 18.xx
Populate the
/etc/netplan/10-ens3.yaml
file with the following text.
network:
version: 2
renderer: networkd
ethernets:
ens3:
dhcp4: no
addresses: [207.246.87.123/23]
gateway4: 207.246.86.1
nameservers:
addresses: [108.61.10.10]
routes:
- to: 169.254.0.0/16
via: 207.246.86.1
metric: 100
Update networking or reboot.
netplan apply
Windows Server 2012 R2, Windows Server 2016
To configure the main IPv4 manually:
- Open the windows control panel. You can access it from the start menu.
- Click "Network and Internet".
- Click "Network and Sharing Center".
- Click "Change adapter settings".
- Right click on the primary ethernet adapter, and click "Properties". The "Ethernet Properties" window will open.
- Select "Internet Protocol Version 4 (TCP/IPv4)", then click the "Properties" button. The "Internet Protocol Version 4 (TCP/IPv4) Properties" window will open.
- Check the box that reads "Use the following IP address:". Populate the fields:
- IP address:
207.246.87.123
- Subnet mask:
255.255.254.0
- Default gateway:
207.246.86.1
- Check the box that reads "Use the following DNS server addresses:". Populate the fields
- Preferred DNS server:
108.61.10.10
- Alternate DNS server:
(blank)
- Click "OK". Then click "OK" on the "Ethernet Properties" window. The main IPv4 has been configured manually. Note that it is normal for the connection to hiccup after pressing "OK".