EXPERIMENT NO 1




A sub network or subnet is a logical subdivision of an IP network. The practice of dividing a network into two or more networks is called sub netting.
Subnetting offers many advantages. Some of them are.
1. It provides security to the network.
2. Speeds up the network thus improving the performance of the network.
3. It allows for better organization of the resources.

Procedure:

To create a subnet, first we need to have proper planning as to how many subnets we need and how many we may need in the future. Presently, I need three subnets. The number of subnets should always be calculated in the powers of 2.
2 to the power of 1 = 2
This doesn’t satisfy our requirement as we need three subnets.
2 to the power of 2 = 4
This satisfies our requirement. So we need to take two bits from the host portion of the IP address. 192.168.10.1 to 192.168.10.255 is the address range available to us with subnet mask 255.255.255.0, Writing the subnet mask in the binary notation, it is
11111111 11111111 11111111 00000000
255 255 255 0
The first 24 bits are network bits and the last eight bits are host bits. To create three subnets, we need to take two bits from the host portion of the address as explained above.
11111111 111111111 11111111 11000000
255 255 255 192
Four subnets which can be created from the above subnet mask are,
192.168.10.0 to 192.168.10.63 ( with host bits 00000000 )
192.168.10.64 to 192.168.10.127 ( with host bits 01000000 )
192.168.10.128 to 192.168.10.191 ( with host bits 10000000 )
192.168.10.192 to 192.168.10.255 ( with host bits 11000000 )
Since we require only three subnets (in this example), we will create the first three subnets. The first subnet ( 192.168.10.1 to 192.168.10.63 )
The commands are as shown below:
  1. Router(config)#int fa 0/0
    Router(config-if)#ip add 192.168.10.1 255.255.255.192
    Router(config-if)#no shut
    Router(config-if)#ip dhcp pool net1
    Router(dhcp-config)#network 192.168.10.0 255.255.255.192
    Router(dhcp-config)#dns-server 192.168.10.1
    Router(dhcp-config)#default-router 192.168.10.1
    Router(dhcp-config)#exit
  2. Router(config)#int fa 1/0
    Router(config-if)#ip add 192.168.10.129 255.255.255.192
    Router(config-if)#no shut
    Router(config-if)#ip dhcp pool net2
    Router(dhcp-config)#network 192.168.10.128 255.255.255.192
    Router(dhcp-config)#dns-server 192.168.10.129
    Router(dhcp-config)#default-router 192.168.10.129
    Router(dhcp-config)#exit
  3. Router(config)#int fa 0/1
    Router(config-if)#ip add 192.168.10.65 255.255.255.192
    Router(config-if)#no shut
    Router(config-if)#ip dhcp pool net3
    Router(dhcp-config)#network 192.168.10.64 255.255.255.192
    Router(dhcp-config)#dns-server 192.168.10.65
    Router(dhcp-config)#default-router 192.168.10.65
    Router(dhcp-config)#exit

Enabling DHCP on all pcs




  1. Click on a pc, for instance pc0
  2. Go to “Desktop” tab






  1. Choose DHCP in ip config
  1. Choose static in ipv6 config
  2. Repeat for all PCs

Add more fast ethernet 1/0 port for router 0




  1. Make sure that the router that you selected is 2811 and not the default router
  2. Click on router
  3. Choose the module NM-1FE2W
  4. Switch it off first
  5. Drag and drop the module at the bottom right to the to left
  6. Turn the router on



Comments

Popular posts from this blog

Exp : 1 & 2 : Working with HTML and CSS

DOS Attack code for python

DV and LS Routing Algorithm Implementation in ns2