Ask Your Question
0

How to assign a fixed ip (external net) with a prefixed MAC address to a server ?

asked 2015-01-20 20:03:32 -0500

Imagen gravatar image

I have installed OpenStack-Icehouse using all-in-one RDO packstack.It is working properly with an internal network(10.0.1.0/24) and an external network (private network: 192.168.10.0/24). I need access to a nova server from the public internet address(130.xx.xxx.0/24). So I configured the second external network with activating the second neutron-l3-agent following http://docs.openstack.org/havana/config-reference/content/adv_cfg_l3_agent_multi_extnet.html (here:'OpenStack Configuration Reference - havana').

Then, I configured a router(pubRouter with its ip address 130.xx.xxx.213) for routing outgoing traffic from the sever to the internet. It also works well. Next I associated a floating ip address(130.xx.xxx.214) to the server. However, I can not get access(ping) to 130.xx.xxx.214 from a host in the same network segment.

Since our public network(130.xx.xxx.0/24) requires registration of MAC address without overlapping, I can not use floating point IP which responds with the same MAC address of pubRouter. Then I want to assign a fixed IP to the server with a prefixed MAC address. I tried to assign it by the followoing procedure.

neutron port-create --tenant-id 1007ff49f7224c818ad7f5c1fd4510dc --mac-address 00:0c:29:bc:7e:91 --fixed-ip subnet_id=extLan2,ip_address=130.xx.xxx.214 --security-group batch_server ExternalNet2

nova interface-attach --port-id 750c6c90-4f4f-46c5-9883-5deab555a3e2 LBS-1

Openstack configured the port and attached it to the server:LBS-1, and shows the right information in the dashboard. Unfortunately, It does not work. I checked it by

ping 130.xx.xxx.214
   (no response)
arp -a
   host.domain.cx (130.xx.xxx.111) at 00:1a:64:c1:bc:f4 [ether] on em1
   server.domain.cx (130.xx.xxx.214) at <incomplete> on em1
   - - - - - - - - -

No MAC address is assigned properly to the port. Then, I cannot ping from a host in the same network segment. How can I do to solve the problem ?

Software versions: packstack Icehouse 2014.1.1dev1258, neutron 2.3.4, ovs-vsctl (Open vSwitch) 2.1.3
The draft network diagram is shown below.

 ExternalNet     ExternalNet2     
192.1.68.10.0/24   130.xx.xxx.0/24
        |                  |                                   10.0.1.0/24
        |                  |                                      |       
        |                  |-----------xxx.213-----{pubRouter}----|
        |                  |                                      | 
        |                  |                                      | 
        |                  |-----------xxx.214------[ LBS-1 ]-----|
        |                  |                          server      |
        |                  |                                      |
        |--------------------------------10.100---{g4mRouter}-----|
        |                  |                                      |
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-08-04 02:37:47 -0500

theTelik gravatar image

Hi have you solved the issue ? I am facing similar problem. We have in out network IP assigned to MAC by admins, so in order to make openstack VMs visible in the network we have to assign them with MAC, but the neutron API doesn't have such option.

I'am wondering if floating IP's port can be updated with MAC.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-01-20 20:03:32 -0500

Seen: 1,729 times

Last updated: Jan 20 '15