LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-15-2010, 09:31 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Rep: Reputation: 53
Can't 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 with static IP


Please help. TIA


B.R.
satimis
 
Old 01-15-2010, 10:20 AM   #2
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

This is a longshot, but:
Quote:
VM04
$ cat /etc/sysconfig/network-scripts/ifcfg-eth0
Do you have a second "ifcfg-eth*" file, one for the MAC? And did you change it (to static) too?
 
Old 01-15-2010, 11:29 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Original Poster
Rep: Reputation: 53
Quote:
Originally Posted by paulsm4 View Post
Hi -

This is a longshot, but:
Do you have a second "ifcfg-eth*" file, one for the MAC? And did you change it (to static) too?
$ ls /etc/sysconfig/network-scripts/ | grep ifcfg
Code:
ifcfg-eth0
ifcfg-lo
$ cat /etc/sysconfig/network-scripts/ifcfg-lo
Code:
 
DEVICE=lo
IPADDR=127.0.0.1
NETMASK=255.0.0.0
NETWORK=127.0.0.0
# If you're having problems with gated making 127.0.0.0/8 a martian,
# you can change this to something else (255.255.255.255, for example)
BROADCAST=127.255.255.255
ONBOOT=yes
NAME=loopback
B.R.
satimis
 
  


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
Cannot setup static IP with openSUSE Fournier Linux - Newbie 2 03-18-2008 07:58 AM
static IP setup problem SRS Linux - Networking 3 07-10-2007 10:27 PM
setup the static ip address hansi umayangan Suse/Novell 1 04-04-2005 03:54 AM
SuSE 9.0 and 9.2 Static IP Setup ? frank-01 Linux - Networking 5 01-01-2005 07:28 PM
How to setup static IP on RH8 RevDavis Linux - Networking 2 02-23-2004 05:14 AM


All times are GMT -5. The time now is 04:48 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration