I've a network 10.180.0.0/16 for this purpose in that I'm already using in my internal dhcp server. Static addressess for server are form 10.180.128.0-254/16 scope and clients are dynamic from 10.180.140.1 - 10.180.141.254/16 scope.
Now I wish to add also IP phones and connect them between the PC and Switch.
There is also a router that routes to the another subnet of the lan and internet.
Thus I don't have much problems to create and assign the to the ports of the switch vlan's, the magior problem is that I cant figure it out how to configure the router interface with class B subnet to manage the routing between the two vlan's that I create.
All the docs I've read talk about C class subnets, and subinterfaces. And if I have one subnet B that I use with 2 vlan's? I.e.
As you have already defined your data network as a class B 10.180.x.x/16 we normally consider that as 1 vlan. To burst this down into vlans/subnets you will need to go around and change all your masks and default gateways that could be a daunting task.
Generally 1 vlan (layer 2) = 1 subnet (layer 3).
The simplest solution here would be to define a new ip range for the VOIP. Lets say 192.168.2.0/24 (Class c).
So vlan 1 = 10.180.0.0/16 vlan 2 = 192.168.2.0/24.
On the interface of the switch that connect to the router, define this as a trunk.
! int fas 0/24 desc *** TRUNK TO ROUTER *** switchport encap dot1q switchport mode trunk switcport trunk allowed vlan 1-2 no shut ! ! ! Suggested basic config for a phone with pc in back of it. ! int fas 0/1 desc *** PHONE & PC PORT *** switchport mode host switchport access vlan 1 switchport voice vlan 2 no shut !
On the router
! int fas0/0 desc *** TRUNK TO SWITCH *** no ip addrerss no shut ! int fas0/0.1 desc *** DATA VLAN 1 *** encapsulation dot1Q 1 ip address 10.180.128.1 255.255.0.0 ! int fas0/0.2 desc *** VOIP VLAN 2 *** encapsulation dot1Q 2 ip address 192.168.2.1 255.255.255.0 ip helper-address 10.180.x.x ((YOUR DHCP SERVER) !
You will have to build a scope on your dhcp server with the correct options fot your type of phones.Or build the scope on this router and remove the ip helper.
something like this :-
ip dhcp excluded-address 192.168.2.1 ! ip dhcp pool VOIP VLAN 2 network 192.168.2.0 255.255.255.0 default-router 192.168.2.1 option 150 ip 192.168.2.250 (Your VOIP tftp server) !
Obviously you will need to replace my suggested addresses with your own. But this may give you a start.
We have 3 identical switches configured by someone else and would like to claim some of the Gigabit ports(G1/G2/G3/G4) for use on servers. When we try to change the wiring and configuration, we run in to connectivity issues. Attached is a des...
This is actually a pretty cool feature, i didn't even know it existed until I was looking for a solution to advertise a subnet (prefix in BGP talk), only if a certain condition existed. This is exactly what conditional advertisements does
j ai une question j ai achete un routeur cisco 887VA-k9 , je le configuré avec la configuration ci- dessous
si je le lier avec mon pc portable sur l un de ses ports directement ça marche toute est bien ( la connexion internet + m...