You are on page 1of 2

.............

switch
............
enable
config t
vlan 10
name 10
exit
vlan 20
name 20
exit
vlan 30
name 30
exit
int range fa0/1-7
switchport mode access
switchport access vlan 10
switchport voice vlan 30
exit
int range f0/8-15
switchport mode access
switchport access vlan 20
exit
int fa0/1
switchport mode trunk
end
........................
router
........................
enable
config t
hostname R0
exit
int fa0/0
no shut
int fa0/1
int fa0/0.10
encapsulation dot1q 10
ip add 192.168.10.1 255.255.255.128
exit
int fa0/0.20
encapsulation dot1q 20
ip add 192.168.20.1 255.255.255.128
exit
int fa0/0.30
encapsulation dot1q 30
ip add 192.168.30.1 255.255.255.128
exit
int fa0/1.10
encapsulation dot1q 10
ip add 192.168.10.129 255.255.255.128
exit
int fa0/1.20
encapsulation dot1q 20
ip add 192.168.20.129 255.255.255.128
exit
int fa0/1.30
encapsulation dot1q 30
ip add 192.168.30.129 255.255.255.128
exit
ip dhcp excluded-address 192.168.10.1
ip dhcp excluded-address 192.168.20.1
ip dhcp excluded-address 192.168.30.1
ip dhcp excluded-address 192.168.10.129
ip dhcp excluded-address 192.168.20.129
ip dhcp excluded-address 192.168.30.129
ip dhcp pool vlan10
network 192.168.10.0 255.255.255.128
default-router 192.168.10.1
option 150 ip 192.168.10.1
exit
ip dhcp pool vlan20
network 192.168.20.0 255.255.255.128
default-router 192.168.20.1
option 150 ip 192.168.20.1
exit
ip dhcp pool vlan30
network 192.168.30.0 255.255.255.128
default-router 192.168.30.1
option 150 ip 192.168.30.1
exit
ip dhcp pool vlan10-1
network 192.168.10.128 255.255.255.128
default-router 192.168.10.129
option 150 ip 192.168.10.129
exit
ip dhcp pool vlan20-1
network 192.168.20.128 255.255.255.128
default-router 192.168.20.129
option 150 ip 192.168.20.129
exit
ip dhcp pool vlan30-1
network 192.168.30.128 255.255.255.128
default-router 192.168.30.129
option 150 ip 192.168.30.129
exit
telephony-service
max-dn 10
max-ephones 10
ip source-address 192.168.30.1 port 2000
auto assign 4 to 6
auto assign 1 to 5
exit
ephone-dn 1
number 201
exit
ephone-dn 2
number 202
exit
ephone-dn 3
number 203
exit
ephone-dn 4
number 204
exit

You might also like