trace route to get default gateway - mac_raw or udp?
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Share projects and connect with makers.
Joined before the site update? first.
New to WIZnet Makers?
We sent a verification link to your address. Open it to activate your account, then log in.
Accounts from this email provider are reviewed by an administrator after verification. Approval usually takes one business day.
Already have an account?
Enter your email address. If it belongs to an account, we'll send a link to set a new password. Members who joined before the site update use this to set their password.
If an account uses that address, we sent a link to set a new password. The link works once and expires in 30 minutes.
Know your password?
Need an account?
RE: trace route to get default gateway - mac_raw or udp?
by Eugeny ·
Use DHCP, one of the parameters returned is router IP address.
RE: RE: trace route to get default gateway - mac_raw or udp?
by euwemax ·
dang!
I hate it when that happens!
dhcp has all the dhcp stuff already there… I learned a lot trying to figure out where that stuff was kept. I should have just started from scratch, and read a chapter on dhcp. Super bad habit trying to cut corners.
thanks for bailing me out.
may you get rich and famous and have all the borsch you can eat!
um… is there a way to get these values if I have a static ip?
RE: trace route to get default gateway - mac_raw or udp?
by Eugeny ·
Of course. Just broadcast DHCP discover and request out (following the process) and in the last ack you are guaranteed to get what you need, however only in case there’s DHCP server in the local network.