Linode Forum Index Linode Forum
Linode Community Forums
 


Configuring Linode Private IPs in Webmin

Click here to go to the original topic

 
       Linode Forum Index -> Linux Networking
Author Message
motayeb



Joined: 04 Dec 2011
Posts: 4
Location: United Kingdom

Posted: Sun Dec 04, 2011 10:07 am    Post subject: Configuring Linode Private IPs in Webmin  

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
Back to top  
glg



Joined: 09 Jan 2009
Posts: 505

Posted: Sun Dec 04, 2011 7:59 pm    Post subject: Re: Configuring Linode Private IPs in Webmin  

motayeb wrote: 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
Back to top  
motayeb



Joined: 04 Dec 2011
Posts: 4
Location: United Kingdom

Posted: Mon Dec 05, 2011 8:49 am    Post subject: Re: Configuring Linode Private IPs in Webmin  

glg wrote:

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.
Back to top  
hoopycat



Joined: 30 Aug 2008
Posts: 1294
Location: Rochester, New York

Posted: Mon Dec 05, 2011 6:28 pm    Post subject:  

What does the IP configuration for eth0 look like?

Code: $ ip addr show dev eth0
Back to top  
motayeb



Joined: 04 Dec 2011
Posts: 4
Location: United Kingdom

Posted: Thu Dec 08, 2011 6:26 pm    Post subject:  

hoopycat wrote: What does the IP configuration for eth0 look like?

Code: $ 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
Back to top  
hoopycat



Joined: 30 Aug 2008
Posts: 1294
Location: Rochester, New York

Posted: Thu Dec 08, 2011 8:51 pm    Post subject:  

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.
Back to top  
motayeb



Joined: 04 Dec 2011
Posts: 4
Location: United Kingdom

Posted: Sat Dec 10, 2011 3:29 pm    Post subject:  

hoopycat wrote: 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,LOWER_UP> mtu 1500 qdisc pfifo_fast 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
valid_lft forever preferred_lft forever

Do you mean I need to specify the public or private IP addresses manually...or both?
Back to top  
glg



Joined: 09 Jan 2009
Posts: 505

Posted: Sat Dec 10, 2011 7:35 pm    Post subject:  

motayeb wrote: 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:

http://library.linode.com/networking/configuring-static-ip-interfaces
Back to top  
 
       Linode Forum Index -> Linux Networking
Page 1 of 1