Showing posts with label Networking. Show all posts
Showing posts with label Networking. Show all posts

Thursday, 23 February 2012

Wiring Diagrams for Straight Through, Cross Over and Y cables


Wiring Diagrams for Straight Through, Cross Over and Y cables

Note: The hook is underneath in all cases and Pin one is always on the Left
RJ 11




RJ 45



Straight Through CableColor CodeColor
Pin 1 
Pin 2
Pin 3
Pin 4
Pin 5
Pin 6
Pin 7
Pin 8
white orange
orange
white green
blue
white blue
green
white brown
brown













  
 
Cross Over CableColor CodeColor
Pin 1 
Pin 2
Pin 3
Pin 4
Pin 5
Pin 6
Pin 7
Pin 8
white green
green
white orange
blue
white blue
orange
white brown
brown









  



Y CABLE SETTING

Y CableColor CodeColor
Pin 1 
Pin 2
Pin 3
Pin 6


Pin 1
Pin 2
Pin 3
Pin 6
white orange
orange
white green
green


blue
white blue
white brown
brown








 


How can I connect two networks with different IP addresses?


For internet access all you have to do is properly setup the second router:

connect the WAN port to the first router
set the WAN interface to either DHCP or manual/Static (whatever is available)

for manual or static the following needs to be done:
set the WAN IP Address and Subnetmask to one on the first network (e.g. 192.168.0.10)
set the WAN Gateway and DNS-Server to the first routers IP (e.g. 192.168.0.1)

The Ethernet side of the second Router should be setup as usual
IP Address of the Router e.g. 192.168.1.1
DHCP enabled, handing out e.g. 192.168.1.100-150 with Gateway 192.168.1.1 and DNS-Server 192.168.1.1

This is a very basic setup using the NAT feature of the Router and will allow all your clients to access the internet. 

If you need networking features between clients on both networks you will either have to enable advanced routing on the first router and add the appropriate routes to the network behind the second Router or use the easier and better option by combining both networks into one 192.168.0.x




---------------------------------------------------------------------------------------------------------------------
setup as expected the clients on the second network (192.168.1.0) should already have access to the internet.

How it should look like
Router 1 nothing changed at IP 192.168.0.1
all connected clients should have internet access

Router 2 with WAN connected to Router 1
WAN set to static/manual
IP = 192.168.0.10
GW = 192.168.0.1
DNS = 192.168.0.1 or from your provider, whatever works

LAN IP Address = 192.168.1.1
DHCP enabled
Range = 192.168.1.100-150
(GW = 192.168.1.1 if there is an option to set it)
DNS = 192.168.1.1 or from your provider, whatever worksIf you need connection between the LANs other then Internet access the static route on Router 1 should beDestination = 192.168.1.0Subnet Mask = 255.255.255.0Gateway = 192.168.0.10Or in words: You have to tell your first Router where it can find the second network.Should work, can work, but doesn't have to... there is a lot that can go "wrong", problems with Network Address Translation or the used Routing Protocol, problems with DHCP being forwarded to the second network ~ most of the time problems occur with firmware fixed "settings" that are not available to the user.

I once had a router that simply won't do the job with both networks being Class C (192.168.x.x). After changing the second network to Class A (10.x.x.x) it did work.

Unless you do need different Subnets I still recommend setting up a single large 192.168.0.x network ~ easier and safe to use. In that case Router 2 would just need a static IP e.g. 192.168.0.10 and then connect it to the first router via a LAN Port.

Friday, 10 February 2012

Wi-Fi networking, bridging mode

Wi-Fi networking, bridging mode allows two or more wireless access points (APs)to communicate with each for the purpose of joining multiple LANs.
Many Wi-Fi bridging mode products exist with varying levels of functionality.
Some wireless bridges support only a single point-to-point connection to another AP. Others support point-to-multipoint connections to several other APs.
Each AP in bridging mode connects to a wired LAN. Some AP models simultaneously support wireless clients while operating in bridging mode, but others work as "bridge-only" and disallow any clients from connecting. Some APs only support bridging with other APs from the same manufacturer or product family.
AP bridging capability (when it is available) can be enabled or disabled through a configuration option. Normally, APs in bridging mode discover each other via Media Access Control (MAC) addresses that must be set as configuration parameters.
While operating in bridging mode, wireless APs utilize a substantial amount of bandwidth. Wireless clients on bridged Wi-Fi networks generally share the same bandwidth as the bridge devices. Therefore, clients tend to perform slower in bridging mode than otherwise.
In Wi-Fi, repeater mode is a variation on bridging. Rather than join multiple LANs, repeater mode is intended mainly to increase the range of a single wireless LAN by extending the same wireless signal.
Bridging Model
Sample Model From My Company to My House.
Bridge can Support  8 to 10 PC . at a time.
sample

Thursday, 9 February 2012

WINDOWS XP BRIDGE

Windows XP allows to install and use multiple network adapters, which can be all Ethernet, 
but can also be different media, like a mixture of Ethernet and USB Network adapters.

Since each segment of network cables requires for the TCP/IP protocol its own subnet, it would 
be required to configure the system with multiple network cards as a "Router" :

using for example the subnet: 192.168.1.x for the Ethernet LAN and 192.168.2.x for the USB LAN
( more information on Routing ).

Although there is an undocumented possibility to configure Windows XP as an IP-Router,
there are some inconveniences in using routers in small networks :
- except for the system acting as a router


Windows XP offers another, much better possibility : 
- to create a "Network Bridge" :

On the system with multiple 
network adapters :
In the properties of 
"My Network Places",
right-click on a network connection 
to display the context menu :
"Bridge Connections"
You will get the warning :
"To create a Network Bridge,
you must select at least two
network connections that are not
being used by Internet Connection
Sharing or the Internet Connection
Firewall"
You need to selectmultiple
Network connections :
- select with a single click the
first network connection
- hold down the Ctrl-key and
select with a single click the second
(or more) network connections
- right-click and selects now from
the pop-up/Context menu to
"Bridge Connections"
You will get for a while a message:
"please wait while Windows
bridges the connections".
Windows will create the
"Network Bridge", which for a few
seconds will be shown with
"Network Cable unplugged"
Then, your "Network Connections"
will show a new section :
- Network Bridge
If you are looking at the Properties
of any of the network adapters of
the Network Bridge, you will see
that there is nothing to configure
anymore :
all configuration is now done for
the Network Bridge :
Properties of the "Network Bridge":

Section Adapters:
- the list of network adapters,
which are part of the bridge


You need/can configure the 
Network Bridge like any
other (non-bridged) network
adapter.

for example:
you should check/ configure the
properties of the TCP/IPprotocol:
- if you are on a home-network,
I suggest to define manually the
IP-address (to avoid delays in
the availability of the network at
bootup caused by Auto-IP
configuration)


Using the "Network Bridge", it is now possible to use for all system on both the Ethernet
and the USB cable segment the same TCP/IP subnet (in this example : 192.168.1.x ) :


using a single subnet makes the use of "My Network Places" a lot easier than in a 
configuration with a Router :

All systems on the network
are now accessible in
"My Network Places"
of the Windows XP system
and in the "Network
Neighborhood" of
Windows95/98 systems.

Another possible configuration for office use :



You can use using a USB-network to connect your notebook in the office to an PC
connected to the office network and configured as "Network Bridge", allowing you
to connect to the local office server but also to remote locations via a WAN.

Since a Network Bridge is handled like
any other network adapter, you can
configure a "Network Bridge" to
"obtain an IP address automatically"
from a DHCP-server on the office
network :
- Check the status of the Network Bridge
(make a right-click and select "Status")
to check, which IP-address got assigned
by the DHCP-server.
You can also configure the USB-network
adapter on the notebook (to be connected
via the Network Bridge to the office network)
to "Obtain an IP address automatically":
make sure that the PC acting as Network
Bridge is running, when connecting your
notebook, it will allow your notebook to
get an IP-address assigned from the
DHCP-server on the office-network.

Wednesday, 8 February 2012

TCP/IP Model

TCP/IP is based on a four-layer reference model. All protocols that belong to the TCP/IP protocol suite are located in the top three layers of this model.

In Figure shown below illustrate the TCP/IP Model with protocols belongs to appropriate layer.

TCP/IP four-layer reference model
TCP/IP Model

Breif Description:

Application Layer:

Description:

Defines TCP/IP application protocols and how host programs interface with transport layer services to use the network.

Protocols:

HTTP, Telnet, FTP, TFTP, SNMP, DNS, SMTP, X Windows, other application protocols.

Transport Layer:

Description:

Provides communication session management between host computers. Defines the level of service and status of the connection used when transporting data.

Protocols:

TCP, UDP, RTP.

Internet Layer:

Description:

Packages data into IP datagrams, which contain source and destination address information that is used to forward the datagrams between hosts and across networks. Performs routing of IP datagrams.

Protocols:

IP, ICMP, ARP, RARP.

Network interface Layer:

Description:

Specifies details of how data is physically sent through the network, including how bits are electrically signaled by hardware devices that interface directly with a network medium, such as coaxial cable, optical fiber, or twisted-pair copper wire.

Protocols:

Ethernet, Token Ring, FDDI, X.25, Frame Relay, RS-232, v.35.

What is DHCP?

Dynamic Host Configuration Protocol (DHCP) is a network protocol that enables a server to automatically assign an IP address to a computer from a defined range of numbers (i.e., a scope) configured for a given network.

DHCP assigns an IP address when a system is started, for example:
  1. A user turns on a computer with a DHCP client. 
  2. The client computer sends a broadcast request looking for a DHCP server to answer. 
  3. The router directs the DISCOVER packet to the correct DHCP server. 
  4. The server receives the DISCOVER packet. Based on availability and usage policies set on the server, the server determines an appropriate address (if any) to give to the client. The server then temporarily reserves that address for the client and sends back to the client an OFFER (or DHCPOFFER) packet, with that address information. The server also configures the client's DNS servers, WINS servers, NTP servers, and sometimes other services as well. 
  5. The client sends a REQUEST (or DHCPREQUEST) packet, letting the server know that it intends to use the address. 
  6. The server sends an ACK (or DHCPACK) packet, confirming that the client has a been given a lease on the address for a server-specified period of time.

Saturday, 4 February 2012

D-Link Router Setup - Dynamic DNS Service

D-Link Router Setup - Dynamic DNS Service

D-Link routers typically support updating dynamic DNS service.  If you have already setup free dynamic DNS service with dyndns.com, you can follow these instructions to setup your D-Link router to update your DDNS automatically for you whenever your Internet connection's IP address changes.  

For these instructions, will used a D-Link DI-624 router/switch.  The setup process for all D-Link routers that support DDNS should be similar to this.

  1. Open the D-Link router control panel by going to the IP address
    http://192.168.0.1/
    in a web browser. You will be prompt for a password.  If you did not setup a password on your router, enter admin for the username and leave the password blank.
  2. Once you are logged into the router 1) click on the "Tools" tab, then 2) Click on the "DDNS" button, as seen below:

    Dlink DDNS Setup
  3. On the Dymanic DNS page do the following:
    1. Select the "Enabled" radio button for the DDNS field
    2. Select DynDns.org from the Server Address drop down menu
    3. Enter the complete Host Name that you setup with DynDns.com
    4. Enter your DynDns.com Username and Password that you setup
    5. Click the "Apply" button.
  4. If everything is correct, the page will tell you that your router is restarting.
Dynamic DNS service with dyndns.com is now configured for your router to automatically update.

Free Dynamic DNS Service Setup

Free Dynamic DNS Service Setup - No Longer Free

Unfortunately, the Dynamic DNS service provided by dyndns.com is no longer free, however, the good news is that it only costs $29.99 per year.  DynDNS or DDNS is a service that allows you to configure a domain name, such as www.mydvr.com to route to a dynamic IP address, such as those typically provided by cable and DSL internet access providers for Internet access.  A dynamic IP address means that your Internet connection is assigned a different IP address each time you connect or logon.  It is recommended that you purchase a router/switch that supports DDNS natively and  that you connect the router or switch to your cable or DSL modem.  There are other providers of free dynamic DNS service, but CCTV Camera Pros recommends Dynamic Network Services, Inc (dyndns.com) because it has been around for a long time and we have tested it thoroughly for our surveillance equipment.  Follow these setup instructions to create and configure an account with dyndns.com.  NOTE: if your internet connection supports a static IP address, it is not necessary to setup Dynamic DNS.  If you are unsure, please contact your internet service provider.
bookmark this page for future reference 

  1. Go to Dynamic Network Services website at http://www.dyndns.com/ and sign up for an account
  2. On the home page click on the Create Account link as seen below:

    Create DDNS Account
  3. Fill on all of the required fields on the sign up page and submit the sign up form.
  4. The confirmation screen will let you know that an account confirmation email will be sent to you.  Wait a few minutes to check your mail.
  5. When you receive the email, click on the link to confirm opening your account with DynDNS, then login to your account.  The confirmation link will being you to a login link.  After that, you can login from the dyndns.com home page anytime.
  6. Once logged into your account, 1) Click on the "My Services" link, 2) then the "My Hosts" link, 3) then the "Add Host Services" link as seen below:

    DynDNS Create Host
  7. The New Dynamic DNS Host screen will open.  In the hostname field, 1) create a prefix and 2) select a domain name from the dropdown box.  The page will automaticall detect your IP address, which you can leave for now.  The other fields can be left blank.  3) Click on the "Add Host" button as seen below.

    Add DNS Host
  8. If successful, a screen will be displayed to let you know that the hostname was created.

    Hostname Created
Now that your dynamic DNS service is setup, you should configure your router/switch to automatically update the dynamic DNS service each time your Internet connection's IP address changes.  CCTV Camera Pros has instructions for D-Link and LinkSys routers.  Please follow the below links to configure your router.