Ask Your Question
0

How to debug the router's interface ? all the interfaces status are down.

asked 2017-08-03 20:46:00 -0600

liaodalin19903 gravatar image

updated 2017-08-03 21:10:09 -0600

I created a router, and in it I created a interface for the router:

image description

But you see, the status all is Down, how to debug the interface? why it is down?


EDIT-1

In the /var/log/neutron/server.log, I use cat server.log | grep router, get the below information:

[![enter image description here][2]][2]

image description

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2017-08-04 01:08:02 -0600

liaodalin19903 gravatar image

Finally, I find in my /etc/neutron/plugins/ml2/ml2_conf.ini configuration file, I did not configured the ml2 type_drivers and mechanism_drivers. So I config them:

# openstack-config --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 type_drivers flat,vlan,vxlan
# openstack-config --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 mechanism_drivers linuxbridge,l2population

And restart the neutron-server:

systemctl restart neutron-server.service
systemctl restart  neutron-l3-agent.service

Now, it works fine.

edit flag offensive delete link more
0

answered 2017-08-04 06:51:31 -0600

Mohit gravatar image

You can use linux namespace ping as well

ip netns list

identify router id and identify the interface - sudo ip netns exec qrouter-**************** ifconfig Use the ping utility to ping from router - sudo ip netns exec qrouter-**************** ping a.b.c.b

edit flag offensive delete link more

Comments

i have same problem. but when i ping to 8.8.8 there is DHU

erchad gravatar imageerchad ( 2019-02-05 22:21:06 -0600 )edit
0

answered 2019-01-16 07:39:51 -0600

amer.hwitat gravatar image

I'm working on RHEL 7 with Openstack 14 on VMware VM, the router interfaces on neutron is down on horizon, I treid solutions with vBridge or without vBridge, didn't work also your solution didn't work with me, I tried the following links:

https://www.linuxtechi.com/install-use-openvswitch-kvm-centos-7-rhel-7/ (https://www.linuxtechi.com/install-us...)

https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/8/html/networking_guide/sec-connect-instance (https://access.redhat.com/documentati...)

https://ask.openstack.org/en/question/25234/one-router-port-is-always-down/ (https://ask.openstack.org/en/question...)

didn't work, my VM External eno16377736 IP is 192.168.43.77

I used the following to install openstack:

#

systemctl disable NetworkManager

systemctl stop NetworkManager

systemctl disable firewalld

systemctl stop firewalld

setenforce 0

systemctl restart network

systemctl status network

#

subscription-manager list --available

subscription-manager attach --pool=

subscription-manager repos --enable=rhel-7-server-optional-rpms \ --enable=rhel-7-server-extras-rpms --enable=rhel-7-server-rh-common-rpms

subscription-manager repos --enable=rhel-7-server-openstack-14-rpms

subscription-manager repos --enable=rhel-7-server-openstack-14-devtools-rpms

subscription-manager repos --enable=rhel-7-server-openstack-14-tools-rpms

yum repolist enabled #enable all

subscriptiion-manager repos --enable=

yum install -y yum-plugin-priorities yum-utils

yum install openstack-selinux

rpm -q --whatprovides rubygem-json ###### rubygem-json-1.7.7-20.el7.x86_64

yum install -y openstack-packstack

#

also this didn't work with me:

ovs-vsctl add-br br-ex

ip addr add 192.168.43.77/24 dev br-ex

ip addr flush dev eno16777736

ip addr add 192.168.43.77/24 dev br-ex

ovs-vsctl add-port br-ex eno16777736

ip link set dev br-ex up

virsh net-define /tmp/ovs-network.xml \ Network ovs-network defined from /tmp/ovs-network.xml

and this:

neutron net-create External1 --provider:network_type flat --provider:physical_network br-ex --router:external=true --shared

neutron net-create External2 --provider-physical-network provider --provider:physical_network eno16777736 --router:external=true --shared

openstack subnet create --network provider \ --allocation-pool start=192.168.43.1,end=192.168.43.240 \ --dns-nameserver 192.168.43.1 --gateway 192.168.43.1 \ --subnet-range 192.168.43.0/24 provider

mysql

create database neutron; grant all privileges on neutron.* to 'neutron'@'localhost' identified by 'server'; grant all privileges on neutron.* to 'neutron'@'%' identified by 'server'; quit

export | grep OS_declare -x OS_AUTH_URL="https://192.168.43.77:5000/v3"

source admin-openrc.sh

openstack user create --domain default --password-prompt neutron

openstack role add --project service --user neutron admin

openstack service create --name neutron --description "OpenStack Networking" network

openstack endpoint create --region RegionOne network public http://controller:9696

openstack endpoint create --region RegionOne network internal http://controller:9696

openstack endpoint create --region RegionOne network admin http://controller:9696

systemctl enable neutron-server.service neutron-openvswitch-agent.service neutron-dhcp-agent.service neutron-metadata-agent.service neutron-ovs-cleanup.service

systemctl start neutron-server.service neutron-openvswitch-agent.service neutron-dhcp-agent.service neutron-metadata-agent.service neutron-ovs-cleanup.service

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: 2017-08-03 20:46:00 -0600

Seen: 2,095 times

Last updated: Jan 16