LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-16-2011, 10:58 AM   #1
mattsoftnet
Member
 
Registered: Jan 2006
Posts: 120

Rep: Reputation: 15
RTNETLINK answers: Cannot assign requested address


Code:
[root@server network-scripts]# service network restart
Shutting down interface br0:                               [  OK  ]
Shutting down interface br1:                               [  OK  ]
Shutting down interface br2:                               [  OK  ]
Shutting down interface eth0:                              [  OK  ]
Shutting down interface eth2:                              [  OK  ]
Shutting down loopback interface:                          [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth0:                                [  OK  ]
Bringing up interface eth1:  RTNETLINK answers: Cannot assign requested address
can't add eth1 to bridge br1: Invalid argument
                                                           [  OK  ]
Bringing up interface eth2:                                [  OK  ]
Bringing up interface br0:                                 [  OK  ]
Bringing up interface br1:                                 [  OK  ]
Bringing up interface br2:                                 [  OK  ]
I ran into some problems where I had to reinstall the os on my server. I'm running centos 6 and kvm. fresh install, updated, now trying to set up bridged networking. I don't know what this error means or where to look for more information.

ifcfg-eth0
Code:
DEVICE=eth0
HWADDR=6c:62:6d:c8:e4:d9
ONBOOT=yes
BRIDGE=br0
BOOTPROTO=none
TYPE=Ethernet
IPV6INIT=no
USERCTL=no
ifcfg-br0
Code:
DEVICE=br0
ONBOOT=yes
TYPE=Bridge
BOOTPROTO=none
IPADDR=192.168.3.2
NETMASK=255.255.255.0
GATEWAY=192.168.3.10
STP=on
DELAY=0
IPV6INIT=no
USERCTL=no
ifcfg-eth1
Code:
DEVICE=eth1
ONBOOT=yes
BRIDGE=br1
BOOTPROTO=none
TYPE=Ethernet
IPV6INIT=no
USERCTL=no
ifcfg-br1
Code:
DEVICE=br1
ONBOOT=yes
TYPE=Bridge
BOOTPROTO=none
IPADDR=192.168.210.2
GATEWAY=192.168.210.2
STP=on
DELAY=0
IPV6INIT=no
USERCTL=no
ifcfg-eth2
Code:
DEVICE=eth2
ONBOOT=yes
BRIDGE=br2
BOOTPROTO=none
TYPE=Ethernet
IPV6INIT=no
USERCTL=no
ifcfg-br2
Code:
DEVICE=br2
ONBOOT=yes
TYPE=Bridge
BOOTPROTO=none
IPADDR=192.168.220.2
GATEWAY=192.168.220.2
STP=on
DELAY=0
IPV6INIT=no
USERCTL=no

the local network is in the 192.168.3. range. the temp router ends in 10, but will be 1 when running in a virtual machine. eth0 is the lan, eth1 wan, eth2 not in use. in the past I've always gotten the wan bridge to work by setting an unused ip/subnet just to bring the interface online but not request an ip via dhcp.

Last edited by mattsoftnet; 08-16-2011 at 11:00 AM.
 
Old 08-17-2011, 12:13 AM   #2
mattsoftnet
Member
 
Registered: Jan 2006
Posts: 120

Original Poster
Rep: Reputation: 15
I've slept on it, and now I'm thinking, I need to learn more about what I'm trying to do. back to reading books while my server sits offline *sadface*

what I don't get, the first time I set up centos 6 and kvm and networking, I had it working perfectly the first time. a week later, disaster. the servers networking seemed to drag down to 10kbs, and a few days before that 2 hard drive failures at the same time. I've ordered a new pci nic and a power supply just in case. already improved cabinet cooling with a better wall wart. now, setting up the networking with virt-manager the same way I was before, doesn't work. I'm sure something dumb is wrong.
 
Old 08-17-2011, 04:09 AM   #3
mattsoftnet
Member
 
Registered: Jan 2006
Posts: 120

Original Poster
Rep: Reputation: 15
I removed the card and reinstalled the os. seems to be ok now. also, I added the static ip 192.168.3.2 to both br0 and eth0. not sure if it should be set that way, but I think it's working so far. haven't tried the other bridge yet.
 
  


Reply



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
bringing up interface eth1 rtnetlink answers file exists, error adding address homyangcha Linux - Newbie 7 10-20-2010 11:40 PM
[SOLVED] Cannot assign requested address, problem, shred_eng Linux - Networking 2 03-03-2010 10:47 AM
cannot assign requested address multios Slackware 5 05-18-2009 08:17 PM
ioctl[SIOCGIFADDR]: Cannot assign requested address mmcgann Linux - Wireless Networking 1 06-20-2006 12:09 PM
Ssh tunnel : cannot assign requested address sieker Linux - Networking 6 11-11-2005 01:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:27 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