static routes for Nic connected to ADSL modem
Posted on 2010-11-10
i want to know if i have configured my server nic's in the best way.
i have 3 servers.
each server has 2 nics
- 1 nic connects to the internal switch
- 1 nic connects to the ADSL modem so i can remote access the servers externally and for other services like inbound SMTP and HTTP
my domain IP4 settings are as follows:
nic connected to the internal switch
IP Address: 192.168.16.2
default gateway: 192.168.16.36
nic connected to the ADSL modem
IP address: 192.168.1.2
default gateway (blank as windows does not like have 2 default connectign to different networks)
[Please note that the server that has routing and remote access installed, that provides internet access to the network has the default gateway configured on the nic connected ADSL modem and the nic on the internal switch has no defautl gateway - and static routes are configured]
i then create the following static route so that inbound connections connected via the ADSL work:
route -p add 0.0.0.0 mask 0.0.0.0 192.168.1.1 metric 1
is this the right thing to do?