1. MagicESP
  2. Ubuntu Server 22.04
  3. Add IP Address

Add IP Address

sudo vim /etc/network/interfaces
auto lo
iface lo inet loopback

##private network
auto eth0
iface eth0 inet static
	#pre-up /usr/sbin/ethtool -s eth0 autoneg off speed 1000 duplex full
	address 10.21.100.158
	netmask 255.255.255.192
	#Static route for backend service network
	up route add -net 10.0.0.0/8 gw 10.21.100.129

##public network
auto eth1
iface eth1 inet static
	#pre-up /usr/sbin/ethtool -s eth1 autoneg off speed 1000 duplex full
	address 208.43.135.146
	netmask 255.255.255.224
	gateway 208.43.135.129
auto eth1:1
iface eth1:1 inet static
address 206.217.203.152
netmask 255.255.255.255

auto eth1:2
iface eth1:2 inet static
address 206.217.203.153
netmask 255.255.255.255

auto eth1:3
iface eth1:3 inet static
address 206.217.203.154
netmask 255.255.255.255

auto eth1:4
iface eth1:4 inet static
address 206.217.203.155
netmask 255.255.255.255

auto eth1:5
iface eth1:5 inet static
address 206.217.203.160
netmask 255.255.255.255

auto eth1:6
iface eth1:6 inet static
address 206.217.203.161
netmask 255.255.255.255

auto eth1:7
iface eth1:7 inet static
address 206.217.203.162
netmask 255.255.255.255

auto eth1:8
iface eth1:8 inet static
address 206.217.203.163
netmask 255.255.255.255