Can you help me config 2 network (internal , internet only)

lesiam.phone

New Member
May 13, 2022
9
0
1
on switch we config eth-trunk 9 allow vlan 3121 and eth-trunk 11 allow vlan 2550

#vlan 3121 can't access to internet and vlan 2550 access internet only

i have 2 network
1.vlan 3121 172.20.222.32/27 gw 172.20.222.33 for manage proxmox and cluster
2.vlan 2550 142.82.59.0/26 gw 142.82.59.1 for proxmox internet only

I try This Config not work and Now we can ping private vlan 3121
auto lo
iface lo inet loopback
iface eno1 inet manual
iface eno2 inet manual
iface eno3 inet manual
iface eno4 inet manual

iface enp136s0 inet manual
iface enp137s0 inet manual
iface enp138s0 inet manual
iface enp139s0 inet manual

iface enp177s0 inet manual
iface enp178s0 inet manual
iface enp179s0 inet manual
iface enp180s0 inet manual


#For Private Management Proxmox =======================

auto bond0
iface bond0 inet manual
bond-slaves enp136s0 enp177s0
bond-miimon 100
bond-mode 802.3ad
bond-xmit-hash-policy layer2+3

iface bond0.3121 inet manual

auto vmbr0v3121
iface vmbr0v3121 inet static
address 172.20.221.41/27
gateway 172.20.221.33
bridge_ports bond0.3121
bridge_stp off

auto vmbr0
iface vmbr0 inet static
bridge-ports bond0
bridge-stp off
bridge-fd 0

#For Internet Only =============================

auto bond1
iface bond1 inet manual
bond-slaves enp139s0 enp180s0
bond-miimon 100
bond-mode 802.3ad
bond-xmit-hash-policy layer2+3


iface bond1.2550 inet manual

auto vmbr1v2550
iface vmbr1v2550 inet static
address 172.20.221.41/27
gateway 172.20.221.33
bridge_ports bond1.2550
bridge_stp off

auto vmbr1
iface vmbr1 inet static
address 142.82.59.31/26
gateway 142.82.59.1
bridge-ports bond1
bridge-stp off
bridge-fd 0
 
You have configured three default gateways. How your host should know which one to use?
Usually gateway should be configured only on an interface with internet access (default gateway entry is a route to 0.0.0.0/0 network or whole IPv4 address space).
 
You have configured three default gateways. How your host should know which one to use?
Usually gateway should be configured only on an interface with internet access (default gateway entry is a route to 0.0.0.0/0 network or whole IPv4 address space).
Thank you i have solved
 

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!