Professional Documents
Culture Documents
Submitted By: Submitted To
Submitted By: Submitted To
Submitted By: Submitted To
Semester: 2nd
b) Assign a device name on the switch based on the topology and addressing table.
Switch>enable
Switch#configure terminal
Switch(config)#hostname S1
Switch>enable
Switch#configure terminal
Switch# enable secret class
g) Create a MOTD (Message of the day) banner that warns anyone accessing the device
that unauthorized access is prohibited.
Switch(config)#banner motd
Switch(config)#banner motd #if you are unauthorized user of this device please exit
immediately.
Enter TEXT message. End with the character ‘#’
#
h) Create and activate an IP address on the switch based on the topology and addressing
table
Switch>enable
Switch#configure terminal
Switch(config)#int vlan1
Switch(config-if)#ip address 192.168.1.1 255.255.255.0
Switch(config-if)#no shutdown
2. In this scenario, you are a network administrator for a small subdivision within a larger
company. You must create multiple subnets out of the 172.30.4.0/22 network address space
to meet the following requirements.
Subnet Number of host
Lan1 60
Lan 2 10
Lan3 90
Lan 4 100
Lan 5 100
Design a VLSM address scheme. Always start with the subnet with the largest number of
hosts and work your way down. Write down the Mask, and Network address for each LAN
For Subnet 5 we need to assign IP address to 100 devices so we need only 7 host bit so that IP
address will not be wasted
27 = 128(1 NA+ 1BA+ 126 UA)
So now our changed Network address look like.
172.30.00000100.0 0000000/25
-------NB=25---------- ----HB=7-----
Starting from Subnet with largest number of host ,Our Final Network address for all the subnet
will be,
172.30.00000100.0 0000000/25 =>Lan 5
=>172.30.4.0/25
NETMASK
10101100.00011110.00000101.1 0000000/25
-------------NB=25 bits---------------- ------HB=7 bits---
=>11111111.11111111.11111111.1 0000000/25
i.e: 255.255.255.128
--------------
FOR LAN 2
---------------
172.30.6.0 /25
We need only 10 IP address for 20 hosts so we will only be using 4 host bit which will generate
total of 16 IP address
24=16 which will be enough (1 NA+1 BA+ 14 UA)
So, network bit=32-4=28, our new address will look like
172.30.00000110.0000 0000/28
----------NB--------------- ---HB----
NETWORK ADDRESS
172.30.00000110.0000 0000/28
=>172.30.6.0
MASK =28
NETMASK
10101100.00011110.00000110.0000 0000/28
------------------NB=28 bits---------------- ------HB=4 bits---
=>11111111.11111111.11111111.1111 0000/28
i.e: 255.255.255.240
--------------
FOR LAN 3
---------------
172.30.6.128 /25
We need only 60 IP address so we will only be using 5 host bit which will generate total of 16 IP
address
25=64 which will be enough (1 NA+1 BA+ 62 UA)
So, network bit=32-4=28, our new address will look like
172.30.00000101.000 00000/27
----------NB--------------- ---HB----
NETWORK ADDRESS
172.30.00000101.000 00000/27
=>172.30.5.0
MASK =27
NETMASK
10101100.00011110.00000101.000 00000/27
-------------NB=27 bits---------------- ------HB=5 bits---
=>11111111.11111111.11111111.111 00000/27
i.e: 255.255.255.224
--------------
FOR LAN 4
---------------
172.30.6.128 /25
We need only 100 IP address so we will only be using 7 host bit which will generate total of 16
IP address
27=128 which will be enough (1 NA+1 BA+ 126 UA)
So, network bit=32-7=25, our new address will look like
172.30.00000110.0 0000000/25
----------NB--------------- ---HB----
NETWORK ADDRESS
172.30.00000110.0 0000000/25
=>172.30.6.128
MASK =25
NETMASK
10101100.00011110.00000110.0 0000000/25
-------------NB=25 bits---------------- ------HB=7 bits---
=>11111111.11111111.11111111.1 0000000/25
i.e: 255.255.255.128
--------------
FOR LAN 5
---------------
172.30.4.0 /25
We need only 100 IP address so we will only be using 7 host bit which will generate total of 16
IP address
27=128 which will be enough (1 NA+1 BA+ 126 UA)
So, network bit=32-7=25, our new address will look like
172.30.00000100.0 0000000/25
----------NB--------------- ---HB----
NETWORK ADDRESS
172.30.00000100.0 0000000/25
=>172.30.4.0
MASK =25
NETMASK
10101100.00011110.00000111.0 0000000/25
-------------NB=25 bits---------------- ------HB=7 bits---
=>11111111.11111111.11111111.1 0000000/25
i.e: 255.255.255.128