confusion about 2 nic's 2 gateway's 2 subnet's

pesja

New Member
Jul 18, 2009
3
0
1
Hello,

After hours and hours of testing and trying I finally gave up. I almost tried all the relevant topics on this forum.
This is my configuration:

I have 1 HP server with 2 NIC's
The first NIC is connected to a cable modem/router with 1 public IP-adress
The second NIC is connected to a DLS modem/router with 4 (usable) IP-adresses

More specific:
cable modem/router
IP range: 192.168.1.2 - 192.168.1.200 (like any other normal private range)
Subnet: 255.255.255.0
Gateway: 192.168.1.1
DNS server 213.73.255.52 (also 192.168.1.1 works)

DSL mode/router
IP range: 193.173.121.60 - 193.173.121.64 (all public IP's)
Subnet: 255.255.255.248
Gateway: 193.173.121.59
DNS Server 194.151.228.18 (also 193.173.121.59 works)

After the (easy) Proxmox VE installation I filled out this Network settings:
IP Adress: 192.168.1.151
Subnet: 255.255.255.0
Gateway: 192.168.1.1
DNS: 213.73.255.52
Which Proxmox connected to eth0/vmbr0

On eth0 everything works fine. Of course I can connect it within the private network and also through the one public IP adress ( with portforwarding).
Then I tried to make the second NIC (eth1) working, so I can also use the 4 usable public adresses. But no luck with that. I succeeded with a VM (CentOS OpenVZ template) which could ping to public ip-adresses, yum update and installed Webmin within this VM, simple by copied the eth0 settings to eth1 within Proxmox.

But withing that VM I couldn't ping it or open webmin from the outside.
I hope someone can help me out with a straightforward howto.

Thank's in advance
 
Last edited:
Then I tried to make the second NIC (eth1) working, so I can also use the 4 usable public adresses.

Simply create a new bridge (vmbr1) and connect eth1 to that bridge.

Please post you network config (/etc/network/interfaces) if you have further questions.

- Dietmar
 
Thank's Dietmar,

I figured it out. Somehow manual changes (/etc/network/interfaces) on the proxmox ve server didn't worked out. So I deleted all the changes en made them webbased. Now it works fine.
 
Somehow manual changes (/etc/network/interfaces) on the proxmox ve server didn't worked out.

We generate the file "/etc/network/interfaces.new" if you change network settings on the web browser - on next reboot this file overwrites "/etc/network/interfaces".

- Dietmar