Network Connectivity Troubleshooting between windows PC and EVE-NG LAB
Issue Summary:
Problem: Unable to ping router interface (192.168.10.254) which is the inside interface inside my EVE-NG LAB from PC (192.168.2.11). Symptoms: Router could reach the PC, but PC could not reach the router. Resolution: The issue was caused by firewall settings on the PC. The firewall was blocking ICMP requests. Solution: Created specific firewall rules to allow ICMPv4 echo requests and replies, ensuring secure network connectivity.
Table of Contents
- Initial Setup Verification
- Clearing ARP Cache
- Firewall Configuration
- Verifying NAT Translations
- Extended Ping Test
- Checking Routing and ARP Entries
- Packet Capture
- Traceroute
- Review Router Logs
Initial Setup Verification
- Check PC's Route Table:
- Windows:
route print
- Linux:
ip route show
- Windows:
- Check Router’s Route Table:
- Ensure the routing table includes routes to both networks:
show ip route
- Ensure the routing table includes routes to both networks:
Clearing ARP Cache
- On PC (Windows):
arp -d *
- On Router:
clear arp
Firewall Configuration
Creating ICMPv4 Rule in Windows Firewall
Using Windows Defender Firewall with Advanced Security (GUI)
- Open Windows Defender Firewall with Advanced Security:
- Press
Win + R
, typewf.msc
, and pressEnter
.
- Press
- Create a New Inbound Rule:
- In the left pane, click
Inbound Rules
. - In the right pane, click
New Rule...
.
- In the left pane, click
- Select Rule Type:
- Select
Custom
and clickNext
.
- Select
- Specify Rule Details:
- Program: Select
All programs
and clickNext
. - Protocol and Ports: Select
ICMPv4
and customize forEcho Request
. - Click
Next
.
- Program: Select
- Scope:
- Specify IP addresses or select
Any IP address
. - Click
Next
.
- Specify IP addresses or select
- Action:
- Select
Allow the connection
and clickNext
.
- Select
- Profile:
- Select
Domain
,Private
, and/orPublic
. - Click
Next
.
- Select
- Name the Rule:
- Name the rule (e.g.,
Allow ICMPv4 Echo Request
). - Click
Finish
.
- Name the rule (e.g.,
Using Command Line (PowerShell)
- Open PowerShell as Administrator:
- Press
Win + X
and selectWindows PowerShell (Admin)
.
- Press
- Create the Rule:
New-NetFirewallRule -DisplayName "Allow ICMPv4 Echo Request" -Protocol ICMPv4 -IcmpType 8 -Direction Inbound -Action Allow -Profile Any
Secure Solution to Manage Domain Firewall Settings
-
Create an Outbound Rule for ICMPv4:
New-NetFirewallRule -DisplayName "Allow Outbound ICMPv4" -Protocol ICMPv4 -Direction Outbound -Action Allow -Profile Any
-
Configure Specific ICMP Traffic for Domain Profile Only:
- Ensure the rule applies only to the
Domain
profile for security.
Set-NetFirewallRule -Name "Allow ICMPv4 Echo Request" -Profile Domain Set-NetFirewallRule -Name "Allow Outbound ICMPv4" -Profile Domain
- Ensure the rule applies only to the
Verifying NAT Translations
- Check NAT Translations on the Router:
show ip nat translations
- Clear NAT Translations:
clear ip nat translation *
Extended Ping Test
- Perform an Extended Ping from the Router:
ping 192.168.2.11 source 192.168.10.254
Checking Routing and ARP Entries
- Verify Router's IP Route Table:
show ip route
- Check ARP Entries on the Router:
show arp
- Check ARP Entries on the PC (Windows):
arp -a
Packet Capture
- Use Wireshark on PC to Monitor ICMP Traffic:
- Install and open Wireshark.
- Start a capture on the network interface connected to 192.168.2.0/24.
- Ping from the PC to the router (192.168.10.254).
- Check Wireshark for ICMP echo replies.
Traceroute
- Perform Traceroute from the PC:
- Windows:
tracert 192.168.10.254
- Linux:
traceroute 192.168.10.254
- Windows:
Review Router Logs
- Check the Router Logs for Errors or Dropped Packets:
show log
Additional Steps
- Verify Interface Configurations on the Router:
show running-config interface FastEthernet0/0 show running-config interface FastEthernet1/0
- Check for Overlapping Subnets or IP Conflicts:
- Ensure there are no overlapping subnets or IP conflicts in the network setup.
- Check Firewall Rules on the Router:
- Ensure there are no ACLs or firewall rules blocking ICMP.
show access-lists
By systematically following these steps, you should be able to identify and resolve the connectivity issues between your PC and the router in a secure manner.