LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-07-2017, 10:46 PM   #1
fanoflq
Member
 
Registered: Nov 2015
Posts: 397

Rep: Reputation: Disabled
Configure a static IP address for a network


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 192.168.100.0/24.
If DHCP is enabled, its has this range of available network IP addresses,
192.168.100.128 to 192.168.100.254, 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.

Addendum:
I added this here to see if it helps:
Quote:
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 600 0 0 wlp2s0b1
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 wlp2s0b1
192.168.0.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp2s0b1
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
Attached Thumbnails
Click image for larger version

Name:	Selection_002.png
Views:	193
Size:	142.4 KB
ID:	23907  

Last edited by fanoflq; 01-07-2017 at 11:48 PM.
 
Old 01-11-2017, 07:18 PM   #2
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: RHEL9.4
Posts: 735

Rep: Reputation: 154Reputation: 154
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 192.168.10.0 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 192.168.10.0 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:
https://jamielinux.com/docs/libvirt-...d-network.html

Last edited by ericson007; 01-11-2017 at 07:25 PM.
 
1 members found this post helpful.
Old 01-12-2017, 12:32 AM   #3
fanoflq
Member
 
Registered: Nov 2015
Posts: 397

Original Poster
Rep: Reputation: Disabled
@ericson007:
Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Network address changes despite being static kaplan71 Ubuntu 3 05-31-2011 12:45 PM
Need help:Configuring autofs to automount the home directories of NIS users. Savita Eli Linux - Server 4 08-27-2009 12:26 AM
Connect to network with static IP address JOtis02 Linux - Networking 5 05-23-2009 04:00 AM
static ip address on local network sloooow... richardg Linux - Networking 6 02-19-2007 01:45 AM
Network card needs static IP address reset gcscullion Linux - Networking 19 09-27-2006 06:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration