المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : مساعده في انشاء شبكة صغيرة .. الكود لا يعمل



smsm3650
26-05-2015, 10:13
السلام عليكم شباب ...
احاول اصمم شبكة Voice & Data بسيطة بحيث يكون كل هاتفين في Vlan مستقل كما في الصورة
احاول استعمل هذا الكود لكنه لا يعمل

للراوتر



en
conf t
int fa0/0
no shut
exit


int fa0/0.10
encapsulation dot1Q 10
ip add 192.168.10.1 255.255.255.0
no shut
ip dhcp pool vlan-10
network 192.168.10.0 255.255.255.0
default-router 192.168.10.1
option 150 ip 192.168.10.1
no shut
exit


int fa0/0.20
encapsulation dot1Q 20
ip add 192.168.20.1 255.255.255.0
ip dhcp pool vlan-20
network 192.168.20.0 255.255.255.0
default-router 192.168.20.1
option 150 ip 192.168.20.1
no shut
exit




telephony-service
max-ephones 6
max-dn 6
ip source-address 192.168.10.1 port 2000
auto assign 1 to 6
exit
ephone-dn 1
number 0001
ephone-dn 2
number 0002
ephone-dn 3
number 0003
ephone-dn 4
number 0004
ephone-dn 5
number 0005
ephone-dn 6
number 0006


للسوتش



en
conf t
interface range f0/2 - 9
switchport mode access
switchport access vlan 10
exit
interface range f0/11 - 20
switchport mode access
switchport access vlan 20
exit





https://arabhardware.net/forum/attachment.php?attachmentid=28223&stc=1

nabilahmed
26-05-2015, 20:23
you have to make the port connected to switch and the router TRUNK

smsm3650
27-05-2015, 07:38
you have to make the port connected to switch and the router TRUNK

ممكن توضيح اكثر .. هل المطلوب اضافة اوامر للكود السابق ام تغيير اوامر .. مممكن اضافة الكود للتوضيح اكثر

nabilahmed
27-05-2015, 08:22
Go to the port on the switch that's connected to the router
interface fast 0/X
then write the below command
switchport mode trunk

This command allows the port on the switch to do tagging so it can pass the frames tagged with the vlan number to the router