Ask Your Question
0

Finding the right gateway IP address on a /24 network

asked 2021-01-07 03:19:45 +0000

kenchao gravatar image

I'm currently learning how to analyze network packets using wireshark, I was given a pcap file to identify the right gateway address and add a route to my machine and access the internal network.

I take a look on the ARP request "who has x.x.x.x? Tell xx.xx.xx.xx"

However when I add the routing on the table, I got an error: RTNETLINK answers: No such process (Which I think I didn't get the right gateway for the x.x.x.x)

May I know the other ways of identifying the right gateway besides from filtering ARP requests?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2021-01-07 09:07:33 +0000

Jaap gravatar image

Okay, there's a lot of details missing here, but here's something to think about.

  1. Can you find an IP packet which is addressed to egress this network?
  2. From this packet, can you find the MAC address of the host this packet is sent to?
  3. From this MAC address, can you find out the corresponding IP address?
edit flag offensive delete link more

Comments

This is what I missed, I got it now.

kenchao gravatar imagekenchao ( 2021-01-07 15:11:55 +0000 )edit
0

answered 2021-01-07 08:35:08 +0000

tomasz gravatar image

updated 2021-01-07 08:35:42 +0000

Select a conversation crossing outside of LAN and check the destination MAC on outgoing packets. That's the gateway.

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

Question Tools

1 follower

Stats

Asked: 2021-01-07 03:19:45 +0000

Seen: 3,549 times

Last updated: Jan 07 '21