EzDevInfo.com

wan interview questions

Top wan frequently asked interview questions

Finding router's WAN/External MAC address

I want to find my router's WAN MAC address.

  • On the WEB UI, WAN MAC is hidden.
  • SSH / Telnet is not available (password protected) on router.
  • There is no labels/engravings on physical unit which shows the WAN MAC ID.
  • I can't disassemble the router, router's "owner" is the ISP, they "lend" the device during subscription.

I want to use another router, but I need "clone" the current MAC to new device.

Can I find the WAN MAC address of the router?


Source: (StackOverflow)

How is traffic separated between internal and external IPs?

If I ping 192.168.0.X from my home network then it will attempt to look within my network for that address and not the external WAN IP. However I can ping 74.125.224.163 and it will ping google.com.

I can set my internal network to be 74.125.224.X and then if I try and ping, it would again look only within my network but I imagine (I haven't attempted changing it) that I could still communicate with Google's server on the same IP address.

At what level is this separated? How will the packets know that the destination of the IP address is to go out to the WAN instead of the LAN?


Source: (StackOverflow)

Advertisements

Can router connect back to itself over Internet and why?

As it it sates in title.

Every router I had couldn't connect back to itself over Internet, for example:

  1. I open forward port 22 for ssh on my PC.
  2. I try to connect to that ssh with other PC in same network, with ssh user@my.public.ip but I get refused by router
  3. I can connect from other network (other public IP) just fine, with same ssh user@my.public.ip

Is that just my bad luck with routers or there is something behind it?

Thanks


Source: (StackOverflow)

Cannot reach the computer in WAN

I wanted to split the internet connection in my room. And my brother also wanted a better wifi accessability. So we bought a router (NETGEAR JWNR2010v5). All we wanted works great, good wifi. I have multiple LAN connections in my room. But now I am unable to reach the computer in the WAN network.

The image illustrates the situation. I do not know to much about networks. Can someone please help?

http://i.stack.imgur.com/8Mstg.jpg enter image description here

Thanks


Source: (StackOverflow)

How to access an node of an LAN via WAN?

Lets say I have a router that is connected to the Internet. An WAN IP address is given by ISP. It is using PPPoE ADSL, the IP address is not static, every time it connected, assigned a different IP address.

There is an web server 192.168.0.100 running in the LAN.

I heard something like DMZ + DynDNS can do the job? But not sure what these are and how they work.

Any there way(s) to access the local node 192.168.0.100 via WAN, so that I can reach that node even I am not home.


Source: (StackOverflow)

Does Wake-on-LAN via WAN needs port forwarding?

If yes, how does it work? The pc still has no ip, so where should I forward the port?


Source: (StackOverflow)

Getting WAN IP 0.0.0.0 after some time

I hope this problem belongs here and you will be able to help me (otherwise please migrate the question to Superuser).

Background and problem description

I am connected to the internet via my cable TV provider. My connection looks like this: Thomson cable modem <> Asus RT-N66U router <>Wired and wireless clients. Every time I manually connect/reconnect the cable between my modem and router the connection comes back. After some time (usually, but not always, 6 hours, while lease time router reports in the interface is 12 hours, while lease time router reports in the interface is 12 hours) the connection status is still "connected", but on the router the WAN IP gets 0.0.0.0. As a result, there is no internet access, and also no access to my home server from WAN. But my ISP still claims that the modem is perfectly visible from WAN, it gets the IP properly. Whenever I restart my router (either from its console or using the physical switch) or I disconnect and then reconnect theble between modem and router, everything comes back to normal. LAN works perfectly all the time.

BTW, I don't think it matters, but... Not long ago, my ISP put me behind a double NAT, but as I need a public IP to access my home server, I contacted them to bring it back to the previous state. It worked like a bliss and my DS was accessible from WAN again, either via IP:port or DDNS:port.

Below, there are some details regarding my network environment:

Modem

  • It gets a public, non-static IP (however, it is semi-static, so that I have one IP for days, weeks or even months).
  • It runs in bridge mode, with all the ports totally transparent.
  • I have no access to its web interface - it is always configured by ISP.

Router

  • It is the only DHCP server for my LAN,
  • The modem is connected to the router over the router's vlan2, while vlan1 is my LAN,
  • There is a port forwading rule on my router, that allows to access the web panel of DS (Diskstation): two custom ports, namely: 666 and 999 are forwarded to IP:192.168.1.3, one is used for HTTP, another one for HTTPS, plus, I have forwarded the 80 port to it as well.
  • The DS MAC is binded to IP:192.168.1.3,
  • There is no MAC cloning - the MAC my ISP has is the router's original MAC,
  • IPv6 is disabled

LAN clients are:

  • wirelessly connected computers (MBA, Windows), phones and tablet (iPhone, iPad, Windows Phone, Android Nexus 5),
  • Synology Diskstation DS211j, which is runing their new software, DSM v 5.0 (it is configured to obtain IP automatically from router's DHCP) ,
  • a Samsung TV,
  • a Sony CMT-G2NiP audio system.

What I have tried so far - without success:

  • turning off all the devices and then turning them on again (all the options with disconnecting the power cord and leaving them off for longer times included),
  • setting DMZ on modem IP,
  • setting DMZ on DS IP,
  • enabling and then disabling UPnP on the router's WAN,
  • tweaking router's MTU from 1500 to 1492,
  • changing DHCP query frequency from Agressive to Normal,
  • disabling router's firewall,
  • disabling DDNS on DS,
  • changing DNS on router to Google ones (one thing that is strange here is that when set to automatically obtain it, is that the primary DNS address is also 0.0.0.0, while secondary is ok),
  • restoring router settings to factory defaults,
  • 30-30-30 reset of the router,
  • flashing router a 3rd party modified firmware (Merlin build 374.40 - currently installed),
  • enabling dual WAN in failover mode - thinking that maybe router will try to connect to second WAN after the primary one disconnects and as there is no such, it will re-establish the connection on primary one,
  • switching physical ports devices are connected to on my modem and router.

Some log entries that I think may play a role here:

  • Apr 6 17:05:47 dhcp client: bound 0.0.0.0 via 109.173.192.1 during 43200 seconds.
  • Apr 6 18:47:28 kernel: eth1: received packet with own address as source address

Some more settings I think may have something in common with this:

  • WAN connection type is Automatic IP (means: DHCP I think).
  • NAT on WAN is enabled, and UPnP is disabled.

TCP settings (accessible in Merlin's build):

  • TCP Timeout: Established: 1200
  • TCP Timeout: syn_sent: 120
  • TCP Timeout: syn_recv: 60
  • TCP Timeout: fin_wait: 120
  • TCP Timeout: time_wait: 120
  • TCP Timeout: close: 10
  • TCP Timeout: close_wait: 60
  • TCP Timeout: last_ack: 30
  • UDP Timeout: Assured: 180
  • UDP Timeout: Unreplied: 30

WAN NAT passthrough rules:

  • PPTP Passthrough: Enabled
  • L2TP Passthrough: Enabled
  • IPSec Passthrough: Enabled
  • RTSP Passthrough: Enabled
  • H.323 Passthrough: Enabled
  • SIP Passthrough: Enabled
  • Enable PPPoE Relay: Disabled

Does anyone have any idea how to get out of this?

(Should there be more info necessary, please indicate it in comments, I will update the question text.)


Source: (StackOverflow)

Dual WAN Router with Load Balancing AND Fail-over

This might be a silly question...
We are looking for a Dual WAN Router for fail-over reasons, but since we pay for both connections anyway, we might as well take advantage of them. What confuses me, is that they all write, that you can use the router in EITHER fail-over or Load Balancing mode. What does that mean if I run it in Load Balancing mode and one connection goes down?

Since we are at it, any device you can recommend (that supports vpn too)?


Source: (StackOverflow)

What is the real difference between LAN and WAN?

What I understand is:

  • A LAN is connecting two or more computers to form a cable network between them.
  • A WAN is connecting two or more computers over a broad area to form a cable network between them.

So, is the difference the length of cable used to form a network or does it depend if it's formed in a city, state or between countries?


Source: (StackOverflow)

Expanding wireless coverage: What are the differences between LAN to LAN and LAN to WAN when it comes to connecting two wireless routers?

I'm trying to link two wireless routers with an Ethernet cable in order to expand my wireless network. Both routers need to provide wired and wireless Internet access.

I'd like to know the differences between the "LAN to LAN" and "LAN to WAN" connection methods, their advantages and disadvantages.


Source: (StackOverflow)

Is there a dual-WAN router that can route based on protocol?

I've got two internet connections at home: DSL and satellite. The DSL connection has bad bandwidth (1.5 Mbps) but very low latency; the satellite connection is the opposite (good bandwidth, terrible latency). I use them for different purposes: the DSL connection works well for SSH connections and other remote-access situations where latency is more important; satellite is for video (Netflix, etc.) where bandwidth is more important.

Is there a router than can gang these two networks together, letting me intelligently route traffic over a given WAN? That is, I'd like to define some rules like "send all SSH traffic via WAN 1", "send HTTP via WAN 2", etc. Idaeally, I'd like to also route on IP address ("send HTTP to a.b.c.d via WAN 1") but that'd just be a bonus.

I've looked at a couple dual-WAN routers (the Duolinks SW24 and the Peplink Balance 20), and it's not clear whehter they'll do this. To be clear, I'm not looking for load balancing -- I want to be able to control which network particular types of connections use.

I'm not opposed to building my own router if that's the only option; I probably remember enough iptables to make it happen. But I'd prefer to spend some cash if there's something that'll do this out of the box.


Source: (StackOverflow)

DD WRT loses WAN connection, why does releasing and renewing the DHCP reestablish connection?

I'm new(ish) to networking and have been setting up a home server. Part of making sure the server is good and healthy is of course making sure I have a solid connection.

Unfortunately, our DD WRT router needs to be reset at least weekly. No one uses P2P on our network, at most there are only a few standard machines doing basic web browsing at any given moment.

Last night was the first time that I ever had a chance to get to the route of the problem, and to try a less aggressive method to repair connection rather than resetting the whole machine.

So I ping(ed) 8.8.8.8 but received no response. I was then forced to fix the issue immediately by one of the other LAN users; however, rather than resetting the router, I released and renewed the DHCP lease and connection was restored.

Leaving the routers WAN port, the next machine down the line is the modem and then off to Comcast it goes. We seem to have had problems with the same symptoms for the last three routers, all of which were Netgear/Broadcom machines, the last two ran DD WRT.

So I have three questions:

  1. Who is at fault? ISP or DDWRT?

  2. What tools can I use to more intelligently diagnose the problem than checking if a known server like Google's DNS is reachable?

  3. How can I make sure DD WRT takes care of this problem itself, even if I cant fix the route cause. For example, I have considered writing a script that pings a known server, such as 8.8.8.8, at regular intervals. If no response, a log is made of how far the machine makes it (using tools like question 2), and then the DHCP is released/renewed. I feel as though a more elegant solution should exist.


Source: (StackOverflow)

IPv6 - Public IPs, private IPs, IPs derived from the MAC address? Confused!

I'm pretty much excited for IPv6 because of the large address room and (potential?) owning of more than one IP, or even tens of IPs (/122 subnet?)

Though one magazine has now confused me.

In a current issue (no. 3) of "CT", a German computer magazine, I read that when using IPv6 your IP address consists of your MAC address and various other things, and that this address will be public on the web, no matter what access point / LAN you connect to.

My knowledge of IP(v6) is in contrary of this. I thought you will normally always have a a local network IP and NAT takes care of your Internet access, and your provider gives the NAT router an IP.

I've heard of the 6to4 interface, but does this one give you your own ip in the IPv6 net?

Personally I hope it still is through a personal IP space (like 192.168, 127.16-31, 10. in IPv4) in private networks with a NAT going to the Internet. And also I hope that providers will offer subnets to private customers so they don't have to use NAT anymore. Yay for converting your LAN into the WAN and using better security (so Computers from the same subnet still get access rights like normal).


Source: (StackOverflow)

Why would a DB connection over LAN be slower than a WAN connection?

I'd noticed for ages that a MySQL database connection over my LAN was significantly slower than a database connection over the Internet.

I'm running Windows 7 32bit and I'm connected to a switch using an Ethernet cable. The switch is connected to a modem/router which is where my Internet connection arrives in the building. I am not using WiFi.

I ran the following code:

//store current time
$start = microtime(true);

//connect to database outside my LAN
$c1 = mysql_connect("1.2.3.4", "user1", "pass1");
mysql_select_db("database1", $c1);

//print out the time taken in seconds
echo microtime(true) - $start, "<br>";

//close the database connection
mysql_close($c1);


//store current time
$start2 = microtime(true);
//connect to database on my LAN
$c2 = mysql_connect("192.168.0.10", "user2", "pass2");
mysql_select_db("database2", $c2);

//print out time taken in seconds
echo microtime(true) - $start2, "<br>";

//close database connection
mysql_close($c2);

three times which returned the following times:

External WAN database: 0.054498910903931, 0.055356025695801, 0.05623197555542

Internal LAN database: 5.0052859783173, 5.0053160190582, 5.005627155304

The LAN file transfer speed (using Samba to share the drive on the Ubuntu machine) is approx 30MB/s and my broadband connection speed is 35Mbps down and 7Mbps up.

Anecdotally, logging into the local server using SSH is quite laggy.

I don't know what other information you might need, so please ask for more, I'm stumped as to why a local connection is so much slower!


Source: (StackOverflow)

What information can my ISP see from my router?

I installed a new router today and saw my IP address change because the new router has a different MAC address and I am just curious on what information my ISP can see from my network.

I know they log the WAN MAC address and can figure out the manufacturer with the OUI, what about the router host name and other MAC addresses like the LAN and wireless MAC?


Source: (StackOverflow)