Cannot access secondary router from primary - networking

I bought a second router and I set it up using LAN/WAN configs. From the secondary router clients, I can ping and access clients on primary router. But from the primary router, I cannot access any clients on secondary router. I cannot even ping the second router IP address.
Primary router IP: 192.168.100.1
Secondary router IP: 192.168.100.2 and 192.168.0.1
DHCP enabled on second router: 192.168.0.2-100
Ping from 192.168.100.1 to 192.168.100.2 passed only when I enabled "enable wan response" option.
But I cannot ping 192.168.0.1. I dont understand why clients from 192.168.0.0/24 network can access 192.168.100.0/24 network but the reverse cannot be achieved. Tried disabling firewall and security in router 2 but did not work.
Could you help me out?

If your pings are going through 192.168.0.1 (DHCP) you should add a route on the secondary router (assuming on Linux):
router2$ route add -net 192.168.100.0 netmask 255.255.255.0 gw 192.168.0.1

Related

How to identify which network interface is used for a given route?

I am on a Windows 10 machine. I have got the below routes configured in my machine.
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.5 1
10.1.0.0 255.255.0.0 192.168.2.1 192.168.2.5 1
10.2.0.0 255.255.0.0 192.168.3.1 192.168.3.5 1
When ping IP 10.1.1.1, I want to determine which network interface will be used to route the traffic.
Is there any network utility that can help me find the correct route based on the destination IP?
If you ping 10.1.1.1, it will use the interface with the IP 192.168.2.5 looking at your route table.
You can also use tracert 10.1.1.1 to see what route your network traffic will take.

Why ping local address "192.168.1.1" will redirect to network provider's static IP?

Here is my scenario,
my wifi router broadcasting guest_wifi by its self, which I never set up.
After I found out, I tried to ping 192.168.1.1 it echoes to regional network provider's static IP address.
Could not login to router's default admin page on 192.168.1.1
Router brand
Linksys EA6900

Trouble with static routing on a single-router network simulated in GNS3

I'm trying to simulate this simple one-router network in GNS3, but I'm having trouble setting up static routing from the left half (connected to router's fastEthernet0/0) to the right half(connected to router's fastEthernet0/1).
Here are the sequence of commands I type in the router telnet, but as you can see below, no static route is made and I can't understand why.
conf t
interface fastEthernet0/0
ip address 192.168.88.5 255.255.255.0
no shut
interface fastEthernet0/1
ip address 10.0.0.5 255.255.255.0
no shut
end
conf t
ip route 192.168.88.0 255.255.255.0 10.0.0.1
ip route 192.168.88.0 255.255.255.0 10.0.0.2
ip route 10.0.0.0 255.255.255.0 192.168.88.1
ip route 10.0.0.0 255.255.255.0 192.168.88.2
end
show ip route
The result, as you can see there's no static route built at all:
What may I be doing wrong? All help will be appreciated. (note: I'm not allowed to change the network topology or add new routers)
you better use your router's interface as a gateway for connecting to other networks.
So you may use:
ip route 192.168.88.0 255.255.255.0 fastEthernet0/0
instead of fastEthernet0/0, you can say 192.168.88.5. both are correct.
ip route 10.0.0.0 255.255.255.0 10.0.0.5
The problem with your code is you're targeting the whole network just to one system in your whole network
Your target to another network should be either your router's interface or another (next) router's interface.

sharing files on different subnets on windows

I am getting internet from a WISP close to my house using an out-door wireless network adapter. so first the internet comes to a desktop PC and from there i want to share it using a wireless router between other devices. beside internet sharing, i want devices connected to my wireless router to share files between each other and PC1.
here is what I've done to get as close as possible to what i need for my network. both devices running windows 8.1.
PC1 (deskptop):
IP address: 192.168.1.1
Default gateway: 192.168.1.1
Subnet: 255.255.255.0
shared network adapter with Ethernet port on PC1. Ethernet port is connected to WAN port of the router. turned on network discovery.
PC1 Ethernet port :
IP address: 192.168.137.1
Subnet: 255.255.255.0
Router:
Set to Wireless router Mode.
Static IP address for WAN port in Router:
IP address: 192.168.137.42
Default Gateway: 192.168.137.1
Subnet: 255.255.255.0
DHCP: enabled from 192.168.1.100 to 192.168.1.224
Port forwarding option: (virtual server) :
192.168.1.100 to 192.168.137.1 (forward internal IP to External IP of router)
Forward port: 5900 to 5900
DMZ: enabled for IP address (192.168.1.100)
PC2 (Laptop):
Static IP address: 192.168.1.100
Subnet: 255.255.255.0
Default Gateway: 192.168.1.1
changed network mode to private. turned on file sharing and network discovery and shared folders.
PC1 can see PC2 using VNC viewer on 192.168.137.42:5900, Done.
PC1 and PC2 both have internet connection, Done.
PC1 (desktop) can't access files/folders on PC2 (laptop
). that's the problem.
Thanks for your help.
It may be easier to get a second Ethernet card for PC1 and hook it to one of your routers switch-ports.
OR
If your routers firmware allows it, you could override the default gateway of DHCP clients to use PC1's IP. That wouldn't require a second NIC.

Change gateway sequence with network manager

My computer has 2 ethernet ports and 1 wireless port. One of the ethernet ports (eth5) and the wireless port (wlan0) are both configured to connect to a network server, and the other ethernet port (eth4) is configured to connect to a local network switch for communicating with some local devices. The route table of the computer looks like this (as I can not post image yet):
Destination Gateway Genmask Iface
0.0.0.0 141.21.32.1 0.0.0.0 eth5
10.10.10.0 0.0.0.0 255.255.255.0 eth4
141.21.12.0 0.0.0.0 255.255.252.0 wlan0
141.21.32.0 0.0.0.0 255.255.224.0 eth5
169.254.0.0 0.0.0.0 255.255.0.0 eth5
My question is that, how I could change the sequence of the gateways with the network-manager in ubuntu (permanently), so that the gateway of wlan0 will be used before the eth4's. Otherwise when I unplug the cable from eth5, I will lose connection to the network (the gateway of eth4 will be used by default).
I tried editing the /etc/network/interfaces file, but it conflicts with the network-manager, and it can not handle the dynamic events (e.g., when network cable is plugged or unplugged), meaning that its settings are static, while the network-manager can handle these things perfectly, and change the network configurations adaptively, so I would like to find a solution for this problem with network-manager.
The os is ubuntu 13.04 32bit. Thanks for viewing and I will appreciate for any advice!
Problem is solved by checking the option "use this connection only for resources on its network" in the "Routes" page of the IPv4 settings of the configuration interface for the local network (used by eth4) in network-manager.

Resources