Article 5GVGB static IP -> access for VM

static IP -> access for VM

by
kbbabb
from LinuxQuestions.org on (#5GVGB)
So, I'm finally venturing in to the VM world. I would like to bridge a static IP on eth0 (192.168.192.131) to a VM.

$ ip address show

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp5s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 0c:c4:7a:07:ac:d2 brd ff:ff:ff:ff:ff:ff
inet 192.168.192.131/24 brd 192.168.192.255 scope global enp5s0f0
valid_lft forever preferred_lft forever
inet6 fe80::ec4:7aff:fe07:acd2/64 scope link
valid_lft forever preferred_lft forever
3: enp5s0f1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 0c:c4:7a:07:ac:d3 brd ff:ff:ff:ff:ff:ff
inet 192.168.192.132/24 brd 192.168.192.255 scope global enp5s0f1
valid_lft forever preferred_lft forever
inet6 fe80::ec4:7aff:fe07:acd3/64 scope link
valid_lft forever preferred_lft forever

the yaml file:
network:
version: 2
renderer: networkd
ethernets:
enp5s0f0:
dhcp4: no
addresses: [192.168.192.131/24]
gateway4: 192.168.192.1
nameservers:
addresses: [192.168.192.175]
routes:
- to: 0.0.0.0/0
via: 192.168.192.1
enp5s0f1:
dhcp4: no
addresses: [192.168.192.132/24]
gateway4: 192.168.192.1
nameservers:
addresses: [192.168.192.175]
routes:
- to: 0.0.0.0/0
via: 192.168.192.1

So, when I read about bridging in Ubuntu 20.04 it just isn't clicking for me. I need to forward traffic to .131 to a new VM I will create with the virsh command. Anyone have a good link where I can read up? or am I thinking about this the wrong way? Thanks!latest?d=yIl2AUoC8zA latest?i=nUBlOEaZDmQ:6YKqdT3yBaU:F7zBnMy latest?i=nUBlOEaZDmQ:6YKqdT3yBaU:V_sGLiP latest?d=qj6IDK7rITs latest?i=nUBlOEaZDmQ:6YKqdT3yBaU:gIN9vFwnUBlOEaZDmQ
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments