Created
October 29, 2019 21:21
-
-
Save flyemsafe/c07ba6a80db06ffc46bc1b3cacfa66b8 to your computer and use it in GitHub Desktop.
libvirt nat example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[admin@lunchbox01 openshift-home-lab]$ sudo virsh net-dumpxml ocp42 | |
<network> | |
<name>ocp42</name> | |
<uuid>c6bcc01b-8dec-4801-a053-7b87a84c2bbd</uuid> | |
<forward mode='nat'> | |
<nat> | |
<port start='1024' end='65535'/> | |
</nat> | |
</forward> | |
<bridge name='virbr1' stp='on' delay='0'/> | |
<mac address='52:54:00:b6:0d:7f'/> | |
<domain name='compute.local'/> | |
<dns> | |
<srv service='etcd-server-ssl' protocol='tcp' domain='poc.lunchnet.example' target='etcd-0.poc.lunchnet.example' port='2380' weight='10'/> | |
<srv service='etcd-server-ssl' protocol='tcp' domain='poc.lunchnet.example' target='etcd-1.poc.lunchnet.example' port='2380' weight='10'/> | |
<srv service='etcd-server-ssl' protocol='tcp' domain='poc.lunchnet.example' target='etcd-2.poc.lunchnet.example' port='2380' weight='10'/> | |
<host ip='192.168.50.2'> | |
<hostname>bootstrap.compute.local</hostname> | |
</host> | |
<host ip='192.168.50.1'> | |
<hostname>api-int.poc.lunchnet.example</hostname> | |
<hostname>api.poc.lunchnet.example</hostname> | |
</host> | |
<host ip='192.168.50.10'> | |
<hostname>master-0.compute.local</hostname> | |
<hostname>etcd-0.poc.lunchnet.example</hostname> | |
</host> | |
<host ip='192.168.50.11'> | |
<hostname>master-1.compute.local</hostname> | |
<hostname>etcd-1.poc.lunchnet.example</hostname> | |
</host> | |
<host ip='192.168.50.12'> | |
<hostname>master-2.compute.local</hostname> | |
<hostname>etcd-2.poc.lunchnet.example</hostname> | |
</host> | |
</dns> | |
<ip address='192.168.50.1' netmask='255.255.255.0'> | |
<dhcp> | |
<range start='192.168.50.10' end='192.168.50.250'/> | |
<host mac='52:54:00:a8:32:02' name='bootstrap.compute.local' ip='192.168.50.2'/> | |
<host mac='52:54:00:a8:32:0a' name='master-0.compute.local' ip='192.168.50.10'/> | |
<host mac='52:54:00:a8:32:0b' name='master-1.compute.local' ip='192.168.50.11'/> | |
<host mac='52:54:00:a8:32:0c' name='master-2.compute.local' ip='192.168.50.12'/> | |
<host mac='52:54:00:a8:32:0d' name='compute-0.compute.local' ip='192.168.50.13'/> | |
<host mac='52:54:00:a8:32:0e' name='compute-1.compute.local' ip='192.168.50.14'/> | |
<host mac='52:54:00:a8:32:0f' name='compute-2.compute.local' ip='192.168.50.15'/> | |
</dhcp> | |
</ip> | |
</network> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment