[SOLVED] LXC - no internet access

cmonty14

Well-Known Member
Mar 4, 2014
343
5
58
Hi!

I have installed PVE 4.1 and configured 3 NIC:
NIC1 with direct connection to public IPv4 (provided by ISP)
NIC2 configuring private network

Any NIC is bridged to vmbr0 and vmbr1 respectively.

Now I want to install a router / gateway server (running Debian 8) in LXC.
For this container I have configured 2 virtual interfaces accordingly.
eth0 is bridged to vmbr0 and uses DHCP.
This is a requisite of the ISP, and consequently the public IP is reserved to this virtual interface identified by MAC:
Code:
root@vm101-router:~# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 66:35:62:31:34:66
          inet addr:217.x.xx.xx  Bcast:255.255.255.255  Mask:255.255.255.192
          inet6 addr: fe80::6435:62ff:fe31:3466/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:48109 errors:0 dropped:0 overruns:0 frame:0
          TX packets:141 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3874643 (3.6 MiB)  TX bytes:29126 (28.4 KiB)

root@vm101-router:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         217.8.50.65     0.0.0.0         UG    0      0        0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
192.168.100.0   0.0.0.0         255.255.255.0   U     0      0        0 eth2
217.8.50.64     0.0.0.0         255.255.255.192 U     0      0        0 eth0

Question:
What do I need to configure to enable internet access?

THX
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!