-   Linux - Newbie (
-   -   Configure a static IP address for a network (

fanoflq 01-07-2017 09:46 PM

Configure a static IP address for a network
1 Attachment(s)
Configure a static IP address for a network

Say I wanted to create a network named network1.
Below is a screenshot of virt-manager.

[See uploaded attachment under "Attached Thumbnails" below.
How do insert uploaded screenshot here?]

The widows in screenshot were generated with the following order
of clicking:
1) In virt-manager window, under row titled "QEMU/KVM", right click and select Details, which pops up "QEMU/KVM Connection Details" window (middle window in screenshot).

2) In "QEMU/KVM Connection Details" window, select the "Virtual Networks" tab, and then at bottom left, click "+" button.
A "Create a New Virtual Network" window pops up.

3) The "Create a New Virtual Network" window shown is the second page after
clicking the forward button in the first page where the new network's name was entered.
Here is the suggested available network at address
If DHCP is enabled, its has this range of available network IP addresses, to, for assignment to host in this network, i.e. network1.

Next rows' items are not comprehensible so far.
I do not know what "Enable Static Route Definition" means.

My best guess is create a static network IP address if
"Enable Static Route Definition" is checked.
But what does that mean?

Based on network addresses information above, what do I put in for the following:
a) "to Network:"
b) "to Gateway"

Thank you.

I added this here to see if it helps:

$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface UG 600 0 0 wlp2s0b1 U 1000 0 0 wlp2s0b1 U 600 0 0 wlp2s0b1 U 0 0 0 virbr0

ericson007 01-11-2017 06:18 PM

Your network is setup properly and usable the way you have done by clicking forward on that screen.

Leave to network and gateway stuff blank. The time when you will use those is if you want to reach say network from network 1. In that case "to network" just tells your virtual network, hey check this out. There are some goodies found on this address range. Just remember because we may need it.

The route option is used when lets say the network is around but not directly visible from the virtual machine. This means the virtual network knows there is another useable network but it does not know how to get there. So in the real world a pc might be connected to a specific section of the network and use a default router via a switch. But to get to this extra network, the router we normally use cannot connect to that network, so we specify the route saying. Look normally we use the internet etc using whatever router is available, but for this specific network, we must access it using that one router only.

So the route would be the address of the router to use to get to the specific network. There is no other option.

Those i think will be easier to understand if you read up a little about network routing.

In terms of playing around with kvm, you do not really need to bother about that for simple network like the one you are trying to use.

This may help a tad:

fanoflq 01-11-2017 11:32 PM


All times are GMT -5. The time now is 02:12 AM.