Juniper EX4300 - DHCP relay response dropped by switch
Hi,
I have a simple topology with Juniper EX4300 as the access-switch and DHCP server running on a VM connected thru an L3-interface (ge-0/0/12). A host connected to ge-0/0/0 is trying to get IP using DHCP. I see(log at the end) that the request is being relayed to the server, getting a response back, juniper stack is processing it, and then dropping it with the following reason:
Aug 10 19:51:47.218568 [INFO] [default:default-switch][RLY][INET][ge-0/0/12.0] jdhcpd_packet_handle: *** routing packet ***
Aug 10 19:51:47.218636 [NOTE] jdhcpd_io_route_packet: Failed to route packet, No route to host
Can you please have a look at the config, state, and logs, and comment on what config is wrong from my side?
Regards,
Ramesh
root> show version
fpc0:
--------------------------------------------------------------------------
Model: ex4300-48p
JUNOS EX Software Suite [13.2X51-D35.3]
JUNOS FIPS mode utilities [13.2X51-D35.3]
JUNOS Online Documentation [13.2X51-D35.3]
JUNOS EX 4300 Software Suite [13.2X51-D35.3]
JUNOS Web Management [13.2X51-D35.3]
JUNOS py-base-powerpc [13.2X51-D35.3]
##DHCP Relay configuration
root> show configuration forwarding-options
storm-control-profiles default {
all;
}
dhcp-relay {
server-group {
ws-dhcp {
10.10.5.0;
}
}
active-server-group ws-dhcp;
group all {
interface irb.10;
}
}
## Host interface
root> show configuration interfaces ge-0/0/0
unit 0 {
family ethernet-switching {
vlan {
members VLAN0010;
}
storm-control default;
}
}
## L3 uplink to connect to DHCP server
root> show configuration interfaces ge-0/0/12
unit 0 {
family inet {
address 10.10.2.3/24;
}
}
## Static route to DHCP server towards uplink
root> show configuration routing-options
static {
route 10.10.5.0/24 next-hop 10.10.2.2;
}
## SVI/BVI/IRB interface for VLAN 10
root> show configuration interfaces irb.10
family inet {
address 10.10.30.1/24;
}
## VLAN 10 configuration
root> show configuration vlans VLAN0010
vlan-id 10;
l3-interface irb.10;
root> show vlans
Routing instance VLAN name Tag Interfaces
default-switch VLAN0010 10
ge-0/0/0.0*
root> show dhcp relay binding
IP address Session Id Hardware address Expires State Interface
0.0.0.0 1 00:e0:4c:68:08:bc 0 SELECTING irb.10
root> show ethernet-switching table brief
Ethernet switching table : 1 entries, 1 learned
Routing instance : default-switch
Vlan MAC MAC Age Logical
name address flags interface
VLAN0010 00:e0:4c:68:08:bc D - ge-0/0/0.0
root> show log dhcp_logfile | last 100
Aug 10 19:51:47.214000 [INFO] [default:default-switch][RLY][INET][ge-0/0/0.0] --[ OPTION code 12, len 12, data 4d 61 64 68 61 76 61 73 2d 4d 42 50 ]--
Aug 10 19:51:47.214032 [INFO] [default:default-switch][RLY][INET][ge-0/0/0.0] --[ OPTION code 255, len 0 ]--
Aug 10 19:51:47.214058 security-packet-handle input bd VLAN0010
Aug 10 19:51:47.214091 [DEBUG] jdhcpd_security_client_key_compose: mac 0 e0 4c 68 8 bc subnet 0 key_type CK_TYPE_SECURITY_V4 8
Aug 10 19:51:47.214124 [INFO] jdhcpd_security_packet_handle: security-packet-handle client entry not found from client pdu
Aug 10 19:51:47.214162 [INFO] [default:default][RLY][INET][ge-0/0/0.0][SID=1] jdhcpd_packet_relay: *** relaying packet ***
Aug 10 19:51:47.214200 [DEBUG][default:default][RLY][INET][ge-0/0/0.0][SID=1] jdhcpd_packet_relay: Setting giaddr for non L3-wholesale client, interface ge-0/0/0.0, flags 2050, address 10.10.30.1
Aug 10 19:51:47.214236 [INFO] [default:default][RLY][INET][ge-0/0/0.0][SID=1] jdhcpd_packet_relay: added giaddr 10.10.30.1
Aug 10 19:51:47.214276 [INFO] [default:default][RLY][INET][ge-0/0/0.0][SID=1] jdhcpd_packet_relay: Using server group ws-dhcp, with 1 DHCP server(s)
Aug 10 19:51:47.214791 [INFO] [default:default][RLY][INET][ge-0/0/0.0] jdhcpd_io_send_packet: DHCP PDU from 10.10.30.1 to 10.10.5.0 port 67 out interface 568 len 300
Aug 10 19:51:47.216353 [INFO] jdhcpd_io_l2ng_pfe_reader: jdhcpd_pfe_pkt_hdr_t: len 328 L3ifindex = 602, L2ifindex = 0, dpi_rtbl=0
Aug 10 19:51:47.216420 rc_entry_sus_find_ipaddr: TYPE 0 for IP ADDR 10.10.30.1 in routing context LR default/RI default-switch
Aug 10 19:51:47.216467 [INFO] [default:default-switch][RLY][INET][ge-0/0/12.0] jdhcpd_io_pfe_packet: SNOOP : recv sa 10.10.30.1 da 10.10.30.1, src_port 67, dst_port 67 if name ge-0/0/12.0 len 300
Aug 10 19:51:47.216507 [INFO] --[ DHCP/BOOTP from == 10.10.5.0, port == 67 ]--
Aug 10 19:51:47.216536 [INFO] --[ DHCP/BOOTP size == 300, op == 2 ]--
Aug 10 19:51:47.216563 [INFO] --[ DHCP/BOOTP flags == 0 ]--
Aug 10 19:51:47.216590 [INFO] --[ DHCP/BOOTP htype == 1, hlen == 6 ]--
Aug 10 19:51:47.216617 [INFO] --[ DHCP/BOOTP hops == 1, xid == 84d6e0b0 ]--
Aug 10 19:51:47.216644 [INFO] --[ DHCP/BOOTP secs == 4, flags == 0000 ]--
Aug 10 19:51:47.216672 [INFO] --[ DHCP/BOOTP ciaddr == 0.0.0.0 ]--
Aug 10 19:51:47.216700 [INFO] --[ DHCP/BOOTP yiaddr == 10.10.30.10 ]--
Aug 10 19:51:47.216729 [INFO] --[ DHCP/BOOTP siaddr == 10.10.5.0 ]--
Aug 10 19:51:47.216757 [INFO] --[ DHCP/BOOTP giaddr == 10.10.30.1 ]--
Aug 10 19:51:47.217117 [INFO] --[ DHCP/BOOTP chaddr == 00 e0 4c 68 08 bc 00 00 00 00 00 00 00 00 00 00 ]--
Aug 10 19:51:47.217151 [INFO] --[ DHCP/BOOTP sname == ]--
Aug 10 19:51:47.217178 [INFO] --[ DHCP/BOOTP file == ]--
Aug 10 19:51:47.217211 [INFO] [default:default-switch][RLY][INET][ge-0/0/12.0] --[ OPTION code 53, len 1, data DHCP-OFFER ]--
Aug 10 19:51:47.217246 [INFO] [default:default-switch][RLY][INET][ge-0/0/12.0] --[ OPTION code 54, len 4, data 0a 0a 05 00 ]--
Aug 10 19:51:47.217290 [INFO] [default:default-switch][RLY][INET][ge-0/0/12.0] --[ OPTION code 51, len 4, data 00 00 1c 20 ]--
Aug 10 19:51:47.217324 [INFO] [default:default-switch][RLY][INET][ge-0/0/12.0] --[ OPTION code 1, len 4, data ff ff ff 00 ]--
Aug 10 19:51:47.217359 [INFO] [default:default-switch][RLY][INET][ge-0/0/12.0] --[ OPTION code 3, len 4, data 0a 0a 1e 01 ]--
Aug 10 19:51:47.217397 [INFO] [default:default-switch][RLY][INET][ge-0/0/12.0] --[ OPTION code 15, len 11, data 65 78 61 6d 70 6c 65 2e 6f 72 67 ]--
Aug 10 19:51:47.217429 [INFO] [default:default-switch][RLY][INET][ge-0/0/12.0] --[ OPTION code 255, len 0 ]--
Aug 10 19:51:47.217481 [INFO] [default:default-switch][RLY][INET][ge-0/0/12.0] --[ DHCP/BOOTP from == 10.10.5.0, port == 67 ]--
Aug 10 19:51:47.217831 [INFO] [default:default-switch][RLY][INET][ge-0/0/12.0] --[ DHCP/BOOTP size == 300, op == 2 ]--
Aug 10 19:51:47.217869 [INFO] [default:default-switch][RLY][INET][ge-0/0/12.0] --[ DHCP/BOOTP flags == 0 ]--
Aug 10 19:51:47.217901 [INFO] [default:default-switch][RLY][INET][ge-0/0/12.0] --[ DHCP/BOOTP htype == 1, hlen == 6 ]--
Aug 10 19:51:47.217932 [INFO] [default:default-switch][RLY][INET][ge-0/0/12.0] --[ DHCP/BOOTP hops == 1, xid == 84d6e0b0 ]--
Aug 10 19:51:47.217963 [INFO] [default:default-switch][RLY][INET][ge-0/0/12.0] --[ DHCP/BOOTP secs == 4, flags == 0000 ]--
Aug 10 19:51:47.217997 [INFO] [default:default-switch][RLY][INET][ge-0/0/12.0] --[ DHCP/BOOTP ciaddr == 0.0.0.0 ]--
Aug 10 19:51:47.218030 [INFO] [default:default-switch][RLY][INET][ge-0/0/12.0] --[ DHCP/BOOTP yiaddr == 10.10.30.10 ]--
Aug 10 19:51:47.218136 [INFO] [default:default-switch][RLY][INET][ge-0/0/12.0] --[ DHCP/BOOTP siaddr == 10.10.5.0 ]--
Aug 10 19:51:47.218176 [INFO] [default:default-switch][RLY][INET][ge-0/0/12.0] --[ DHCP/BOOTP giaddr == 10.10.30.1 ]--
Aug 10 19:51:47.218220 [INFO] [default:default-switch][RLY][INET][ge-0/0/12.0] --[ DHCP/BOOTP chaddr == 00 e0 4c 68 08 bc 00 00 00 00 00 00 00 00 00 00 ]--
Aug 10 19:51:47.218251 [INFO] [default:default-switch][RLY][INET][ge-0/0/12.0] --[ DHCP/BOOTP sname == ]--
Aug 10 19:51:47.218290 [INFO] [default:default-switch][RLY][INET][ge-0/0/12.0] --[ DHCP/BOOTP file == ]--
Aug 10 19:51:47.218322 [INFO] [default:default-switch][RLY][INET][ge-0/0/12.0] --[ OPTION code 53, len 1, data DHCP-OFFER ]--
Aug 10 19:51:47.218360 [INFO] [default:default-switch][RLY][INET][ge-0/0/12.0] --[ OPTION code 54, len 4, data 0a 0a 05 00 ]--
Aug 10 19:51:47.218396 [INFO] [default:default-switch][RLY][INET][ge-0/0/12.0] --[ OPTION code 51, len 4, data 00 00 1c 20 ]--
Aug 10 19:51:47.218431 [INFO] [default:default-switch][RLY][INET][ge-0/0/12.0] --[ OPTION code 1, len 4, data ff ff ff 00 ]--
Aug 10 19:51:47.218465 [INFO] [default:default-switch][RLY][INET][ge-0/0/12.0] --[ OPTION code 3, len 4, data 0a 0a 1e 01 ]--
Aug 10 19:51:47.218503 [INFO] [default:default-switch][RLY][INET][ge-0/0/12.0] --[ OPTION code 15, len 11, data 65 78 61 6d 70 6c 65 2e 6f 72 67 ]--
Aug 10 19:51:47.218535 [INFO] [default:default-switch][RLY][INET][ge-0/0/12.0] --[ OPTION code 255, len 0 ]--
Aug 10 19:51:47.218568 [INFO] [default:default-switch][RLY][INET][ge-0/0/12.0] jdhcpd_packet_handle: *** routing packet **\*
Aug 10 19:51:47.218636 [NOTE] jdhcpd_io_route_packet: Failed to route packet, No route to host
{master:0}
root>
No comments:
Post a Comment