Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ pgrep -lf dhcp
- 6241 python /usr/bin/neutron-dhcp-agent --config-file /etc/neutron/neutron.conf --config-file=/etc/neutron/dhcp_agent.ini
- 6306 dnsmasq --no-hosts --no-resolv --strict-order --bind-interfaces --interface=tapf4c7f6d5-fa --except-interface=lo --pid-file=/opt/stack/data/neutron/dhcp/a75d124a-8b29-4250-9441-cd8944533400/pid --dhcp-hostsfile=/opt/stack/data/neutron/dhcp/a75d124a-8b29-4250-9441-cd8944533400/host --dhcp-optsfile=/opt/stack/data/neutron/dhcp/a75d124a-8b29-4250-9441-cd8944533400/opts --leasefile-ro --dhcp-range=set:tag0,192.168.42.0,static,86400s --dhcp-lease-max=256 --conf-file= --domain=openstacklocal
- 6376 dnsmasq --no-hosts --no-resolv --strict-order --bind-interfaces --interface=tap8cc936d5-f8 --except-interface=lo --pid-file=/opt/stack/data/neutron/dhcp/fb706a5e-c4b3-43a8-a41f-5718333b7602/pid --dhcp-hostsfile=/opt/stack/data/neutron/dhcp/fb706a5e-c4b3-43a8-a41f-5718333b7602/host --dhcp-optsfile=/opt/stack/data/neutron/dhcp/fb706a5e-c4b3-43a8-a41f-5718333b7602/opts --leasefile-ro --dhcp-range=set:tag0,10.0.0.0,static,86400s --dhcp-lease-max=256 --conf-file= --domain=openstacklocal
- (I restarted q-dhcp at some point, I think the earlier dnsmasq instance just lingered)
- $ sudo ovs-vsctl show
- a9014c39-72d4-41ec-b256-75c9a5f143cc
- Bridge "br-p7p1"
- Port "phy-br-p7p1"
- Interface "phy-br-p7p1"
- Port "br-p7p1"
- Interface "br-p7p1"
- type: internal
- Bridge br-int
- Port "tapf4c7f6d5-fa" <--- the first DHCP's port
- tag: 4095
- Interface "tapf4c7f6d5-fa"
- type: internal
- Port "qr-644cba0f-c8"
- tag: 1
- Interface "qr-644cba0f-c8"
- type: internal
- Port "tap8cc936d5-f8" <--- the second DHCP's port
- tag: 1
- Interface "tap8cc936d5-f8"
- type: internal
- Port "tapa21ffba9-70" <--- the VM's port
- tag: 3
- Interface "tapa21ffba9-70"
- Port br-int
- Interface br-int
- type: internal
- Port "int-br-p7p1"
- Interface "int-br-p7p1"
- Bridge br-tun
- Port patch-int
- Interface patch-int
- type: patch
- options: {peer=patch-tun}
- Port "vxlan-192.168.0.2" // <-- disregard this, I was playing with VXLAN earlier but am not using it anymore
- Interface "vxlan-192.168.0.2"
- type: vxlan
- options: {in_key=flow, local_ip="192.168.0.1", out_key=flow, remote_ip="192.168.0.2"}
- Port br-tun
- Interface br-tun
- type: internal
- Bridge br-ex
- Port br-ex
- Interface br-ex
- type: internal
- Port "qg-af7e3080-5d"
- Interface "qg-af7e3080-5d"
- type: internal
- ovs_version: "1.11.0"
- $ sudo ovs-ofctl dump-flows br-p7p1
- NXST_FLOW reply (xid=0x4):
- cookie=0x0, duration=504.414s, table=0, n_packets=9, n_bytes=1462, idle_age=374, priority=4,in_port=5,dl_vlan=3 actions=strip_vlan,NORMAL
- cookie=0x0, duration=2258.886s, table=0, n_packets=3, n_bytes=238, idle_age=607, priority=4,in_port=5,dl_vlan=1 actions=strip_vlan,NORMAL
- cookie=0x0, duration=2262.087s, table=0, n_packets=11, n_bytes=874, idle_age=615, priority=2,in_port=5 actions=drop
- cookie=0x0, duration=2264.168s, table=0, n_packets=0, n_bytes=0, idle_age=2264, priority=1 actions=NORMAL
- $ sudo tcpdump -evnni br-int
- tcpdump: WARNING: br-int: no IPv4 address assigned
- tcpdump: listening on br-int, link-type EN10MB (Ethernet), capture size 65535 bytes
- 19:31:04.287111 fa:16:3e:1f:3d:d9 > ff:ff:ff:ff:ff:ff, ethertype 802.1Q (0x8100), length 326: vlan 3, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto UDP (17), length 308)
- 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from fa:16:3e:1f:3d:d9, length 280, xid 0x341b7b75, secs 120, Flags [none]
- Client-Ethernet-Address fa:16:3e:1f:3d:d9
- Vendor-rfc1048 Extensions
- Magic Cookie 0x63825363
- DHCP-Message Option 53, length 1: Discover
- Client-ID Option 61, length 7: ether fa:16:3e:1f:3d:d9
- MSZ Option 57, length 2: 576
- Parameter-Request Option 55, length 7:
- Subnet-Mask, Default-Gateway, Domain-Name-Server, Hostname
- Domain-Name, BR, NTP
- Vendor-Class Option 60, length 12: "udhcp 1.20.1"
- Instance log:
- [...]
- udhcpc (v1.20.1) started
- Sending discover...
- Sending discover...
- Sending discover...
- No lease, failing
- WARN: /etc/rc3.d/S40-network failed
- [...]
Advertisement
Add Comment
Please, Sign In to add comment