Fedora Linux Support Community & Resources Center
  #1  
Old 15th January 2010, 12:22 PM
satimis Offline
Registered User
 
Join Date: Jul 2004
Posts: 1,386
linuxfedorafirefox
Problem on setup static IP

Hi folks,


Problem to setup static IP

Host - Fedora 12 64bit
KVM - virtualization software
VM04 - Fedora 12 64bit
VM01 - Debian 5.0 64bit
VM02 - Debian 5.0 64bit
VM03 - Ubuntu 9.10 64bit


I have been tweaking a whole day unable to setup static IP on VM04, always staying on dynamic IP, 192.168.0.18, which was first detected before setting static IP

VM04
$ cat /etc/sysconfig/network-scripts/ifcfg-eth0
Code:
# Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
DEVICE=eth0
IPADDR=192.168.0.204
NETMASK=255.255.255.0
BOOTPROTO=static
HWADDR=52:54:00:7F:1C:2D
ONBOOT=yes
TYPE=bridge
DEFROUTE=yes
NAME="System eth0"
UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
DNS1=202.14.67.4
DNS2=202.14.67.14
NM_CONTROLLED=yes
IPV6INT=no
USERCTL=no
GATEWAY=192.168.0.1
PEERDNS=yes
PEERROUTES=yes

On Host:-
[satimis@fedora12 ~]$ route
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     *               255.255.255.0   U     0      0        0 br0
192.168.122.0   *               255.255.255.0   U     0      0        0 virbr0
link-local      *               255.255.0.0     U     1003   0        0 br0
default         192.168.0.1     0.0.0.0         UG    0      0        0 br0

$ sudo brctl show
Code:
bridge name	bridge id		STP enabled	interfaces
br0		8000.00261844b61a	no		eth0
							vnet0
virbr0		8000.000000000000	yes

Do I need to create;
/etc/qemu-ifup
Code:
bridge=virbr0
ifconfig $1 0.0.0.0 up
brctl addif $bridge $1 || true
and

/etc/qemu-ifdown
Code:
bridge=virbr0
brctl delif $bridge $1 || true
ifconfig $1 down
???

However VM1, VM2 and VM3 don't have problem. They work on static IP


Please help. TIA


B.R.
satimis
Reply With Quote
  #2  
Old 15th January 2010, 12:41 PM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,300
linuxfedorafirefox
Is network manager starting the dhclient on VM4 ?

You *should* be able to config a static address for NM, but I still find this tool a little "twitchy" in practice.

You can always disable the Networkmanager with: chkconfig NetworkManager off
then set-up the static address in system-config-network.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #3  
Old 15th January 2010, 02:29 PM
satimis Offline
Registered User
 
Join Date: Jul 2004
Posts: 1,386
linuxfedorafirefox
Quote:
Originally Posted by stevea View Post
Is network manager starting the dhclient on VM4 ?
Yes. Always the same dynamic IP


Quote:
You can always disable the Networkmanager with: chkconfig NetworkManager off
then set-up the static address in system-config-network.
On console:
$ sudo chkconfig NetworkManager off
[sudo] password for satimisvm04:
No printout


On Gnome desktop

System -> Administration -> Network Device Control

Network Device Control Window
No entry there. Clicking "info" starts
About system-config-network 1.5.99
Code:
This software is distributed under the GPL
Pls Report bugs to Red Hat's Bug Tracking
System: http://bugzilia.redhat.com/
[Credit]		[Close]

B.R.
satimis
Reply With Quote
Reply

Tags
problem, setup, static

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Another static ip config problem jhillsmo Servers & Networking 3 8th January 2010 08:20 PM
Need advice on /etc/hosts for static ISP IP, router, LAN, static LAN IP rshartog Servers & Networking 2 21st February 2009 05:24 AM
Static IP Problem jazzer386 Using Fedora 38 15th September 2008 04:20 AM
static ip address setup!! zwarrior Servers & Networking 4 1st March 2006 03:52 PM
FC2 Overriding static if in favor of dhcp system set for static pkraus109 Servers & Networking 2 21st September 2004 05:13 PM


Current GMT-time: 02:21 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat