# The loopback network interface
auto lo
iface lo inet loopback
# for Routing
auto vmbr1
iface vmbr1 inet manual
post-up /etc/pve/kvm-networking.sh
bridge_ports dummy0
bridge_stp off
bridge_fd 0
# vmbr0: Bridging. Make sure to use only MAC adresses that were assigned to you.
auto vmbr0
iface vmbr0 inet static
address 5.189.188.107
netmask 255.255.255.0
network 5.189.188.0
broadcast 5.189.188.255
gateway 5.189.188.1
bridge_ports eth0
bridge_stp off
bridge_fd 0
# /etc/network/interfaces:
auto vmbr10
iface vmbr10 inet static
address 10.0.0.254
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '10.0.0.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.0.0.0/24' -o vmbr0 -j MASQUERADE
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 12022 -j DNAT --to 10.0.0.2:22
post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 12022 -j DNAT --to 10.0.0.2:22
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 12080 -j DNAT --to 10.0.0.2:80
post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 12080 -j DNAT --to 10.0.0.2:80
=========================
I know nothing about any Network.
I'm not good at English, I'm sorry.
I want to help guide seniors.
I wanted to step forward port (step by step).
I do not know anything about the code
please help me
=========================
I created the image in the mirror. etc / network / interfaces
But in my VM101 not change anything.
Can not ping 8.8.8.8
Can not ping 5.189.188.107 which is my single IP.
why
Please tell me
=========================
I want to come into the VM101 Remote access.
auto lo
iface lo inet loopback
# for Routing
auto vmbr1
iface vmbr1 inet manual
post-up /etc/pve/kvm-networking.sh
bridge_ports dummy0
bridge_stp off
bridge_fd 0
# vmbr0: Bridging. Make sure to use only MAC adresses that were assigned to you.
auto vmbr0
iface vmbr0 inet static
address 5.189.188.107
netmask 255.255.255.0
network 5.189.188.0
broadcast 5.189.188.255
gateway 5.189.188.1
bridge_ports eth0
bridge_stp off
bridge_fd 0
# /etc/network/interfaces:
auto vmbr10
iface vmbr10 inet static
address 10.0.0.254
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '10.0.0.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.0.0.0/24' -o vmbr0 -j MASQUERADE
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 12022 -j DNAT --to 10.0.0.2:22
post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 12022 -j DNAT --to 10.0.0.2:22
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 12080 -j DNAT --to 10.0.0.2:80
post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 12080 -j DNAT --to 10.0.0.2:80
=========================
I know nothing about any Network.
I'm not good at English, I'm sorry.
I want to help guide seniors.
I wanted to step forward port (step by step).
I do not know anything about the code
please help me
=========================
I created the image in the mirror. etc / network / interfaces
But in my VM101 not change anything.
Can not ping 8.8.8.8
Can not ping 5.189.188.107 which is my single IP.
why
Please tell me
=========================
I want to come into the VM101 Remote access.