Debian bind multiple IP network settings

Debian bind multiple IP network settings

1. Edit /etc/network/interfaces

This file describes the network interfaces available on your system

and how to activate them. For more information, see interfaces(5).

The loopback network interface

auto lo
iface lo inet loopback

The primary network interface

allow-hotplug eth0
iface eth0 inet static

 address 67.229.xxx.xxx netmask 255.255.255.248 network 67.229.xxx.xxx broadcast 67.229.xxx.xxx gateway 67.229.xxx.xxx # dns-* options are implemented by the resolvconf package, if installed dns-search hostxxxx.kryptservers.com

auto eth0:0
iface eth0:0 inet static
address 67.229.xxx.xxx
netmask 255.255.255.248

auto eth0:1
iface eth0:1 inet static
address 67.229.xxx.xxx
netmask 255.255.255.248

pre-up iptables-restore < /etc/iptables.up.rules

2. Restart
service networking start

<<:  Chicago VPS: $20/month/8GB RAM/250GB HDD/5TB traffic/5 IP/New York

>>:  TweNtion: $13/year/512MB/15GB SSD/500GB bandwidth/KVM/Los Angeles/Free Cpanel/WHM

Recommend

VolumeDrive: $4.95/month/1GB memory/50GB space/16TB traffic/2 IP/KVM/New York

VolumeDrive, an American hosting company, was fou...

Free mailbox with free fax: CNTV mailbox

CNTV has started to provide free mailboxes, 8GB o...

【Black Friday】Gullo: NAT VPS Discount

Event page: https://hosting.gullo.me/black-friday...

Host4Run: $5/month/512MB RAM/20GB SSD/1TB bandwidth/OpenVZ/Las Vegas

Host4Run, an American hosting provider, seems to ...

50kvm: 81 yuan/month/512MB memory/15GB SSD space/2TB bandwidth/KVM/Portland

50kvm, a subsidiary of Wuling Network, has been i...

Share the process of Aiba Blog joining Baidu Encyclopedia

I applied for Baidu Encyclopedia a few days ago a...

AWS CloudFront (AWS CDN) setup and usage tutorial; speed up WordPress

Due to my limited knowledge of the Internet, if t...

Hetzner: €2.49/month/2GB RAM/20GB NVMe space/20TB bandwidth/KVM/Germany

Hetzner, a long-established German hosting compan...