- Posts: 101
- Thank you received: 0
VLSM (Variable Length Subnet Masks)
16 years 3 months ago #27455
by NeoTech
NeoTech
VLSM (Variable Length Subnet Masks) was created by NeoTech
Hey all firewall members and sneaky guests! :shock:
We have just started on CCNA 3 and i was wondering if there are any resources on variable length subnet masks in the alternate menu pages. Ive been through them briefly and can't find much.
As to my currently (very) limited understanding it seems like they're trying to say that you can use VLSM to subnet a subnet?! ??
The concept of this is a little confusing and i could do with an explaination that is a little better than we get from ciscos own study material. It would be great to hear it from somebody that has been in networking for a few years and can do this stuff standing on their head. To begin with i thought VLSM and 'subnetting' were one and the same, but apparently not.
All explaination attempts appreciated!
Cheers!
We have just started on CCNA 3 and i was wondering if there are any resources on variable length subnet masks in the alternate menu pages. Ive been through them briefly and can't find much.
As to my currently (very) limited understanding it seems like they're trying to say that you can use VLSM to subnet a subnet?! ??
The concept of this is a little confusing and i could do with an explaination that is a little better than we get from ciscos own study material. It would be great to hear it from somebody that has been in networking for a few years and can do this stuff standing on their head. To begin with i thought VLSM and 'subnetting' were one and the same, but apparently not.
All explaination attempts appreciated!
Cheers!
NeoTech
16 years 3 months ago #27457
by S0lo
Studying CCNP...
Ammar Muqaddas
Forum Moderator
www.firewall.cx
Replied by S0lo on topic Re: VLSM (Variable Length Subnet Masks)
Briefly said, VLSM as the name suggests allows you to use multiple (variable) subnet masks in different parts of your network. Suppose you have 3 networks one with 100 hosts, the second with 10 host and the 3rd is with only 5. The 100 hosts network will need at a least 7 bits in the hosts bits, Thats a subnet mask of /25 (or less: /24, /23, /22,,,,,) to accommodate for all hosts. However, The 10 hosts network will need only 4 bits (/28 ) and the 5 hosts will need 3 bits (/29).
To use a single subnet mask for all the nets, it has to be enough for the largest (100 host). So /25 will have to be used for all. BUT thats a big waste in the address space, isn't it?
VLSM allows you to use /25 for the 100 hosts. /28 for the 10 hosts. and /29 for the 5.
However, Not all routing protocols support VLSM. RIP and IGRP don't, RIPv2, EIGRP and OSPF do support VLSM. The reason why RIP and IGRP don't is because they DO NOT send the subnet mask with the routing updates, they just assume it's class-full (/8, /16 or /24).
This is very brief. I hope I did not confuse you. Check here for further explanation, there is a VLSM example:
www.cisco.com/en/US/tech/tk365/technolog...f5.shtml#vlsmexample
To use a single subnet mask for all the nets, it has to be enough for the largest (100 host). So /25 will have to be used for all. BUT thats a big waste in the address space, isn't it?
VLSM allows you to use /25 for the 100 hosts. /28 for the 10 hosts. and /29 for the 5.
However, Not all routing protocols support VLSM. RIP and IGRP don't, RIPv2, EIGRP and OSPF do support VLSM. The reason why RIP and IGRP don't is because they DO NOT send the subnet mask with the routing updates, they just assume it's class-full (/8, /16 or /24).
This is very brief. I hope I did not confuse you. Check here for further explanation, there is a VLSM example:
www.cisco.com/en/US/tech/tk365/technolog...f5.shtml#vlsmexample
Studying CCNP...
Ammar Muqaddas
Forum Moderator
www.firewall.cx
16 years 2 months ago #27505
by NeoTech
NeoTech
Replied by NeoTech on topic Re: VLSM (Variable Length Subnet Masks)
Ok cheers, your explaination was sufficient for me
I think it would go in more if i understood how you configure them in a typical Cisco IOS. Anyone care to run me through it? I have an old 1600 series i can configure with RIPv2 or OSPF and try it out.
Cheers in advance!
I think it would go in more if i understood how you configure them in a typical Cisco IOS. Anyone care to run me through it? I have an old 1600 series i can configure with RIPv2 or OSPF and try it out.
Cheers in advance!
NeoTech
16 years 2 months ago #27520
by S0lo
Studying CCNP...
Ammar Muqaddas
Forum Moderator
www.firewall.cx
Replied by S0lo on topic Re: VLSM (Variable Length Subnet Masks)
Suppose you have the following config for two interfaces/networks:
[code:1]interface FastEthernet0/0
ip address 200.1.1.1 255.255.255.128
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 10.1.0.1 255.255.240.0
duplex auto
speed auto
![/code:1]
As you can see the interfaces use differing subnet masks. For RIPv2 you would do this:
[code:1]Router(config)#router rip
Router(config-router)#version 2
Router(config-router)#network 200.1.1.0
Router(config-router)#network 10.0.0.0[/code:1]
For OSPF:
[code:1]Router(config)#router ospf 100
Router(config-router)#network 200.1.1.0 0.0.0.127 area 0
Router(config-router)#network 10.1.0.0 0.0.15.255 area 0[/code:1]
If you have any questions, you're welcome to ask.
[code:1]interface FastEthernet0/0
ip address 200.1.1.1 255.255.255.128
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 10.1.0.1 255.255.240.0
duplex auto
speed auto
![/code:1]
As you can see the interfaces use differing subnet masks. For RIPv2 you would do this:
[code:1]Router(config)#router rip
Router(config-router)#version 2
Router(config-router)#network 200.1.1.0
Router(config-router)#network 10.0.0.0[/code:1]
For OSPF:
[code:1]Router(config)#router ospf 100
Router(config-router)#network 200.1.1.0 0.0.0.127 area 0
Router(config-router)#network 10.1.0.0 0.0.15.255 area 0[/code:1]
If you have any questions, you're welcome to ask.
Studying CCNP...
Ammar Muqaddas
Forum Moderator
www.firewall.cx
16 years 2 months ago #27695
by NeoTech
NeoTech
Replied by NeoTech on topic Re: VLSM (Variable Length Subnet Masks)
What is confusing me is this:
If you enter a different subnet mask for another part of the network, arnt you effectively putting that part on a different subnet?
Thanks again guys, im really having trouble with this thing lol.
:oops:
If you enter a different subnet mask for another part of the network, arnt you effectively putting that part on a different subnet?
Thanks again guys, im really having trouble with this thing lol.
:oops:
NeoTech
16 years 2 months ago #27696
by NeoTech
NeoTech
Replied by NeoTech on topic Re: VLSM (Variable Length Subnet Masks)
Am i right in assuming that once you have set the subnets there is a different command to further divide one of the subnets in the routing protocols that support it? That would be the most efficient way as far as i can see...
NeoTech
Time to create page: 0.132 seconds