Questions and Answers — VDSina

Local area network

How do I set up a local network?

12.02.2019 14:59 Employee Alexander Updated 30.07.2019 14:54 no comments yet
12.02.2019 14:59
Answers to the question — 1
Employee Misha

Within the framework of the location, it is possible to organize a local network between servers, for this the "Local network" option is available in the server settings.

 

lokalnaya-set-1.png

 

After activation, you need to configure the network interface according to the received IP.

 

Example settings for different operating systems:

 

CentOS 6,7

You need to create a file /etc/sysconfig/network-scripts/ifcfg-eth1 with the following contents

 

DEVICE=eth1
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=static
IPADDR=10.13.0.100
NETMASK=255.255.0.0
IPV6INIT=no

 

and run the interface with the command

 

ifup eth1

 

 

CentOS 8

It is necessary to create a file /etc/sysconfig/network-scripts/ifcfg-ens6 with the following contents

 

DEVICE="ens6"
BOOTPROTO="static"
ONBOOT="yes"
IPADDR="10.13.0.100"
NETMASK="255.255.0.0"

 

and run the interface with the command

 

ifup ens6

 

 

Debian 7, Debian 8, Ubuntu 12-15

In the /etc/network/interfaces file, add entries on the internal interface

 

auto eth1
iface eth1 inet static
    address 10.13.0.100
    netmask 255.255.0.0

 

and run it

 

ifup eth1

 

 

Debian 9, Debian 10, Ubuntu 16, Ubuntu 17

In the /etc/network/interfaces file, add

 

auto ens6
iface ens6 inet static
    address 10.13.0.100
    netmask 255.255.0.0

 

and launch the interface accordingly

 

ifup ens6

 

 

Ubuntu 17.10, Ubuntu 18, Ubuntu 20.04

In the /etc/netplan/01-netcfg file.yaml add

 

ens6:
       addresses: [10.13.0.100/16]

 

update the network configuration or restart the server

 

netplan apply

 

 

FreeBSD

Add to the /etc/rc.conf file

 

ifconfig_vtnet1="inet 10.13.0.100 netmask 255.255.0.0"

 

and restart the server.

 

 

Windows

Make settings in the configuration of the corresponding network interface.

 

lokalnaya-set-2.png

 

*The address 10.13.0.100 is given as an example!

It is also advisable to allow traffic only between your IP addresses on the firewall.

Updated 15 February, at 15:54 30.07.2019 14:53

To answer you need to register or log in.
Close the window
Authentication
2FA verification
Close the window
Sign up
A password will be sent to the specified email address
Close the window
Password Reminder
Close the window
Password Reminder
Close the window
Password Reminder
Exit