Hello everybody,
I'm trying to configure my network with :
- 1 Routeur Cisco 2821
- 1 Switch Cisco 4224
- x PC
- x T=E9l=E9phone VoIP
I've 2 VLANS configured :
- Vlan 100 --> Voice (192.168.100.x)
- Vlan 200 --> Data (192.168.200.x)
PC are connected in daisy-chain mode (Pc -> Telephone -> Switch)
I don't know how to configure the server DHCP of the router, to attribut IP address relatively to what kind of device are requesting and from which vlan.
In that way :
- Telephone VoIP -> Vlan 100 -> 192.168.100.x
- Pc -> Vlan 200 -> 192.168.200.x
My Switch configuration : Code:
version 12.3 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname CME_Switch ! boot-start-marker boot-end-marker ! enable secret 5 $1$uWQH$d1ZM2RCpumqvkhr39t2RS0 ! memory-size iomem 25 vlan 100 name Voice vlan 200 name Data ! ! interface FastEthernet5/1 description Vers le Routeur no ip address duplex auto speed auto switchport access vlan 100
! interface FastEthernet5/8 description Telephone VoIP no ip address duplex auto speed auto switchport trunk allowed vlan 1,100,200 switchport mode trunk switchport voice vlan 100 ! interface FastEthernet5/9 description Telephone VoIP no ip address duplex auto speed auto switchport access vlan 200 switchport voice vlan 100 ! .=2E
interface Vlan 1 description Vlan Reseau Entreprise ip address 10.10.10.1 255.255.254.0 ip nat outside ! interface Vlan 100 description Voice Vlan ip address 192.168.100.1 255.255.255.0 ip nat inside ip mroute-cache ! interface Vlan 200 description Data Vlan ip address 192.168.200.1 255.255.255.0 ip nat inside ip mroute-cache ! ip nat inside source list 1 interface Vlan 1 overload ip classless ip route 0.0.0.0 0.0.0.0 10.10.10.0 no ip http server ! ! access-list 1 permit 192.168.100.0 0.0.0.255 access-list 1 permit 192.168.200.0 0.0.0.255 !
The DHCP configuration of my routeur
Code:
ip dhcp pool reserveDHCP network 192.168.100.0 255.255.255.0
option 150 ip 192.168.100.2 default-router 192.168.100.1 dns-server 10.10.10.2 10.10.10.1
! ! no ip domain lookup ip domain name xxxx ip host HTTP-SERVER 192.168.200.30 ip name-server 10.192.48.100 ip name-server 10.192.48.101 isdn switch-type basic-net3 isdn tei-negotiation first-call
interface Loopback0
ip address 192.168.1.1 255.255.255.255
! interface GigabitEthernet0/0 description Interfacevers le switch Cisco 4200
ip address 192.168.100.2 255.255.255.0
duplex auto speed auto ! interface GigabitEthernet0/1 no ip address shutdown duplex auto speed auto ! interface BRI1/0/0 no ip address isdn switch-type basic-net3 isdn not-end-to-end 64 isdn point-to-point-setup isdn incoming-voice voice isdn sending-complete no isdn outgoing display-ie trunk-group PSTN ! interface BRI1/0/1 no ip address isdn switch-type basic-net3 isdn point-to-point-setup ! ip classless ip route 0.0.0.0 0.0.0.0 192.168.100.1
I think I've to do the following task but I'm not sur :
- Configure my switch interface 5/1 to work in trunk mod vlan100 | vlan200
- Creat a virtual interface of my routeur with an IP 192.168.200.x
- Creat a second pool of DHCP address in 192.168.200.x
But I don't know if I'm in the right way ?
Someone could help me ?