I'm in a campus network, Where the network has an hierarchy. We connect to internet using Proxy servers. All our computer IPs are something like 10.*.*.*
.
10.1.*.*
=> Dept 1 (mathematics)10.1.1.*
=> 1st floor of this dept.10.1.1.2
=> Default gateway for this floor110.1.2.*
=> 2nd floor of this dept.10.1.2.2
=> Default gateway for this floor210.1.3.*
=> 3rd floor of this dept.10.1.3.2
=> Default gateway for this floor3
Similarly for other department
10.2.*.*
=> Dept 2 (computer science)10.2.1.*
=> 1st floor of this dept.10.2.1.2
=> Default gateway for this floor110.2.2.*
=> 2nd floor of this dept.10.2.2.2
=> Default gateway for this floor210.2.3.*
=> 3rd floor of this dept.10.2.3.2
=> Default gateway for this floor3
etc.. This goes on for 30 such deparments. I hope you got the picture. Now, I've following queries:
I want to know if the hardware (which is hanging in the corridor of each floor) that is used as "Default Gateway" is a Router or a Switch? I've its physical address "00:07:0d:e2:57:fc" / Cisco_e2:57:fc. Well, I don't have any kind of access to inspect the hardware. Its locked inside a box and hanging at a height of 3 meters.
I'm wondering what would be the src address in the IP Header of a packet that is sent from my computer (my IP is 10.3.2.47) and received by say google.com. Will it be my local IP address? Wouldn't that cause problem? How would google.com again send a reply packet to me? Because my computer is not visible outside my campus.
What if I want to send a packet from my machine( 10.3.2.47) to a computer in another private lan like mine. Say to a guy in mathematics deptartment in university of china. He may have IP address like (10.3.2.57) or even my IP address ( 10.3.2.47).
I'm really curious about how the communication occurs between a computer in private lan and outside world.