Configuring Linode Private IPs in Webmin
I have setup two linode servers and want to use one as a web server, the other as DB. They are both in the same data centre. Linode has assigned me with private IPs on both servers. I have installed webmin on both of them and need to configure their private IPs on each instance.
I have attempted to do this already but cannot ping the servers from one another using their private IPs, I can only do it with the public ones. Of course I restarted several times.
In Webmin, I have the option of adding an interface, a virtual interface or a bridge. Any help would be greatly appreciated!
Thanks
7 Replies
@motayeb:
Hi,
I have setup two linode servers and want to use one as a web server, the other as DB. They are both in the same data centre. Linode has assigned me with private IPs on both servers. I have installed webmin on both of them and need to configure their private IPs on each instance.
I have attempted to do this already but cannot ping the servers from one another using their private IPs, I can only do it with the public ones. Of course I restarted several times.
In Webmin, I have the option of adding an interface, a virtual interface or a bridge. Any help would be greatly appreciated!
Thanks
Did you reboot after adding the private IP in the linode control panel? If yes, check firewalls
@glg:
Did you reboot after adding the private IP in the linode control panel? If yes, check firewalls
Thanks for your response. Just checked the firewall - it's set to allow all traffic. Yes I did reboot several times.
$ ip addr show dev eth0
@hoopycat:
What does the IP configuration for eth0 look like?
$ ip addr show dev eth0
Ok here it is:
Activated at boot: Yes
IPv4 address: From DHCP
IP V6 address: IPv6 disabled
Virtual interfaces: 0
Hardware address: default
Thanks
It looks like it thinks you're set for DHCP, though… if you're attaching multiple IPv4 addresses, you'll need to specify the IP addressing information manually.
@hoopycat:
I meant from the command line… webmin is going to tell you what it thinks is going on, and this is a situation where you're going to want to see what's actually going on.
It looks like it thinks you're set for DHCP, though… if you're attaching multiple IPv4 addresses, you'll need to specify the IP addressing information manually.
Sorry, I think this is the info you asked for:
ip addr show dev eth0
2: eth0: <broadcast,multicast,up,lowerup>mtu 1500 qdisc pfifofast state UP qlen 1000
link/ether f2:3c:91:df:ff:61 brd ff:ff:ff:ff:ff:ff
inet 178.79.183.16/24 brd 178.79.183.255 scope global eth0
inet6 fe80::f03c:91ff:fedf:ff61/64 scope link
validlft forever preferredlft forever
Do you mean I need to specify the public or private IP addresses manually…or both?
@motayeb:
Do you mean I need to specify the public or private IP addresses manually…or both?
both. DHCP only gets you public IPs. If you want to use private you have to setup both the public and private as static. There's an example in this library page: