The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > Linux > Ubuntu
.
google unix.com



Ubuntu Ubuntu is a complete desktop Linux operating system, freely available with both community and professional support.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Static Route Arun.Kakarla UNIX for Dummies Questions & Answers 2 07-17-2008 08:07 AM
static route ? chaandana IP Networking 3 07-05-2005 02:05 AM
Static wojtyla High Level Programming 6 02-25-2005 11:57 AM
Static IP google IP Networking 7 05-18-2003 07:33 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-02-2008
satimis satimis is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 45
How to set guest static IP

Hi folks,


Ubuntu 8.04 server amd64 - host
Ubuntu 6.06 server amd64 - guest
KVM


I referred;
The Kernel Virtual Machine
https://help.ubuntu.com/community/KVM

and couldn't figure out how to set guest static IP address


Host;

/etc/network/interfaces
Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback


auto eth0
iface eth0 inet manual


# The primary network interface
auto br0
iface br0 inet static
        address 192.168.0.110
        netmask 255.255.255.0
        network 192.168.0.0
        broadcast 192.168.0.255
        gateway 192.168.0.1
        bridge_ports eth0
        bridge_fd 9
        bridge_hello 2
        bridge_maxage 12
        bridge_stp off

Guest;
/etc/network/interfaces
Code:
auto lo
iface lo inet loopbak

# The primary network interface
auto eth0
iface eth0 inet dhcp
$ ifconfig
Code:
...
inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0
....

Host;

/etc/libvirt/qemn/networks/default.xml
Code:
<network>
  <name>default</name>
  <uuid></uuid>
  <bridge name="virbr%d" />
  <forward/>
  <ip address="192.168.122.1" netmask="255.255.255.0">
    <dhcp>
      <range start="192.168.122.2" end="192.168.122.254" />
    </dhcp>
  </ip>
</network>

Please shed me some light. TIA


B.R.
satimis
  #2 (permalink)  
Old 08-02-2008
broli's Avatar
broli broli is offline
Registered User
  
 

Join Date: Dec 2007
Location: Argentina
Posts: 215
on the /etc/network/interfaces of the guest, you have the word dhcp
im not familiar with debian's way of networking,but im sure that is not what you want
  #3 (permalink)  
Old 08-02-2008
satimis satimis is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 45
Quote:
Originally Posted by broli View Post
on the /etc/network/interfaces of the guest, you have the word dhcp
im not familiar with debian's way of networking,but im sure that is not what you want
Hi broli,


dhcp is dynamic IP. It is working. Guest can connect Internet.

I tried to set "interfaces" with a static IP as a separate PC working alone but without result. I think the settings on "interface" on all Linux distro will be the same.


satimis
  #4 (permalink)  
Old 08-02-2008
broli's Avatar
broli broli is offline
Registered User
  
 

Join Date: Dec 2007
Location: Argentina
Posts: 215
Quote:
Originally Posted by satimis View Post
Hi broli,


dhcp is dynamic IP. It is working. Guest can connect Internet.

I tried to set "interfaces" with a static IP as a separate PC working alone but without result. I think the settings on "interface" on all Linux distro will be the same.


satimis
i know what dhcp is.
red hat based distros do not use that file to configure networking

if you use dhcp you wont be able to set a "static" ip, unless you have control over the dhcp server
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:33 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0