Proxmox LAN RoutingUse specific interface for outbound connections (Ubuntu 9.04)Traffic not routing as expectedLinux server not routing my packetsProxmox Nat Networking IssueProxmox with an Openvswitch bridgeLinux Routing with two NICs (LAN vs Internet) with NAT and bridging for VMsProxmox additional Ip with Port ForwardingHow to correctly set up routing on machine with 4 interfaces so that three of interfaces are on the same subnet?How to allow vpn clients to access lan serversHetzner & allowed MAC addresses
Inverse-quotes-quine
Require advice on power conservation for backpacking trip
How to split an equation over two lines?
How can I get more energy without spending coins?
MH370 blackbox - is it still possible to retrieve data from it?
Which verb form to use with "с"
Apply brace expansion in "reverse order"
Was there ever a name for the weapons of the Others?
What are the benefits of using the X Card safety tool in comparison to plain communication?
Why is Madam Hooch not a professor?
Is this one of the engines from the 9/11 aircraft?
Alphabet completion rate
Intuitively, why does putting capacitors in series decrease the equivalent capacitance?
Story-based adventure with functions and relationships
Do French speakers not use the subjunctive informally?
Is there a maximum distance from a planet that a moon can orbit?
Animation advice please
Sho, greek letter
Why do some professors with PhDs leave their professorships to teach high school?
Why is C++ initial allocation so much larger than C's?
Fedora boot screen shows both Fedora logo and Lenovo logo. Why and How?
Can the negators "jamais, rien, personne, plus, ni, aucun" be used in a single sentence?
Is adding a new player (or players) a DM decision, or a group decision?
Why is there no havdallah when going from Yom Tov into Shabbat?
Proxmox LAN Routing
Use specific interface for outbound connections (Ubuntu 9.04)Traffic not routing as expectedLinux server not routing my packetsProxmox Nat Networking IssueProxmox with an Openvswitch bridgeLinux Routing with two NICs (LAN vs Internet) with NAT and bridging for VMsProxmox additional Ip with Port ForwardingHow to correctly set up routing on machine with 4 interfaces so that three of interfaces are on the same subnet?How to allow vpn clients to access lan serversHetzner & allowed MAC addresses
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am attempting to set up my first Proxmox hypervisor as a test server. I have managed to install Proxmox and set up some VMs however I can't get machines on my local LAN to connect to the Proxmox VMs.
- Host Subnet: 10.11.11.0/24
- Proxmox Host: 10.11.11.161
I have created two bridges one to act as a bridge to the WAN and the other as a private network.
Proxmox Host
auto lo
iface lo inet loopback
iface enp0s25 inet manual
auto vmbr0
iface vmbr0 inet static
address 10.11.11.161
netmask 255.255.255.0
gateway 10.11.11.1
bridge_ports enp0s25
bridge_stp off
bridge_fd 0
auto vmbr1
iface vmbr1 inet static
address 10.11.12.1
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
post-up echo 1 > /proc/sys/net/ipv4/conf/vmbr0/proxy_arp
post-up iptables -t nat -A POSTROUTING -s '10.11.12.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.11.12.0/24' -o vmbr0 -j MASQUERADE
Connecting to VMs from Office LAN
The VMs are set up to use network vmbr1 from the Proxmox host, I can connect into the VMs ok.
However from my machine on the office lan 10.11.11.141
I can't see the VMs. I have tried adding the following static route to pass traffic for 10.11.12.0/24
subnet to the Proxmox host.
ip route add 10.11.12.0/24 via 10.11.11.161 dev eth0
Can anyone please advice on how I can connect the office LAN to the VLAN of Proxmox.
Thanks in advance.
routing proxmox
add a comment |
I am attempting to set up my first Proxmox hypervisor as a test server. I have managed to install Proxmox and set up some VMs however I can't get machines on my local LAN to connect to the Proxmox VMs.
- Host Subnet: 10.11.11.0/24
- Proxmox Host: 10.11.11.161
I have created two bridges one to act as a bridge to the WAN and the other as a private network.
Proxmox Host
auto lo
iface lo inet loopback
iface enp0s25 inet manual
auto vmbr0
iface vmbr0 inet static
address 10.11.11.161
netmask 255.255.255.0
gateway 10.11.11.1
bridge_ports enp0s25
bridge_stp off
bridge_fd 0
auto vmbr1
iface vmbr1 inet static
address 10.11.12.1
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
post-up echo 1 > /proc/sys/net/ipv4/conf/vmbr0/proxy_arp
post-up iptables -t nat -A POSTROUTING -s '10.11.12.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.11.12.0/24' -o vmbr0 -j MASQUERADE
Connecting to VMs from Office LAN
The VMs are set up to use network vmbr1 from the Proxmox host, I can connect into the VMs ok.
However from my machine on the office lan 10.11.11.141
I can't see the VMs. I have tried adding the following static route to pass traffic for 10.11.12.0/24
subnet to the Proxmox host.
ip route add 10.11.12.0/24 via 10.11.11.161 dev eth0
Can anyone please advice on how I can connect the office LAN to the VLAN of Proxmox.
Thanks in advance.
routing proxmox
HYou are using a Class A Net. Sofar use 255.255.0
– djdomi
Jun 7 at 18:51
add a comment |
I am attempting to set up my first Proxmox hypervisor as a test server. I have managed to install Proxmox and set up some VMs however I can't get machines on my local LAN to connect to the Proxmox VMs.
- Host Subnet: 10.11.11.0/24
- Proxmox Host: 10.11.11.161
I have created two bridges one to act as a bridge to the WAN and the other as a private network.
Proxmox Host
auto lo
iface lo inet loopback
iface enp0s25 inet manual
auto vmbr0
iface vmbr0 inet static
address 10.11.11.161
netmask 255.255.255.0
gateway 10.11.11.1
bridge_ports enp0s25
bridge_stp off
bridge_fd 0
auto vmbr1
iface vmbr1 inet static
address 10.11.12.1
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
post-up echo 1 > /proc/sys/net/ipv4/conf/vmbr0/proxy_arp
post-up iptables -t nat -A POSTROUTING -s '10.11.12.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.11.12.0/24' -o vmbr0 -j MASQUERADE
Connecting to VMs from Office LAN
The VMs are set up to use network vmbr1 from the Proxmox host, I can connect into the VMs ok.
However from my machine on the office lan 10.11.11.141
I can't see the VMs. I have tried adding the following static route to pass traffic for 10.11.12.0/24
subnet to the Proxmox host.
ip route add 10.11.12.0/24 via 10.11.11.161 dev eth0
Can anyone please advice on how I can connect the office LAN to the VLAN of Proxmox.
Thanks in advance.
routing proxmox
I am attempting to set up my first Proxmox hypervisor as a test server. I have managed to install Proxmox and set up some VMs however I can't get machines on my local LAN to connect to the Proxmox VMs.
- Host Subnet: 10.11.11.0/24
- Proxmox Host: 10.11.11.161
I have created two bridges one to act as a bridge to the WAN and the other as a private network.
Proxmox Host
auto lo
iface lo inet loopback
iface enp0s25 inet manual
auto vmbr0
iface vmbr0 inet static
address 10.11.11.161
netmask 255.255.255.0
gateway 10.11.11.1
bridge_ports enp0s25
bridge_stp off
bridge_fd 0
auto vmbr1
iface vmbr1 inet static
address 10.11.12.1
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
post-up echo 1 > /proc/sys/net/ipv4/conf/vmbr0/proxy_arp
post-up iptables -t nat -A POSTROUTING -s '10.11.12.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.11.12.0/24' -o vmbr0 -j MASQUERADE
Connecting to VMs from Office LAN
The VMs are set up to use network vmbr1 from the Proxmox host, I can connect into the VMs ok.
However from my machine on the office lan 10.11.11.141
I can't see the VMs. I have tried adding the following static route to pass traffic for 10.11.12.0/24
subnet to the Proxmox host.
ip route add 10.11.12.0/24 via 10.11.11.161 dev eth0
Can anyone please advice on how I can connect the office LAN to the VLAN of Proxmox.
Thanks in advance.
routing proxmox
routing proxmox
edited Jun 10 '18 at 12:37
alexander.polomodov
1,0263 gold badges7 silver badges12 bronze badges
1,0263 gold badges7 silver badges12 bronze badges
asked Jun 9 '18 at 14:26
Dobsc89Dobsc89
12 bronze badges
12 bronze badges
HYou are using a Class A Net. Sofar use 255.255.0
– djdomi
Jun 7 at 18:51
add a comment |
HYou are using a Class A Net. Sofar use 255.255.0
– djdomi
Jun 7 at 18:51
HYou are using a Class A Net. Sofar use 255.255.0
– djdomi
Jun 7 at 18:51
HYou are using a Class A Net. Sofar use 255.255.0
– djdomi
Jun 7 at 18:51
add a comment |
2 Answers
2
active
oldest
votes
If you need direct networking access from different IP network a router (gateway) should be used by definition. The gateway should belong to both IP networks and you should be using it by means of routing table. All-in-all it can be even a VM that's run on same server or the server itself.
add a comment |
You are using a Class A network but restrict yourself to class C. Change the subnet to 255.0.0.0 (class a) or 255.255.0.0 (class b) and you should be able to reach your clients. However if you are using the same connections use the same gateway or your may need to nat your connections
In reference check
https://en.m.wikipedia.org/wiki/Private_network
Just an example
C=10.0.0.1/255.255.255.0 can reach: 10.0.0.0/24 (10.0.0.254)
You can have 254 clients
B=10.0.0.1/255.255.0.0 can reach: 10.0.0.0/16 (10.0.255.254)
You can have 65534 clients
A=10.0.0.1/255.0.0.0 can reach: 10.0.0.0/8(10.255.255.254)
You can have 16777214 clients.
Your currently sutiation is the first but you want the second or third. Eben if you want to jump into another subnet
I. E
Client has 10.0.0.2/255.255.255.0 will not be able to Contact 10.0.1.2 due its Limit if you use 255.255.0.0 he will be able to do so.
This answer has been reduce to under stand the way it works but may not 100 percent correctly :)
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f915899%2fproxmox-lan-routing%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
If you need direct networking access from different IP network a router (gateway) should be used by definition. The gateway should belong to both IP networks and you should be using it by means of routing table. All-in-all it can be even a VM that's run on same server or the server itself.
add a comment |
If you need direct networking access from different IP network a router (gateway) should be used by definition. The gateway should belong to both IP networks and you should be using it by means of routing table. All-in-all it can be even a VM that's run on same server or the server itself.
add a comment |
If you need direct networking access from different IP network a router (gateway) should be used by definition. The gateway should belong to both IP networks and you should be using it by means of routing table. All-in-all it can be even a VM that's run on same server or the server itself.
If you need direct networking access from different IP network a router (gateway) should be used by definition. The gateway should belong to both IP networks and you should be using it by means of routing table. All-in-all it can be even a VM that's run on same server or the server itself.
answered Jan 1 at 1:04
poigepoige
7,1861 gold badge16 silver badges37 bronze badges
7,1861 gold badge16 silver badges37 bronze badges
add a comment |
add a comment |
You are using a Class A network but restrict yourself to class C. Change the subnet to 255.0.0.0 (class a) or 255.255.0.0 (class b) and you should be able to reach your clients. However if you are using the same connections use the same gateway or your may need to nat your connections
In reference check
https://en.m.wikipedia.org/wiki/Private_network
Just an example
C=10.0.0.1/255.255.255.0 can reach: 10.0.0.0/24 (10.0.0.254)
You can have 254 clients
B=10.0.0.1/255.255.0.0 can reach: 10.0.0.0/16 (10.0.255.254)
You can have 65534 clients
A=10.0.0.1/255.0.0.0 can reach: 10.0.0.0/8(10.255.255.254)
You can have 16777214 clients.
Your currently sutiation is the first but you want the second or third. Eben if you want to jump into another subnet
I. E
Client has 10.0.0.2/255.255.255.0 will not be able to Contact 10.0.1.2 due its Limit if you use 255.255.0.0 he will be able to do so.
This answer has been reduce to under stand the way it works but may not 100 percent correctly :)
add a comment |
You are using a Class A network but restrict yourself to class C. Change the subnet to 255.0.0.0 (class a) or 255.255.0.0 (class b) and you should be able to reach your clients. However if you are using the same connections use the same gateway or your may need to nat your connections
In reference check
https://en.m.wikipedia.org/wiki/Private_network
Just an example
C=10.0.0.1/255.255.255.0 can reach: 10.0.0.0/24 (10.0.0.254)
You can have 254 clients
B=10.0.0.1/255.255.0.0 can reach: 10.0.0.0/16 (10.0.255.254)
You can have 65534 clients
A=10.0.0.1/255.0.0.0 can reach: 10.0.0.0/8(10.255.255.254)
You can have 16777214 clients.
Your currently sutiation is the first but you want the second or third. Eben if you want to jump into another subnet
I. E
Client has 10.0.0.2/255.255.255.0 will not be able to Contact 10.0.1.2 due its Limit if you use 255.255.0.0 he will be able to do so.
This answer has been reduce to under stand the way it works but may not 100 percent correctly :)
add a comment |
You are using a Class A network but restrict yourself to class C. Change the subnet to 255.0.0.0 (class a) or 255.255.0.0 (class b) and you should be able to reach your clients. However if you are using the same connections use the same gateway or your may need to nat your connections
In reference check
https://en.m.wikipedia.org/wiki/Private_network
Just an example
C=10.0.0.1/255.255.255.0 can reach: 10.0.0.0/24 (10.0.0.254)
You can have 254 clients
B=10.0.0.1/255.255.0.0 can reach: 10.0.0.0/16 (10.0.255.254)
You can have 65534 clients
A=10.0.0.1/255.0.0.0 can reach: 10.0.0.0/8(10.255.255.254)
You can have 16777214 clients.
Your currently sutiation is the first but you want the second or third. Eben if you want to jump into another subnet
I. E
Client has 10.0.0.2/255.255.255.0 will not be able to Contact 10.0.1.2 due its Limit if you use 255.255.0.0 he will be able to do so.
This answer has been reduce to under stand the way it works but may not 100 percent correctly :)
You are using a Class A network but restrict yourself to class C. Change the subnet to 255.0.0.0 (class a) or 255.255.0.0 (class b) and you should be able to reach your clients. However if you are using the same connections use the same gateway or your may need to nat your connections
In reference check
https://en.m.wikipedia.org/wiki/Private_network
Just an example
C=10.0.0.1/255.255.255.0 can reach: 10.0.0.0/24 (10.0.0.254)
You can have 254 clients
B=10.0.0.1/255.255.0.0 can reach: 10.0.0.0/16 (10.0.255.254)
You can have 65534 clients
A=10.0.0.1/255.0.0.0 can reach: 10.0.0.0/8(10.255.255.254)
You can have 16777214 clients.
Your currently sutiation is the first but you want the second or third. Eben if you want to jump into another subnet
I. E
Client has 10.0.0.2/255.255.255.0 will not be able to Contact 10.0.1.2 due its Limit if you use 255.255.0.0 he will be able to do so.
This answer has been reduce to under stand the way it works but may not 100 percent correctly :)
answered Jun 7 at 19:08
djdomidjdomi
536 bronze badges
536 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f915899%2fproxmox-lan-routing%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
HYou are using a Class A Net. Sofar use 255.255.0
– djdomi
Jun 7 at 18:51