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:
Question:
What do I need to configure to enable internet access?
THX
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: