Answer the question
In order to leave comments, you need to log in
Multiple IP addresses internal and external on Debian?
We have 3 Internet providers in our company
They have gateways
192.168.0.100 - Провайдер № 1 Ростелеком, Внеший IP 92.126.213.101
192.168.0.102 - Провайдер №2 Дом.ру, Внеший IP 92.126.213.102
192.168.0.103 - Провайдер №2 ТТК, Внеший IP 92.126.213.103
192.168.3.98 - маска подсети 255.255.248.0
192.168.3.97 - маска подсети 255.255.248.0
192.168.3.96 - маска подсети 255.255.248.0
auto eth0:0
iface eth0:0 inet static
address 192.168.3.98
netmask 255.255.248.0
gateway 192.168.0.101
auto eth0:1
iface eth0:1 inet static
address 192.168.3.97
netmask 255.255.248.0
gateway 192.168.0.102
auto eth0:2
iface eth0:2 inet static
address 192.168.3.96
netmask 255.255.248.0
gateway 192.168.0.103
Answer the question
In order to leave comments, you need to log in
In order for the server to be able to receive connections from the Internet through any of the providers at the same time:
you need to configure the routing rules for each provider, you can read it here LARTC in paragraph 4.2.1.
maybe my gateway change script will help you:
#!/bin/bash
route del default
gw=`ifconfig ppp1 | grep 'inet addr' | awk '{print $3}' | sed -e 's/.*://' `
route add default gw $gw
LOG="/var/log/routes"
answer=`wget -q http://myip.ru/index_small.php -O -| grep '95\.128'| sed -e 's/$
echo "`date` PPPoE White is $answer" >> $LOG
if ! ping -c1 8.8.8.8 >/dev/null; then
# echo "No inet on PPPoE White!"
exit 2
else
exit 0
fi
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question