configuring two network interfaces in ubuntu 10.04.1

Posted by Bill Smith on Server Fault See other posts from Server Fault or by Bill Smith
Published on 2010-09-23T16:21:47Z Indexed on 2012/04/02 5:32 UTC
Read the original article Hit count: 621

Filed under:
|
|
|

I have got two NICs configured on a VM - each is tied to a specific network, one is a DMZ, the other is an internal network.

I want MySQL to listen on the internal network only and Apache on the DMZ listening for HTTP and HTTPS. But as soon as I add the second interface I run into trouble. I can hit HTTP on either interface, but can not hit 3306 on the internal network for MySQL.

Here's the config... could someone sanity check this please?

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
    address 10.153.24.230
    netmask 255.255.255.240
    network 10.153.24.224
    broadcast 10.153.24.239
    dns-nameservers 8.8.8.8


auto eth1
iface eth1 inet static
    address 10.153.24.195
    netmask 255.255.255.224
    gateway 10.153.24.193
    broadcast 10.153.23.223

© Server Fault or respective owner

Related posts about networking

Related posts about ubuntu