There are not "DNAT" rules seen in the router namespace.
But the IP rule shows 54170: from 10.0.0.3 lookup 16 is defined.
root@ubuntu-controller:~/devstack# ip rule
0: from all lookup local
32766: from all lookup main
32767: from all lookup default
54170: from 10.0.0.3 lookup 16
167772161: from 10.0.0.1/28 lookup 167772161
root@ubuntu-controller:~/devstack#
The fipnamespace also has the routes required to route the traffic for the floatingip. (192.168.100.104).
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@ubuntu-controller:~/devstack# ip route
169.254.113.28/31 dev fpr-6f01678c-6 proto kernel scope link src 169.254.113.29
169.254.119.66/31 dev fpr-24ee8045-1 proto kernel scope link src 169.254.119.67
192.168.100.0/24 dev fg-687a771e-78 proto kernel scope link src 192.168.100.105
192.168.100.104 via 169.254.113.28 dev fpr-6f01678c-6
root@ubuntu-controller:~/devstack# exit
Also on the 'Node1', floatingIP is configured but the DNAT rule is missing in the router namespace.
stack@ubuntu- controller: ~/devstack$ neutron floatingip-list ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ----+-- ------- ------- --+---- ------- ------- ---+--- ------- ------- ------- ------- ------- + ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ----+-- ------- ------- --+---- ------- ------- ---+--- ------- ------- ------- ------- ------- + 51d7-4277- 9835-e3aee82a57 73 | 948bc6fadbbc4ca 4ad4d223dcc76b9 f1 | 10.0.0.3 | 192.168.100.104 | 9187cca2- a96f-495f- abf4-041de154fc 95 | f720-47b0- a05e-4b309d192d af | 948bc6fadbbc4ca 4ad4d223dcc76b9 f1 | 10.0.0.13 | 192.168.100.100 | 95e78c3c- 21a2-4d62- 9fc9-ad5451ef73 cd | ffc7-438d- 8320-23c44de2ab 09 | 948bc6fadbbc4ca 4ad4d223dcc76b9 f1 | 10.0.0.14 | 192.168.100.114 | e4b5e14e- 6625-4bbb- 884c-36f94dbc60 9d | ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ----+-- ------- ------- --+---- ------- ------- ---+--- ------- ------- ------- ------- ------- +
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+------
| id | tenant_id | fixed_ip_address | floating_ip_address | port_id |
+------
| 0fd57315-
| 5ad5be80-
| 6fc89fb9-
+------
root@ubuntu- controller: ~/devstack# iptables -t nat -S l3-agent- OUTPUT l3-agent- POSTROUTING l3-agent- PREROUTING l3-agent- float-snat l3-agent- snat postrouting- bottom l3-agent- PREROUTING l3-agent- OUTPUT l3-agent- POSTROUTING postrouting- bottom l3-agent- POSTROUTING ! -i rfp-6f01678c-6 ! -o rfp-6f01678c-6 -m conntrack ! --ctstate DNAT -j ACCEPT l3-agent- PREROUTING -d 169.254.169.254/32 -i qr-+ -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 9697 l3-agent- snat -j neutron- l3-agent- float-snat postrouting- bottom -m comment --comment "Perform source NAT on outgoing traffic." -j neutron- l3-agent- snat
-P PREROUTING ACCEPT
-P INPUT ACCEPT
-P OUTPUT ACCEPT
-P POSTROUTING ACCEPT
-N neutron-
-N neutron-
-N neutron-
-N neutron-
-N neutron-
-N neutron-
-A PREROUTING -j neutron-
-A OUTPUT -j neutron-
-A POSTROUTING -j neutron-
-A POSTROUTING -j neutron-
-A neutron-
-A neutron-
-A neutron-
-A neutron-
There are not "DNAT" rules seen in the router namespace.
But the IP rule shows 54170: from 10.0.0.3 lookup 16 is defined.
root@ubuntu- controller: ~/devstack# ip rule controller: ~/devstack#
0: from all lookup local
32766: from all lookup main
32767: from all lookup default
54170: from 10.0.0.3 lookup 16
167772161: from 10.0.0.1/28 lookup 167772161
root@ubuntu-
The fipnamespace also has the routes required to route the traffic for the floatingip. (192.168.100.104).
stack@ubuntu- controller: ~/devstack$ sudo ip netns exec fip-5c94b420- 0b1f-4025- 864a-9209d8e721 1f bash controller: ~/devstack# ifconfig 168.100. 105 Bcast:192. 168.100. 255 Mask:255.255.255.0 3eff:fe81: 972e/64 Scope:Link
collisions: 0 txqueuelen:1
root@ubuntu-
fg-687a771e-78 Link encap:Ethernet HWaddr fa:16:3e:81:97:2e
inet addr:192.
inet6 addr: fe80::f816:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:290 errors:0 dropped:0 overruns:0 frame:0
TX packets:114 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:26045 (26.0 KB) TX bytes:15101 (15.1 KB)
fpr-24ee8045-1 Link encap:Ethernet HWaddr 16:f4:be:5b:39:72 255.255. 254 beff:fe5b: 3972/64 Scope:Link
collisions: 0 txqueuelen:1000
inet addr:169.254.119.67 Bcast:0.0.0.0 Mask:255.
inet6 addr: fe80::14f4:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:738 (738.0 B) TX bytes:958 (958.0 B)
fpr-6f01678c-6 Link encap:Ethernet HWaddr 32:44:92:f3:90:01 255.255. 254 92ff:fef3: 9001/64 Scope:Link
collisions: 0 txqueuelen:1000
inet addr:169.254.113.29 Bcast:0.0.0.0 Mask:255.
inet6 addr: fe80::3044:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:96 errors:0 dropped:0 overruns:0 frame:0
TX packets:113 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:14345 (14.3 KB) TX bytes:19510 (19.5 KB)
lo Link encap:Local Loopback
collisions: 0 txqueuelen:1
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@ubuntu- controller: ~/devstack# ip route controller: ~/devstack# exit
169.254.113.28/31 dev fpr-6f01678c-6 proto kernel scope link src 169.254.113.29
169.254.119.66/31 dev fpr-24ee8045-1 proto kernel scope link src 169.254.119.67
192.168.100.0/24 dev fg-687a771e-78 proto kernel scope link src 192.168.100.105
192.168.100.104 via 169.254.113.28 dev fpr-6f01678c-6
root@ubuntu-