routers work at layer 3 (network) which usually means TCP/IP. Routing decisions are made based on a packets DESTINATION IP address.
The network address
Usually the router.
Network Layer - Does path determination and logical addressing.
router#config t router(config)#router eigrp 100 #net NETWORK ADDRESS
A router can improve network security if it includes the use of NAT (network address translation) and/or a firewall.
The Router only has one M.A.C Address and One IP Address But, the Router can have many Connections ( Devices using the network ) That may shoe up as their IP Addresses. But the Router only Has One IP Address
in general the router uses the network address to compare to the routing table. Specifically, on the internet, the Router looks up the destination IP address in the router table to determine where to route the packet.
It uses the MAC address, Media Access Control. Every packet sent from a computer contains its MAC address. The router stores this in its routing table. When it receives a packet with a destiation address of that MAC address, then it forwards it to that computer. This is called NAT, Network Address Translation. It uses the Destination IP address
Here is a basic overview of the configuration of RIP on a Cisco router:Router(config)#router ripRouter(config-router)#network 192.168.1.0Router(config-router)#network 192.168.2.0Router(config-router)#network 192.168.3.0Router(config-router)#network 192.168.4.0Router(config-router)#network 192.168.5.0The 192.168.x.0 address can be changed to whatever address you would like to be broadcast over RIP. There are also other settings that can be configured.If you use RIPv2 you can also have the following configuration:Router(config)#router ripRouter(config-router)#version 2Router(config-router)#network 192.168.1.0Router(config-router)#network 192.168.2.0Router(config-router)#network 192.168.3.0Router(config-router)#network 192.168.4.0Router(config-router)#network 192.168.5.0Router(config-router)#exitRouter(config)#exitRouter#%SYS-5-CONFIG_I: Configured from console by consoleRouter#copy running-config startup-configDestination filename [startup-config]?Building configuration...[OK]Router#
That is normally the IP address of a router
When a host on network A sends a message to a host on network B, the router looks at the destination IP address in the packet’s header to determine where to forward the message. This IP address is used to identify the specific network and host within that network. The router uses its routing table to decide the best path for the packet based on this destination IP address. The MAC address is not used for routing between different networks, as it only applies to the local network segment.
Your Router is assigned an IP address that is known as a public IP address then your router assigns out IP addresses that are known as local IP addresses. So the answer is yes and yes!